From 44d519e9b113aa4969328fca6768e17999907d59 Mon Sep 17 00:00:00 2001 From: AllThatIsTheCase Date: Wed, 15 Apr 2015 10:58:54 +0200 Subject: [PATCH] release: zotero-better-bibtex-0.8.41.xpi --- chrome/content/zotero-better-bibtex/preferences.coffee | 4 ++-- .../zotero-better-bibtex/zotero-better-bibtex.coffee | 8 +++++--- install.rdf | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/chrome/content/zotero-better-bibtex/preferences.coffee b/chrome/content/zotero-better-bibtex/preferences.coffee index 7466b0d94f..a8e6fafc3b 100644 --- a/chrome/content/zotero-better-bibtex/preferences.coffee +++ b/chrome/content/zotero-better-bibtex/preferences.coffee @@ -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) diff --git a/chrome/content/zotero-better-bibtex/zotero-better-bibtex.coffee b/chrome/content/zotero-better-bibtex/zotero-better-bibtex.coffee index 3db4d80924..40b60b053f 100755 --- a/chrome/content/zotero-better-bibtex/zotero-better-bibtex.coffee +++ b/chrome/content/zotero-better-bibtex/zotero-better-bibtex.coffee @@ -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() @@ -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() @@ -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') diff --git a/install.rdf b/install.rdf index bbe5ab57e5..271125a58c 100644 --- a/install.rdf +++ b/install.rdf @@ -4,7 +4,7 @@ better-bibtex@iris-advies.com Zotero Better Bib(La)Tex - 0.8.40 + 0.8.41 Make Zotero useful for us LaTeX holdouts. More info @ https://github.com/ZotPlus/zotero-better-bibtex Emiliano Heyns chrome://zotero-better-bibtex/skin/better-bibtex.svg