Shows original and modified citation in warning prompt. Closes #1468
This commit is contained in:
parent
d44cc05c3d
commit
3e39cb33d9
2 changed files with 10 additions and 2 deletions
|
@ -1008,7 +1008,10 @@ Zotero.Integration.Fields.prototype._updateDocument = async function(forceCitati
|
|||
);
|
||||
citationField.select();
|
||||
var result = this._session.displayAlert(
|
||||
Zotero.getString("integration.citationChanged")+"\n\n"+Zotero.getString("integration.citationChanged.description"),
|
||||
Zotero.getString("integration.citationChanged")+"\n\n"
|
||||
+ Zotero.getString("integration.citationChanged.description")+"\n\n"
|
||||
+ Zotero.getString("integration.citationChanged.original", citation.properties.plainCitation)+"\n"
|
||||
+ Zotero.getString("integration.citationChanged.modified", plainCitation)+"\n",
|
||||
DIALOG_ICON_CAUTION, DIALOG_BUTTONS_YES_NO);
|
||||
if (result) {
|
||||
citation.properties.dontUpdate = true;
|
||||
|
@ -2426,7 +2429,10 @@ Zotero.Integration.Citation = class {
|
|||
+ "Original: " + this.properties.plainCitation + "\n"
|
||||
+ "Current: " + fieldText
|
||||
);
|
||||
if (!Zotero.Integration.currentSession.displayAlert(Zotero.getString("integration.citationChanged.edit"),
|
||||
if (!Zotero.Integration.currentSession.displayAlert(
|
||||
Zotero.getString("integration.citationChanged.edit")+"\n\n"
|
||||
+ Zotero.getString("integration.citationChanged.original", this.properties.plainCitation)+"\n"
|
||||
+ Zotero.getString("integration.citationChanged.modified", fieldText)+"\n",
|
||||
DIALOG_ICON_WARNING, DIALOG_BUTTONS_OK_CANCEL)) {
|
||||
throw new Zotero.Exception.UserCancelled("editing citation");
|
||||
}
|
||||
|
|
|
@ -861,6 +861,8 @@ integration.corruptBibliography.description = All items cited in the text will a
|
|||
integration.citationChanged = You have modified this citation since Zotero generated it. Do you want to keep your modifications and prevent future updates?
|
||||
integration.citationChanged.description = Clicking "Yes" will prevent Zotero from updating this citation if you add additional citations, switch styles, or modify the item to which it refers. Clicking "No" will erase your changes.
|
||||
integration.citationChanged.edit = You have modified this citation since Zotero generated it. Editing will clear your modifications. Do you want to continue?
|
||||
integration.citationChanged.original = Original: %S
|
||||
integration.citationChanged.modified = Modified: %S
|
||||
integration.delayCitationUpdates.alert.text1 = Updating citations in this document is taking a long time. Would you like to disable automatic citation updates?
|
||||
integration.delayCitationUpdates.alert.text2.toolbar = You will need to click Refresh in the Zotero toolbar when you are done inserting citations.
|
||||
integration.delayCitationUpdates.alert.text2.tab = You will need to click Refresh in the Zotero tab when you are done inserting citations.
|
||||
|
|
Loading…
Reference in a new issue