From 7ee1b1e491608370cbd8f273e7cc8a080e5b2ca1 Mon Sep 17 00:00:00 2001 From: gracile-fr Date: Thu, 14 Jun 2012 17:19:30 +0200 Subject: [PATCH 01/51] Frank's patch https://github.com/zotero/zotero/issues/132 Menu item to swap creator first/last names (#132) --- chrome/content/zotero/bindings/itembox.xml | 43 +++++++++++++++++++++- chrome/locale/en-US/zotero/zotero.dtd | 2 + 2 files changed, 44 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/bindings/itembox.xml b/chrome/content/zotero/bindings/itembox.xml index 66ffb0a13..92bc809da 100644 --- a/chrome/content/zotero/bindings/itembox.xml +++ b/chrome/content/zotero/bindings/itembox.xml @@ -712,6 +712,7 @@ // Name var firstlast = document.createElement("hbox"); + firstlast.setAttribute("context", "creator-transform-menu"); firstlast.className = 'creator-name-box'; firstlast.setAttribute("flex","1"); var tabindex = this._tabIndexMinCreators + (this._creatorCount * 2); @@ -2166,6 +2167,24 @@ + + + + + + @@ -2433,7 +2452,29 @@ oncommand="document.getBindingParent(this).textTransform(document.popupNode, 'sentence')"/> - + + + + + + + + diff --git a/chrome/locale/en-US/zotero/zotero.dtd b/chrome/locale/en-US/zotero/zotero.dtd index 97c1dbc32..c5a896175 100644 --- a/chrome/locale/en-US/zotero/zotero.dtd +++ b/chrome/locale/en-US/zotero/zotero.dtd @@ -104,6 +104,8 @@ + + From 1b9c89fd595a9f6afb1eaed5c30c16e3970887ad Mon Sep 17 00:00:00 2001 From: aurimasv Date: Sat, 22 Sep 2012 06:32:18 -0500 Subject: [PATCH 02/51] Add support for multiple identifier lookup to the magic wand tool. Enable shift+enter for submitting input in multiline mode. Use shift+enter in single line mode to convert to multiline --- chrome/content/zotero/lookup.js | 191 ++++++++++++++----- chrome/content/zotero/zoteroPane.xul | 14 +- chrome/locale/en-US/zotero/zotero.dtd | 5 +- chrome/locale/en-US/zotero/zotero.properties | 1 + chrome/skin/default/zotero/overlay.css | 4 + 5 files changed, 158 insertions(+), 57 deletions(-) diff --git a/chrome/content/zotero/lookup.js b/chrome/content/zotero/lookup.js index 1f4a3cbc0..7239ecc19 100644 --- a/chrome/content/zotero/lookup.js +++ b/chrome/content/zotero/lookup.js @@ -31,71 +31,126 @@ const Zotero_Lookup = new function () { /** * Performs a lookup by DOI, PMID, or ISBN */ - this.accept = function() { - var identifierElement = document.getElementById("zotero-lookup-textbox"); - var identifier = identifierElement.value; - - var doi = Zotero.Utilities.cleanDOI(identifier); - if(doi) { - var item = {itemType:"journalArticle", DOI:doi}; - } else { - identifier = identifier.trim().replace(/[\- ]/g, ""); - if(identifier.length == 10 || identifier.length == 13) { - // ISBN - var item = {itemType:"book", ISBN:identifier}; - } else { - // PMID; right now, PMIDs are 8 digits, so there doesn't seem like we will need to - // discriminate for a fairly long time - var item = {itemType:"journalArticle", contextObject:"rft_id=info:pmid/"+identifier}; + this.accept = function(textBox) { + var identifier = textBox.value; + //first look for DOIs + var ids = identifier.split(/[\s\u00A0]+/); //whitespace + non-breaking space + var items = [], doi; + for(var i=0, n=ids.length; i + - The following operations are for use only in rare, specific situations and should not be used for general troubleshooting. - In many cases, resetting will cause additional problems. - See for more information. + &zotero.preferences.sync.reset.warning1;&zotero.preferences.sync.reset.warning3; @@ -731,9 +728,8 @@ To add a new preference: - - - + + diff --git a/chrome/locale/en-US/zotero/preferences.dtd b/chrome/locale/en-US/zotero/preferences.dtd index b50e5a849..921fad32c 100644 --- a/chrome/locale/en-US/zotero/preferences.dtd +++ b/chrome/locale/en-US/zotero/preferences.dtd @@ -65,6 +65,9 @@ + + + @@ -159,6 +162,7 @@ + diff --git a/chrome/locale/en-US/zotero/zotero.properties b/chrome/locale/en-US/zotero/zotero.properties index 0ffe7abea..899b6f745 100644 --- a/chrome/locale/en-US/zotero/zotero.properties +++ b/chrome/locale/en-US/zotero/zotero.properties @@ -14,6 +14,8 @@ general.restartLater = Restart later general.restartApp = Restart %S general.errorHasOccurred = An error has occurred. general.unknownErrorOccurred = An unknown error occurred. +general.invalidResponseServer = Invalid response from server +general.serverError = The server returned an error. Please try again. general.restartFirefox = Please restart %S. general.restartFirefoxAndTryAgain = Please restart %S and try again. general.checkForUpdate = Check for update @@ -35,6 +37,7 @@ general.seeForMoreInformation = See %S for more information. general.enable = Enable general.disable = Disable general.remove = Remove +general.reset = Reset general.openDocumentation = Open Documentation general.numMore = %S more… @@ -469,6 +472,19 @@ zotero.preferences.launchNonNativeFiles = Open PDFs and other zotero.preferences.openurl.resolversFound.zero = %S resolvers found zotero.preferences.openurl.resolversFound.singular = %S resolver found zotero.preferences.openurl.resolversFound.plural = %S resolvers found + +zotero.preferences.sync.purgeStorage.title = Purge Attachment Files on Zotero Servers? +zotero.preferences.sync.purgeStorage.desc = If you plan to use WebDAV for file syncing and you previously synced attachment files in My Library to the Zotero servers, you can purge those files from the Zotero servers to give you more storage space for groups.\n\nYou can purge files at any time from your account settings on zotero.org. +zotero.preferences.sync.purgeStorage.confirmButton = Purge Files Now +zotero.preferences.sync.purgeStorage.cancelButton = Do Not Purge +zotero.preferences.sync.reset.userInfoMissing = You must enter a username and password in the %S tab before using the reset options. +zotero.preferences.sync.reset.restoreFromServer = All data in this copy of Zotero will be erased and replaced with data belonging to user '%S' on the Zotero server. +zotero.preferences.sync.reset.replaceLocalData = Replace Local Data +zotero.preferences.sync.reset.restartToComplete = Firefox must be restarted to complete the restore process. +zotero.preferences.sync.reset.restoreToServer = All data belonging to user '%S' on the Zotero server will be erased and replaced with data from this copy of Zotero.\n\nDepending on the size of your library, there may be a delay before your data is available on the server. +zotero.preferences.sync.reset.replaceServerData = Replace Server Data +zotero.preferences.sync.reset.fileSyncHistory = All file sync history will be cleared.\n\nAny local attachment files that do not exist on the storage server will be uploaded on the next sync. + zotero.preferences.search.rebuildIndex = Rebuild Index zotero.preferences.search.rebuildWarning = Do you want to rebuild the entire index? This may take a while.\n\nTo index only items that haven't been indexed, use %S. zotero.preferences.search.clearIndex = Clear Index @@ -505,6 +521,10 @@ zotero.preferences.advanced.resetTranslators.changesLost = Any new or modifie zotero.preferences.advanced.resetStyles = Reset Styles zotero.preferences.advanced.resetStyles.changesLost = Any new or modified styles will be lost. +zotero.preferences.advanced.debug.title = Debug Output Submitted +zotero.preferences.advanced.debug.sent = Debug output has been sent to the Zotero server.\n\nThe Debug ID is D%S. +zotero.preferences.advanced.debug.error = An error occurred sending debug output. + dragAndDrop.existingFiles = The following files already existed in the destination directory and were not copied: dragAndDrop.filesNotFound = The following files were not found and could not be copied: From 217929a3ea59949e195b92f4b1daf65577891b5d Mon Sep 17 00:00:00 2001 From: gracile-fr Date: Thu, 28 Feb 2013 23:31:07 +0100 Subject: [PATCH 07/51] more localization --- chrome/content/zotero/errorReport.xul | 11 +++--- chrome/content/zotero/fileInterface.js | 7 ++-- chrome/content/zotero/upgrade.xul | 3 +- .../zotero/xpcom/collectionTreeView.js | 2 +- chrome/content/zotero/xpcom/sync.js | 15 ++++---- chrome/content/zotero/xpcom/zotero.js | 36 ++++++------------- chrome/locale/en-US/zotero/zotero.dtd | 2 ++ chrome/locale/en-US/zotero/zotero.properties | 24 +++++++++++-- 8 files changed, 49 insertions(+), 51 deletions(-) diff --git a/chrome/content/zotero/errorReport.xul b/chrome/content/zotero/errorReport.xul index ea4f6f0b4..868edb5b3 100644 --- a/chrome/content/zotero/errorReport.xul +++ b/chrome/content/zotero/errorReport.xul @@ -5,9 +5,8 @@ - + id="zotero-error-report" title="&zotero.errorReport.title;">