www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 816dba37bf0fd66d898d654d041ebec0550c495a
parent 951ea82cb62dc841e5995022160ea09474f08e3c
Author: Simon Kornblith <simon@simonster.com>
Date:   Wed,  6 Feb 2013 18:09:23 -0800

Merge pull request #244 from gracile-fr/quickFormat

Quick Format Citation dialog: improve bubble (& drop-down search list)
Diffstat:
Mchrome/content/zotero/integration/quickFormat.js | 11+++++------
Mchrome/locale/en-US/zotero/zotero.properties | 4++++
2 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/chrome/content/zotero/integration/quickFormat.js b/chrome/content/zotero/integration/quickFormat.js @@ -470,7 +470,7 @@ var Zotero_QuickFormat = new function () { var author, authorDate = ""; if(item.firstCreator) author = authorDate = item.firstCreator; - var date = item.getField("date", true); + var date = item.getField("date", true, true); if(date && (date = date.substr(0, 4)) !== "0000") { authorDate += " ("+date+")"; } @@ -590,14 +590,13 @@ var Zotero_QuickFormat = new function () { var title, delimiter; var str = item.getField("firstCreator"); - // Title, if no creator - if(!str) { - // TODO localize quotes - str = '"'+item.getField("title")+'"'; + // Title, if no creator (getDisplayTitle in order to get case, e-mail, statute which don't have a title field) + if(!str) { + str = Zotero.getString("punctuation.openingQMark") + item.getDisplayTitle() + Zotero.getString("punctuation.closingQMark"); } // Date - var date = item.getField("date", true); + var date = item.getField("date", true, true); if(date && (date = date.substr(0, 4)) !== "0000") { str += ", "+date; } diff --git a/chrome/locale/en-US/zotero/zotero.properties b/chrome/locale/en-US/zotero/zotero.properties @@ -42,6 +42,10 @@ general.operationInProgress = A Zotero operation is currently in progress. general.operationInProgress.waitUntilFinished = Please wait until it has finished. general.operationInProgress.waitUntilFinishedAndTryAgain = Please wait until it has finished and try again. +punctuation.openingQMark = " +punctuation.closingQMark = " +punctuation.colon = : + install.quickStartGuide = Zotero Quick Start Guide install.quickStartGuide.message.welcome = Welcome to Zotero! install.quickStartGuide.message.view = View the Quick Start Guide to learn how to begin collecting, managing, citing, and sharing your research sources.