Skip to content

Commit

Permalink
release: zotero-better-bibtex-0.8.41.xpi
Browse files Browse the repository at this point in the history
  • Loading branch information
retorquere committed Apr 15, 2015
1 parent 59bf06d commit 44d519e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions chrome/content/zotero-better-bibtex/preferences.coffee
Expand Up @@ -103,13 +103,13 @@ Zotero.BetterBibTeX.pref.update = ->
Zotero.BetterBibTeX.log('loading exports:', refill, exportlist.children.length)

selectedExport = -1
for ae in Zotero.DB.query("select * from betterbibtex.autoexport order by collection_name, path")
for ae in Zotero.DB.query("select * from betterbibtex.autoexport order by path")
selectedExport = 0
Zotero.BetterBibTeX.log(':::ae', @clone(ae))
if refill
itemNode = document.createElement('listitem')
itemNode.setAttribute('value', ae.id)
itemNode.setAttribute('label', "#{ae.collection_name} -> #{ae.path.replace(/^.*[\\\/]/, '')}")
itemNode.setAttribute('label', "collection_name -> #{ae.path.replace(/^.*[\\\/]/, '')}")
itemNode.setAttribute('class', "export-state-#{if Zotero.BetterBibTeX.auto.running == ae.id then 'running' else ae.status}")
itemNode.setAttribute('tooltiptext', "#{@collectionPath(ae.collection_id)} -> #{ae.path}")
exportlist.appendChild(itemNode)
Expand Down
Expand Up @@ -387,8 +387,9 @@ Zotero.BetterBibTeX.init = ->
return ->
if @translator?[0] && @location && typeof @location == 'object'
for own name, header of Zotero.BetterBibTeX.translators
if header.translatorID == @translator[0]
if header.translatorID == @translator[0].translatorID
@_displayOptions.exportPath = @location.path.slice(0, -@location.leafName.length)
Zotero.BetterBibTeX.log("captured export path: #{@_displayOptions.exportPath}")

if @_displayOptions?['Keep updated']
progressWin = new Zotero.ProgressWindow()
Expand All @@ -407,7 +408,7 @@ Zotero.BetterBibTeX.init = ->
Zotero.Prefs.set('export.translatorSettings', JSON.stringify(settings))
catch

@_displayOptions.translatorID = @translator[0]
@_displayOptions.translatorID = @translator[0].translatorID
Zotero.BetterBibTeX.auto.add(@_collection._id, @path, @_displayOptions)

progressWin.show()
Expand Down Expand Up @@ -562,8 +563,9 @@ Zotero.BetterBibTeX.itemChanged = notify: (event, type, ids, extraData) ->
for id in ids
Zotero.BetterBibTeX.keymanager.get({itemID: id}, 'on-change')

collections = Zotero.Collections.getCollectionsContainingItems(ids, true)
unless collections.length == 0 || Zotero.BetterBibTeX.pref.get('autoExport') == 'disabled'
collections = Zotero.BetterBibTeX.withParentCollections(Zotero.Collections.getCollectionsContainingItems(ids, true))
collections = Zotero.BetterBibTeX.withParentCollections(collections)
Zotero.DB.query("update betterbibtex.autoexport set status = 'pending' where collection_id in #{Zotero.BetterBibTeX.SQLSet(collections)}")
Zotero.BetterBibTeX.auto.process('itemChanged')

Expand Down
2 changes: 1 addition & 1 deletion install.rdf
Expand Up @@ -4,7 +4,7 @@
<Description about="urn:mozilla:install-manifest">
<em:id>better-bibtex@iris-advies.com</em:id>
<em:name>Zotero Better Bib(La)Tex</em:name>
<em:version>0.8.40</em:version>
<em:version>0.8.41</em:version>
<em:description>Make Zotero useful for us LaTeX holdouts. More info @ https://github.com/ZotPlus/zotero-better-bibtex</em:description>
<em:creator>Emiliano Heyns</em:creator>
<em:iconURL>chrome://zotero-better-bibtex/skin/better-bibtex.svg</em:iconURL>
Expand Down

0 comments on commit 44d519e

Please sign in to comment.