Merge pull request #244 from gracile-fr/quickFormat
Quick Format Citation dialog: improve bubble (& drop-down search list)
This commit is contained in:
commit
816dba37bf
2 changed files with 9 additions and 6 deletions
|
@ -470,7 +470,7 @@ var Zotero_QuickFormat = new function () {
|
||||||
|
|
||||||
var author, authorDate = "";
|
var author, authorDate = "";
|
||||||
if(item.firstCreator) author = authorDate = item.firstCreator;
|
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") {
|
if(date && (date = date.substr(0, 4)) !== "0000") {
|
||||||
authorDate += " ("+date+")";
|
authorDate += " ("+date+")";
|
||||||
}
|
}
|
||||||
|
@ -590,14 +590,13 @@ var Zotero_QuickFormat = new function () {
|
||||||
var title, delimiter;
|
var title, delimiter;
|
||||||
var str = item.getField("firstCreator");
|
var str = item.getField("firstCreator");
|
||||||
|
|
||||||
// Title, if no creator
|
// Title, if no creator (getDisplayTitle in order to get case, e-mail, statute which don't have a title field)
|
||||||
if(!str) {
|
if(!str) {
|
||||||
// TODO localize quotes
|
str = Zotero.getString("punctuation.openingQMark") + item.getDisplayTitle() + Zotero.getString("punctuation.closingQMark");
|
||||||
str = '"'+item.getField("title")+'"';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Date
|
// Date
|
||||||
var date = item.getField("date", true);
|
var date = item.getField("date", true, true);
|
||||||
if(date && (date = date.substr(0, 4)) !== "0000") {
|
if(date && (date = date.substr(0, 4)) !== "0000") {
|
||||||
str += ", "+date;
|
str += ", "+date;
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,6 +42,10 @@ general.operationInProgress = A Zotero operation is currently in progress.
|
||||||
general.operationInProgress.waitUntilFinished = Please wait until it has finished.
|
general.operationInProgress.waitUntilFinished = Please wait until it has finished.
|
||||||
general.operationInProgress.waitUntilFinishedAndTryAgain = Please wait until it has finished and try again.
|
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 = Zotero Quick Start Guide
|
||||||
install.quickStartGuide.message.welcome = Welcome to Zotero!
|
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.
|
install.quickStartGuide.message.view = View the Quick Start Guide to learn how to begin collecting, managing, citing, and sharing your research sources.
|
||||||
|
|
Loading…
Add table
Reference in a new issue