From c882488ef7847fc5bb0cb8062fc9b3211fd710d4 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 27 May 2020 20:13:02 -0400 Subject: [PATCH] Add "(APA)" and "(ASA)" to style list in Document Preferences Hopefully this will help people not select ASA 6th when they're looking for APA 6th. https://forums.zotero.org/discussion/comment/357135/#Comment_357135 --- chrome/content/zotero/bibliography.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/bibliography.js b/chrome/content/zotero/bibliography.js index e765d7ddf8..3a182aa953 100644 --- a/chrome/content/zotero/bibliography.js +++ b/chrome/content/zotero/bibliography.js @@ -88,7 +88,13 @@ var Zotero_File_Interface_Bibliography = new function() { for (let i=0; i < styles.length; i++) { var itemNode = document.createElement("listitem"); itemNode.setAttribute("value", styles[i].styleID); - itemNode.setAttribute("label", styles[i].title); + let title = styles[i].title; + // Add acronyms to APA and ASA to avoid confusion + // https://forums.zotero.org/discussion/comment/357135/#Comment_357135 + title = title + .replace(/^American Psychological Association/, "American Psychological Association (APA)") + .replace(/^American Sociological Association/, "American Sociological Association (ASA)"); + itemNode.setAttribute("label", title); listbox.appendChild(itemNode); if(styles[i].styleID == _io.style) {