update Benny

This commit is contained in:
2025-11-16 13:49:49 +01:00
parent fa200db2cc
commit 9cffa391e8
19 changed files with 2270 additions and 5385 deletions
Binary file not shown.
+371
View File
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
{"pageIndex":5,"scale":150,"top":16,"left":-200,"scrollMode":0,"spreadMode":0}
+1
View File
@@ -0,0 +1 @@
{"pageIndex":0,"scale":"page-width","top":677,"left":-7,"scrollMode":0,"spreadMode":0}
+1
View File
@@ -0,0 +1 @@
{"pageIndex":0,"scale":"page-width","top":796,"left":-5,"scrollMode":0,"spreadMode":0}
+1
View File
@@ -0,0 +1 @@
{"pageIndex":0,"scale":"page-width","top":795,"left":-8,"scrollMode":0,"spreadMode":0}
+1
View File
@@ -0,0 +1 @@
{"pageIndex":54,"scale":190,"top":630,"left":-112,"scrollMode":0,"spreadMode":0}
+1
View File
@@ -0,0 +1 @@
{"pageIndex":0,"scale":"page-width","top":595,"left":-4,"scrollMode":0,"spreadMode":0}
+27 -21
View File
@@ -11,7 +11,7 @@
"configOptions": { "configOptions": {
"getCollections": true, "getCollections": true,
"cached": true, "cached": true,
"hash": "2eaa471e1eca8fd347f55b544bc67eed4be0e083f37aab5396d015b6557f94fd" "hash": "5ca9f2a397830a6241869195b367e5aa72f55edaa9145c05804fef70dc1aa2d7"
}, },
"displayOptions": { "displayOptions": {
"exportNotes": false, "exportNotes": false,
@@ -24,10 +24,10 @@
}, },
"priority": 50, "priority": 50,
"inRepository": false, "inRepository": false,
"lastUpdated": "2024-11-10" "lastUpdated": "2025-11-10"
} }
ZOTERO_CONFIG = {"GUID":"zotero@chnm.gmu.edu","ID":"zotero","CLIENT_NAME":"Zotero","DOMAIN_NAME":"zotero.org","PRODUCER":"Digital Scholar","PRODUCER_URL":"https://digitalscholar.org","REPOSITORY_URL":"https://repo.zotero.org/repo/","BASE_URI":"http://zotero.org/","WWW_BASE_URL":"https://www.zotero.org/","PROXY_AUTH_URL":"https://zoteroproxycheck.s3.amazonaws.com/test","API_URL":"https://api.zotero.org/","STREAMING_URL":"wss://stream.zotero.org/","SERVICES_URL":"https://services.zotero.org/","API_VERSION":3,"CONNECTOR_MIN_VERSION":"5.0.39","PREF_BRANCH":"extensions.zotero.","BOOKMARKLET_ORIGIN":"https://www.zotero.org","BOOKMARKLET_URL":"https://www.zotero.org/bookmarklet/","START_URL":"https://www.zotero.org/start","QUICK_START_URL":"https://www.zotero.org/support/quick_start_guide","PDF_TOOLS_URL":"https://www.zotero.org/download/xpdf/","SUPPORT_URL":"https://www.zotero.org/support/","SYNC_INFO_URL":"https://www.zotero.org/support/sync","TROUBLESHOOTING_URL":"https://www.zotero.org/support/getting_help","FEEDBACK_URL":"https://forums.zotero.org/","CONNECTORS_URL":"https://www.zotero.org/download/connectors","CHANGELOG_URL":"https://www.zotero.org/support/changelog","CREDITS_URL":"https://www.zotero.org/support/credits_and_acknowledgments","LICENSING_URL":"https://www.zotero.org/support/licensing","GET_INVOLVED_URL":"https://www.zotero.org/getinvolved","DICTIONARIES_URL":"https://download.zotero.org/dictionaries/"} if (typeof ZOTERO_CONFIG === 'undefined') ZOTERO_CONFIG = undefined
if (typeof ZOTERO_TRANSLATOR_INFO === 'undefined') var ZOTERO_TRANSLATOR_INFO = {}; // declare if not declared if (typeof ZOTERO_TRANSLATOR_INFO === 'undefined') var ZOTERO_TRANSLATOR_INFO = {}; // declare if not declared
Object.assign(ZOTERO_TRANSLATOR_INFO, {"translatorID":"f895aa0d-f28e-47fe-b247-2ea77c6ed583","translatorType":2,"label":"Better BibLaTeX","description":"exports items in BibLaTeX format","creator":"Simon Kornblith, Richard Karnesky, Anders Johansson and Emiliano Heyns","target":"bib","minVersion":"4.0.27","maxVersion":"","browserSupport":"gcsv","configOptions":{"getCollections":true,"cached":true},"displayOptions":{"exportNotes":false,"exportFileData":false,"useJournalAbbreviation":false,"biblatexAPA":false,"biblatexChicago":false,"keepUpdated":false,"worker":true},"priority":50,"inRepository":false}); // assign new data Object.assign(ZOTERO_TRANSLATOR_INFO, {"translatorID":"f895aa0d-f28e-47fe-b247-2ea77c6ed583","translatorType":2,"label":"Better BibLaTeX","description":"exports items in BibLaTeX format","creator":"Simon Kornblith, Richard Karnesky, Anders Johansson and Emiliano Heyns","target":"bib","minVersion":"4.0.27","maxVersion":"","browserSupport":"gcsv","configOptions":{"getCollections":true,"cached":true},"displayOptions":{"exportNotes":false,"exportFileData":false,"useJournalAbbreviation":false,"biblatexAPA":false,"biblatexChicago":false,"keepUpdated":false,"worker":true},"priority":50,"inRepository":false}); // assign new data
@@ -67,18 +67,17 @@ var { doExport } = (() => {
"Year", "Year",
"biblatexAPA", "biblatexAPA",
"biblatexChicago", "biblatexChicago",
"cache",
"custom",
"dropAttachments",
"exportDir",
"exportFileData", "exportFileData",
"exportNotes", "exportNotes",
"exportPath",
"keepUpdated", "keepUpdated",
"markdown", "markdown",
"quickCopyMode", "quickCopyMode",
"useJournalAbbreviation", "useJournalAbbreviation",
"worker" "worker",
// pseudo options
"custom",
"exportDir",
"exportPath"
]; ];
var headers = [ var headers = [
{ {
@@ -271,7 +270,6 @@ var { doExport } = (() => {
asciiBibLaTeX: false, asciiBibLaTeX: false,
asciiBibTeX: true, asciiBibTeX: true,
autoAbbrev: false, autoAbbrev: false,
autoAbbrevStyle: "",
autoExport: "immediate", autoExport: "immediate",
autoExportDelay: 5, autoExportDelay: 5,
autoExportIdleWait: 10, autoExportIdleWait: 10,
@@ -285,17 +283,19 @@ var { doExport } = (() => {
biblatexExtendedDateFormat: true, biblatexExtendedDateFormat: true,
biblatexExtendedNameFormat: true, biblatexExtendedNameFormat: true,
biblatexExtractEprint: true, biblatexExtractEprint: true,
biblatexUsePrefix: true,
bibtexEditionOrdinal: false, bibtexEditionOrdinal: false,
bibtexParticleNoOp: false, bibtexParticleNoOp: false,
bibtexURL: "off", bibtexURL: "off",
cache: true, cache: true,
cacheDelete: false, cacheDelete: false,
cacheRetain: false,
charmap: "", charmap: "",
chinese: false,
chineseSplitName: true,
citeCommand: "cite", citeCommand: "cite",
citekeyCaseInsensitive: true, citekeyCaseInsensitive: true,
citekeyFold: true, citekeyFold: true,
citekeyFormat: "auth.lower + shorttitle(3,3) + year", citekeyFormat: " auth.lower + shorttitle(3,3) + year",
citekeyFormatEditing: "", citekeyFormatEditing: "",
citekeySearch: true, citekeySearch: true,
citekeyUnsafeChars: `\\"#%'(),={}~`, citekeyUnsafeChars: `\\"#%'(),={}~`,
@@ -318,15 +318,15 @@ var { doExport } = (() => {
importJabRefAbbreviations: true, importJabRefAbbreviations: true,
importJabRefStrings: true, importJabRefStrings: true,
importNoteToExtra: "", importNoteToExtra: "",
importPlaceEvent: "inproceedings,conference,presentation,talk",
importSentenceCase: "on+guess", importSentenceCase: "on+guess",
importSentenceCaseQuoted: true, importSentenceCaseQuoted: true,
importUnknownTexCommand: "ignore", importUnknownTexCommand: "ignore",
itemObserverDelay: 5, itemObserverDelay: 5,
jabrefFormat: 0, jabrefFormat: 0,
jieba: false, japanese: false,
keyConflictPolicy: "keep", keyConflictPolicy: "keep",
keyScope: "library", keyScope: "library",
kuroshiro: false,
language: "langid", language: "langid",
logEvents: true, logEvents: true,
mapMath: "", mapMath: "",
@@ -363,9 +363,10 @@ var { doExport } = (() => {
// translators/lib/collect.ts // translators/lib/collect.ts
var Items = class { var Items = class {
items = [];
map = {};
current;
constructor() { constructor() {
this.items = [];
this.map = {};
let item; let item;
while (item = Zotero.nextItem()) { while (item = Zotero.nextItem()) {
this.items.push(this.map[item.itemID] = this.map[item.itemKey] = item); this.items.push(this.map[item.itemID] = this.map[item.itemKey] = item);
@@ -418,12 +419,12 @@ var { doExport } = (() => {
var Collections = class { var Collections = class {
constructor(items) { constructor(items) {
this.items = items; this.items = items;
this.byKey = {};
let collection; let collection;
while (collection = Zotero.nextCollection()) { while (collection = Zotero.nextCollection()) {
this.registerCollection(collection, ""); this.registerCollection(collection, "");
} }
} }
byKey = {};
erase() { erase() {
this.byKey = {}; this.byKey = {};
} }
@@ -476,8 +477,6 @@ var { doExport } = (() => {
var Collected = class { var Collected = class {
constructor(translator, mode) { constructor(translator, mode) {
this.translator = translator; this.translator = translator;
this.input = "";
this.displayOptions = {};
switch (mode) { switch (mode) {
case "export": case "export":
this.items = new Items(); this.items = new Items();
@@ -491,13 +490,20 @@ var { doExport } = (() => {
break; break;
} }
this.preferences = Object.entries(defaults).reduce((acc, [pref, dflt]) => { this.preferences = Object.entries(defaults).reduce((acc, [pref, dflt]) => {
var _a; acc[pref] = Zotero.getHiddenPref(`better-bibtex.${pref}`) ?? dflt;
acc[pref] = (_a = Zotero.getHiddenPref(`better-bibtex.${pref}`)) != null ? _a : dflt;
return acc; return acc;
}, {}); }, {});
this.preferences.testing = Zotero.getHiddenPref("better-bibtex.testing"); this.preferences.testing = Zotero.getHiddenPref("better-bibtex.testing");
this.platform = Zotero.getHiddenPref("better-bibtex.platform"); this.platform = Zotero.getHiddenPref("better-bibtex.platform");
} }
input = "";
items;
collections;
preferences;
displayOptions = {};
platform;
Item;
Collection;
item(type) { item(type) {
return new Zotero.Item(type); return new Zotero.Item(type);
} }
File diff suppressed because it is too large Load Diff
+27 -21
View File
@@ -10,7 +10,7 @@
"async": true, "async": true,
"getCollections": true, "getCollections": true,
"cached": true, "cached": true,
"hash": "739a1b8bcf81687ad47f0c9bedb78f7d4d76972a8aea63c87fb475e3c14fddee" "hash": "20862e962546f91f57f84d0c6aa5b8a0949dc8a52267f6fb0bd46a300215b508"
}, },
"displayOptions": { "displayOptions": {
"exportNotes": false, "exportNotes": false,
@@ -23,10 +23,10 @@
"browserSupport": "gcsv", "browserSupport": "gcsv",
"priority": 199, "priority": 199,
"inRepository": false, "inRepository": false,
"lastUpdated": "2024-11-10" "lastUpdated": "2025-11-10"
} }
ZOTERO_CONFIG = {"GUID":"zotero@chnm.gmu.edu","ID":"zotero","CLIENT_NAME":"Zotero","DOMAIN_NAME":"zotero.org","PRODUCER":"Digital Scholar","PRODUCER_URL":"https://digitalscholar.org","REPOSITORY_URL":"https://repo.zotero.org/repo/","BASE_URI":"http://zotero.org/","WWW_BASE_URL":"https://www.zotero.org/","PROXY_AUTH_URL":"https://zoteroproxycheck.s3.amazonaws.com/test","API_URL":"https://api.zotero.org/","STREAMING_URL":"wss://stream.zotero.org/","SERVICES_URL":"https://services.zotero.org/","API_VERSION":3,"CONNECTOR_MIN_VERSION":"5.0.39","PREF_BRANCH":"extensions.zotero.","BOOKMARKLET_ORIGIN":"https://www.zotero.org","BOOKMARKLET_URL":"https://www.zotero.org/bookmarklet/","START_URL":"https://www.zotero.org/start","QUICK_START_URL":"https://www.zotero.org/support/quick_start_guide","PDF_TOOLS_URL":"https://www.zotero.org/download/xpdf/","SUPPORT_URL":"https://www.zotero.org/support/","SYNC_INFO_URL":"https://www.zotero.org/support/sync","TROUBLESHOOTING_URL":"https://www.zotero.org/support/getting_help","FEEDBACK_URL":"https://forums.zotero.org/","CONNECTORS_URL":"https://www.zotero.org/download/connectors","CHANGELOG_URL":"https://www.zotero.org/support/changelog","CREDITS_URL":"https://www.zotero.org/support/credits_and_acknowledgments","LICENSING_URL":"https://www.zotero.org/support/licensing","GET_INVOLVED_URL":"https://www.zotero.org/getinvolved","DICTIONARIES_URL":"https://download.zotero.org/dictionaries/"} if (typeof ZOTERO_CONFIG === 'undefined') ZOTERO_CONFIG = undefined
if (typeof ZOTERO_TRANSLATOR_INFO === 'undefined') var ZOTERO_TRANSLATOR_INFO = {}; // declare if not declared if (typeof ZOTERO_TRANSLATOR_INFO === 'undefined') var ZOTERO_TRANSLATOR_INFO = {}; // declare if not declared
Object.assign(ZOTERO_TRANSLATOR_INFO, {"translatorID":"ca65189f-8815-4afe-8c8b-8c7c15f0edca","label":"Better BibTeX","description":"exports items in BibTeX format","creator":"Simon Kornblith, Richard Karnesky and Emiliano heyns","target":"bib","minVersion":"4.0.27","maxVersion":"","configOptions":{"async":true,"getCollections":true,"cached":true},"displayOptions":{"exportNotes":false,"exportFileData":false,"useJournalAbbreviation":false,"keepUpdated":false,"worker":true},"translatorType":3,"browserSupport":"gcsv","priority":199,"inRepository":false}); // assign new data Object.assign(ZOTERO_TRANSLATOR_INFO, {"translatorID":"ca65189f-8815-4afe-8c8b-8c7c15f0edca","label":"Better BibTeX","description":"exports items in BibTeX format","creator":"Simon Kornblith, Richard Karnesky and Emiliano heyns","target":"bib","minVersion":"4.0.27","maxVersion":"","configOptions":{"async":true,"getCollections":true,"cached":true},"displayOptions":{"exportNotes":false,"exportFileData":false,"useJournalAbbreviation":false,"keepUpdated":false,"worker":true},"translatorType":3,"browserSupport":"gcsv","priority":199,"inRepository":false}); // assign new data
@@ -68,18 +68,17 @@ var { detectImport, doExport, doImport } = (() => {
"Year", "Year",
"biblatexAPA", "biblatexAPA",
"biblatexChicago", "biblatexChicago",
"cache",
"custom",
"dropAttachments",
"exportDir",
"exportFileData", "exportFileData",
"exportNotes", "exportNotes",
"exportPath",
"keepUpdated", "keepUpdated",
"markdown", "markdown",
"quickCopyMode", "quickCopyMode",
"useJournalAbbreviation", "useJournalAbbreviation",
"worker" "worker",
// pseudo options
"custom",
"exportDir",
"exportPath"
]; ];
var headers = [ var headers = [
{ {
@@ -272,7 +271,6 @@ var { detectImport, doExport, doImport } = (() => {
asciiBibLaTeX: false, asciiBibLaTeX: false,
asciiBibTeX: true, asciiBibTeX: true,
autoAbbrev: false, autoAbbrev: false,
autoAbbrevStyle: "",
autoExport: "immediate", autoExport: "immediate",
autoExportDelay: 5, autoExportDelay: 5,
autoExportIdleWait: 10, autoExportIdleWait: 10,
@@ -286,17 +284,19 @@ var { detectImport, doExport, doImport } = (() => {
biblatexExtendedDateFormat: true, biblatexExtendedDateFormat: true,
biblatexExtendedNameFormat: true, biblatexExtendedNameFormat: true,
biblatexExtractEprint: true, biblatexExtractEprint: true,
biblatexUsePrefix: true,
bibtexEditionOrdinal: false, bibtexEditionOrdinal: false,
bibtexParticleNoOp: false, bibtexParticleNoOp: false,
bibtexURL: "off", bibtexURL: "off",
cache: true, cache: true,
cacheDelete: false, cacheDelete: false,
cacheRetain: false,
charmap: "", charmap: "",
chinese: false,
chineseSplitName: true,
citeCommand: "cite", citeCommand: "cite",
citekeyCaseInsensitive: true, citekeyCaseInsensitive: true,
citekeyFold: true, citekeyFold: true,
citekeyFormat: "auth.lower + shorttitle(3,3) + year", citekeyFormat: " auth.lower + shorttitle(3,3) + year",
citekeyFormatEditing: "", citekeyFormatEditing: "",
citekeySearch: true, citekeySearch: true,
citekeyUnsafeChars: `\\"#%'(),={}~`, citekeyUnsafeChars: `\\"#%'(),={}~`,
@@ -319,15 +319,15 @@ var { detectImport, doExport, doImport } = (() => {
importJabRefAbbreviations: true, importJabRefAbbreviations: true,
importJabRefStrings: true, importJabRefStrings: true,
importNoteToExtra: "", importNoteToExtra: "",
importPlaceEvent: "inproceedings,conference,presentation,talk",
importSentenceCase: "on+guess", importSentenceCase: "on+guess",
importSentenceCaseQuoted: true, importSentenceCaseQuoted: true,
importUnknownTexCommand: "ignore", importUnknownTexCommand: "ignore",
itemObserverDelay: 5, itemObserverDelay: 5,
jabrefFormat: 0, jabrefFormat: 0,
jieba: false, japanese: false,
keyConflictPolicy: "keep", keyConflictPolicy: "keep",
keyScope: "library", keyScope: "library",
kuroshiro: false,
language: "langid", language: "langid",
logEvents: true, logEvents: true,
mapMath: "", mapMath: "",
@@ -364,9 +364,10 @@ var { detectImport, doExport, doImport } = (() => {
// translators/lib/collect.ts // translators/lib/collect.ts
var Items = class { var Items = class {
items = [];
map = {};
current;
constructor() { constructor() {
this.items = [];
this.map = {};
let item; let item;
while (item = Zotero.nextItem()) { while (item = Zotero.nextItem()) {
this.items.push(this.map[item.itemID] = this.map[item.itemKey] = item); this.items.push(this.map[item.itemID] = this.map[item.itemKey] = item);
@@ -419,12 +420,12 @@ var { detectImport, doExport, doImport } = (() => {
var Collections = class { var Collections = class {
constructor(items) { constructor(items) {
this.items = items; this.items = items;
this.byKey = {};
let collection; let collection;
while (collection = Zotero.nextCollection()) { while (collection = Zotero.nextCollection()) {
this.registerCollection(collection, ""); this.registerCollection(collection, "");
} }
} }
byKey = {};
erase() { erase() {
this.byKey = {}; this.byKey = {};
} }
@@ -477,8 +478,6 @@ var { detectImport, doExport, doImport } = (() => {
var Collected = class { var Collected = class {
constructor(translator, mode) { constructor(translator, mode) {
this.translator = translator; this.translator = translator;
this.input = "";
this.displayOptions = {};
switch (mode) { switch (mode) {
case "export": case "export":
this.items = new Items(); this.items = new Items();
@@ -492,13 +491,20 @@ var { detectImport, doExport, doImport } = (() => {
break; break;
} }
this.preferences = Object.entries(defaults).reduce((acc, [pref, dflt]) => { this.preferences = Object.entries(defaults).reduce((acc, [pref, dflt]) => {
var _a; acc[pref] = Zotero.getHiddenPref(`better-bibtex.${pref}`) ?? dflt;
acc[pref] = (_a = Zotero.getHiddenPref(`better-bibtex.${pref}`)) != null ? _a : dflt;
return acc; return acc;
}, {}); }, {});
this.preferences.testing = Zotero.getHiddenPref("better-bibtex.testing"); this.preferences.testing = Zotero.getHiddenPref("better-bibtex.testing");
this.platform = Zotero.getHiddenPref("better-bibtex.platform"); this.platform = Zotero.getHiddenPref("better-bibtex.platform");
} }
input = "";
items;
collections;
preferences;
displayOptions = {};
platform;
Item;
Collection;
item(type) { item(type) {
return new Zotero.Item(type); return new Zotero.Item(type);
} }
+27 -21
View File
@@ -13,16 +13,16 @@
"configOptions": { "configOptions": {
"getCollections": true, "getCollections": true,
"cached": true, "cached": true,
"hash": "62f5f9fff9f510020604a2ccda667d3967b115b4259451c1028d2ff0e20bda41" "hash": "2a309159eebe70f6496b2b4249138450cd98171a07522ad2b97608313f14f98e"
}, },
"translatorType": 2, "translatorType": 2,
"browserSupport": "gcsv", "browserSupport": "gcsv",
"inRepository": false, "inRepository": false,
"priority": 100, "priority": 100,
"lastUpdated": "2024-11-10" "lastUpdated": "2025-11-10"
} }
ZOTERO_CONFIG = {"GUID":"zotero@chnm.gmu.edu","ID":"zotero","CLIENT_NAME":"Zotero","DOMAIN_NAME":"zotero.org","PRODUCER":"Digital Scholar","PRODUCER_URL":"https://digitalscholar.org","REPOSITORY_URL":"https://repo.zotero.org/repo/","BASE_URI":"http://zotero.org/","WWW_BASE_URL":"https://www.zotero.org/","PROXY_AUTH_URL":"https://zoteroproxycheck.s3.amazonaws.com/test","API_URL":"https://api.zotero.org/","STREAMING_URL":"wss://stream.zotero.org/","SERVICES_URL":"https://services.zotero.org/","API_VERSION":3,"CONNECTOR_MIN_VERSION":"5.0.39","PREF_BRANCH":"extensions.zotero.","BOOKMARKLET_ORIGIN":"https://www.zotero.org","BOOKMARKLET_URL":"https://www.zotero.org/bookmarklet/","START_URL":"https://www.zotero.org/start","QUICK_START_URL":"https://www.zotero.org/support/quick_start_guide","PDF_TOOLS_URL":"https://www.zotero.org/download/xpdf/","SUPPORT_URL":"https://www.zotero.org/support/","SYNC_INFO_URL":"https://www.zotero.org/support/sync","TROUBLESHOOTING_URL":"https://www.zotero.org/support/getting_help","FEEDBACK_URL":"https://forums.zotero.org/","CONNECTORS_URL":"https://www.zotero.org/download/connectors","CHANGELOG_URL":"https://www.zotero.org/support/changelog","CREDITS_URL":"https://www.zotero.org/support/credits_and_acknowledgments","LICENSING_URL":"https://www.zotero.org/support/licensing","GET_INVOLVED_URL":"https://www.zotero.org/getinvolved","DICTIONARIES_URL":"https://download.zotero.org/dictionaries/"} if (typeof ZOTERO_CONFIG === 'undefined') ZOTERO_CONFIG = undefined
if (typeof ZOTERO_TRANSLATOR_INFO === 'undefined') var ZOTERO_TRANSLATOR_INFO = {}; // declare if not declared if (typeof ZOTERO_TRANSLATOR_INFO === 'undefined') var ZOTERO_TRANSLATOR_INFO = {}; // declare if not declared
Object.assign(ZOTERO_TRANSLATOR_INFO, {"translatorID":"f4b52ab0-f878-4556-85a0-c7aeedd09dfc","label":"Better CSL JSON","description":"exports items in pandoc-compatible CSL-JSON format, with added citation keys and parsing of metadata","creator":"Emiliano heyns","target":"json","minVersion":"4.0.27","maxVersion":"","displayOptions":{"keepUpdated":false,"worker":true},"configOptions":{"getCollections":true,"cached":true},"translatorType":2,"browserSupport":"gcsv","inRepository":false,"priority":100}); // assign new data Object.assign(ZOTERO_TRANSLATOR_INFO, {"translatorID":"f4b52ab0-f878-4556-85a0-c7aeedd09dfc","label":"Better CSL JSON","description":"exports items in pandoc-compatible CSL-JSON format, with added citation keys and parsing of metadata","creator":"Emiliano heyns","target":"json","minVersion":"4.0.27","maxVersion":"","displayOptions":{"keepUpdated":false,"worker":true},"configOptions":{"getCollections":true,"cached":true},"translatorType":2,"browserSupport":"gcsv","inRepository":false,"priority":100}); // assign new data
@@ -62,18 +62,17 @@ var { doExport } = (() => {
"Year", "Year",
"biblatexAPA", "biblatexAPA",
"biblatexChicago", "biblatexChicago",
"cache",
"custom",
"dropAttachments",
"exportDir",
"exportFileData", "exportFileData",
"exportNotes", "exportNotes",
"exportPath",
"keepUpdated", "keepUpdated",
"markdown", "markdown",
"quickCopyMode", "quickCopyMode",
"useJournalAbbreviation", "useJournalAbbreviation",
"worker" "worker",
// pseudo options
"custom",
"exportDir",
"exportPath"
]; ];
var headers = [ var headers = [
{ {
@@ -266,7 +265,6 @@ var { doExport } = (() => {
asciiBibLaTeX: false, asciiBibLaTeX: false,
asciiBibTeX: true, asciiBibTeX: true,
autoAbbrev: false, autoAbbrev: false,
autoAbbrevStyle: "",
autoExport: "immediate", autoExport: "immediate",
autoExportDelay: 5, autoExportDelay: 5,
autoExportIdleWait: 10, autoExportIdleWait: 10,
@@ -280,17 +278,19 @@ var { doExport } = (() => {
biblatexExtendedDateFormat: true, biblatexExtendedDateFormat: true,
biblatexExtendedNameFormat: true, biblatexExtendedNameFormat: true,
biblatexExtractEprint: true, biblatexExtractEprint: true,
biblatexUsePrefix: true,
bibtexEditionOrdinal: false, bibtexEditionOrdinal: false,
bibtexParticleNoOp: false, bibtexParticleNoOp: false,
bibtexURL: "off", bibtexURL: "off",
cache: true, cache: true,
cacheDelete: false, cacheDelete: false,
cacheRetain: false,
charmap: "", charmap: "",
chinese: false,
chineseSplitName: true,
citeCommand: "cite", citeCommand: "cite",
citekeyCaseInsensitive: true, citekeyCaseInsensitive: true,
citekeyFold: true, citekeyFold: true,
citekeyFormat: "auth.lower + shorttitle(3,3) + year", citekeyFormat: " auth.lower + shorttitle(3,3) + year",
citekeyFormatEditing: "", citekeyFormatEditing: "",
citekeySearch: true, citekeySearch: true,
citekeyUnsafeChars: `\\"#%'(),={}~`, citekeyUnsafeChars: `\\"#%'(),={}~`,
@@ -313,15 +313,15 @@ var { doExport } = (() => {
importJabRefAbbreviations: true, importJabRefAbbreviations: true,
importJabRefStrings: true, importJabRefStrings: true,
importNoteToExtra: "", importNoteToExtra: "",
importPlaceEvent: "inproceedings,conference,presentation,talk",
importSentenceCase: "on+guess", importSentenceCase: "on+guess",
importSentenceCaseQuoted: true, importSentenceCaseQuoted: true,
importUnknownTexCommand: "ignore", importUnknownTexCommand: "ignore",
itemObserverDelay: 5, itemObserverDelay: 5,
jabrefFormat: 0, jabrefFormat: 0,
jieba: false, japanese: false,
keyConflictPolicy: "keep", keyConflictPolicy: "keep",
keyScope: "library", keyScope: "library",
kuroshiro: false,
language: "langid", language: "langid",
logEvents: true, logEvents: true,
mapMath: "", mapMath: "",
@@ -358,9 +358,10 @@ var { doExport } = (() => {
// translators/lib/collect.ts // translators/lib/collect.ts
var Items = class { var Items = class {
items = [];
map = {};
current;
constructor() { constructor() {
this.items = [];
this.map = {};
let item; let item;
while (item = Zotero.nextItem()) { while (item = Zotero.nextItem()) {
this.items.push(this.map[item.itemID] = this.map[item.itemKey] = item); this.items.push(this.map[item.itemID] = this.map[item.itemKey] = item);
@@ -413,12 +414,12 @@ var { doExport } = (() => {
var Collections = class { var Collections = class {
constructor(items) { constructor(items) {
this.items = items; this.items = items;
this.byKey = {};
let collection; let collection;
while (collection = Zotero.nextCollection()) { while (collection = Zotero.nextCollection()) {
this.registerCollection(collection, ""); this.registerCollection(collection, "");
} }
} }
byKey = {};
erase() { erase() {
this.byKey = {}; this.byKey = {};
} }
@@ -471,8 +472,6 @@ var { doExport } = (() => {
var Collected = class { var Collected = class {
constructor(translator, mode) { constructor(translator, mode) {
this.translator = translator; this.translator = translator;
this.input = "";
this.displayOptions = {};
switch (mode) { switch (mode) {
case "export": case "export":
this.items = new Items(); this.items = new Items();
@@ -486,13 +485,20 @@ var { doExport } = (() => {
break; break;
} }
this.preferences = Object.entries(defaults).reduce((acc, [pref, dflt]) => { this.preferences = Object.entries(defaults).reduce((acc, [pref, dflt]) => {
var _a; acc[pref] = Zotero.getHiddenPref(`better-bibtex.${pref}`) ?? dflt;
acc[pref] = (_a = Zotero.getHiddenPref(`better-bibtex.${pref}`)) != null ? _a : dflt;
return acc; return acc;
}, {}); }, {});
this.preferences.testing = Zotero.getHiddenPref("better-bibtex.testing"); this.preferences.testing = Zotero.getHiddenPref("better-bibtex.testing");
this.platform = Zotero.getHiddenPref("better-bibtex.platform"); this.platform = Zotero.getHiddenPref("better-bibtex.platform");
} }
input = "";
items;
collections;
preferences;
displayOptions = {};
platform;
Item;
Collection;
item(type) { item(type) {
return new Zotero.Item(type); return new Zotero.Item(type);
} }
+27 -21
View File
@@ -13,16 +13,16 @@
"configOptions": { "configOptions": {
"getCollections": true, "getCollections": true,
"cached": true, "cached": true,
"hash": "41c8cb0eea5a3afb0778f54d426bda550bd0f57ac3f8fc165fb5fa524bbdeb3f" "hash": "5a5648eab22e32c4d8be532a90f5dda3805a9153ff3a8cc71810d87698c89c3f"
}, },
"translatorType": 3, "translatorType": 3,
"browserSupport": "gcsv", "browserSupport": "gcsv",
"priority": 800, "priority": 800,
"inRepository": false, "inRepository": false,
"lastUpdated": "2024-11-10" "lastUpdated": "2025-11-10"
} }
ZOTERO_CONFIG = {"GUID":"zotero@chnm.gmu.edu","ID":"zotero","CLIENT_NAME":"Zotero","DOMAIN_NAME":"zotero.org","PRODUCER":"Digital Scholar","PRODUCER_URL":"https://digitalscholar.org","REPOSITORY_URL":"https://repo.zotero.org/repo/","BASE_URI":"http://zotero.org/","WWW_BASE_URL":"https://www.zotero.org/","PROXY_AUTH_URL":"https://zoteroproxycheck.s3.amazonaws.com/test","API_URL":"https://api.zotero.org/","STREAMING_URL":"wss://stream.zotero.org/","SERVICES_URL":"https://services.zotero.org/","API_VERSION":3,"CONNECTOR_MIN_VERSION":"5.0.39","PREF_BRANCH":"extensions.zotero.","BOOKMARKLET_ORIGIN":"https://www.zotero.org","BOOKMARKLET_URL":"https://www.zotero.org/bookmarklet/","START_URL":"https://www.zotero.org/start","QUICK_START_URL":"https://www.zotero.org/support/quick_start_guide","PDF_TOOLS_URL":"https://www.zotero.org/download/xpdf/","SUPPORT_URL":"https://www.zotero.org/support/","SYNC_INFO_URL":"https://www.zotero.org/support/sync","TROUBLESHOOTING_URL":"https://www.zotero.org/support/getting_help","FEEDBACK_URL":"https://forums.zotero.org/","CONNECTORS_URL":"https://www.zotero.org/download/connectors","CHANGELOG_URL":"https://www.zotero.org/support/changelog","CREDITS_URL":"https://www.zotero.org/support/credits_and_acknowledgments","LICENSING_URL":"https://www.zotero.org/support/licensing","GET_INVOLVED_URL":"https://www.zotero.org/getinvolved","DICTIONARIES_URL":"https://download.zotero.org/dictionaries/"} if (typeof ZOTERO_CONFIG === 'undefined') ZOTERO_CONFIG = undefined
if (typeof ZOTERO_TRANSLATOR_INFO === 'undefined') var ZOTERO_TRANSLATOR_INFO = {}; // declare if not declared if (typeof ZOTERO_TRANSLATOR_INFO === 'undefined') var ZOTERO_TRANSLATOR_INFO = {}; // declare if not declared
Object.assign(ZOTERO_TRANSLATOR_INFO, {"translatorID":"0f238e69-043e-4882-93bf-342de007de19","label":"Better CSL YAML","description":"exports items in pandoc-compatible CSL-YAML format, with added citation keys and parsing of metadata","creator":"Emiliano heyns","target":"yaml","minVersion":"4.0.27","maxVersion":"","displayOptions":{"keepUpdated":false,"worker":true},"configOptions":{"getCollections":true,"cached":true},"translatorType":3,"browserSupport":"gcsv","priority":800,"inRepository":false}); // assign new data Object.assign(ZOTERO_TRANSLATOR_INFO, {"translatorID":"0f238e69-043e-4882-93bf-342de007de19","label":"Better CSL YAML","description":"exports items in pandoc-compatible CSL-YAML format, with added citation keys and parsing of metadata","creator":"Emiliano heyns","target":"yaml","minVersion":"4.0.27","maxVersion":"","displayOptions":{"keepUpdated":false,"worker":true},"configOptions":{"getCollections":true,"cached":true},"translatorType":3,"browserSupport":"gcsv","priority":800,"inRepository":false}); // assign new data
@@ -64,18 +64,17 @@ var { detectImport, doExport, doImport } = (() => {
"Year", "Year",
"biblatexAPA", "biblatexAPA",
"biblatexChicago", "biblatexChicago",
"cache",
"custom",
"dropAttachments",
"exportDir",
"exportFileData", "exportFileData",
"exportNotes", "exportNotes",
"exportPath",
"keepUpdated", "keepUpdated",
"markdown", "markdown",
"quickCopyMode", "quickCopyMode",
"useJournalAbbreviation", "useJournalAbbreviation",
"worker" "worker",
// pseudo options
"custom",
"exportDir",
"exportPath"
]; ];
var headers = [ var headers = [
{ {
@@ -268,7 +267,6 @@ var { detectImport, doExport, doImport } = (() => {
asciiBibLaTeX: false, asciiBibLaTeX: false,
asciiBibTeX: true, asciiBibTeX: true,
autoAbbrev: false, autoAbbrev: false,
autoAbbrevStyle: "",
autoExport: "immediate", autoExport: "immediate",
autoExportDelay: 5, autoExportDelay: 5,
autoExportIdleWait: 10, autoExportIdleWait: 10,
@@ -282,17 +280,19 @@ var { detectImport, doExport, doImport } = (() => {
biblatexExtendedDateFormat: true, biblatexExtendedDateFormat: true,
biblatexExtendedNameFormat: true, biblatexExtendedNameFormat: true,
biblatexExtractEprint: true, biblatexExtractEprint: true,
biblatexUsePrefix: true,
bibtexEditionOrdinal: false, bibtexEditionOrdinal: false,
bibtexParticleNoOp: false, bibtexParticleNoOp: false,
bibtexURL: "off", bibtexURL: "off",
cache: true, cache: true,
cacheDelete: false, cacheDelete: false,
cacheRetain: false,
charmap: "", charmap: "",
chinese: false,
chineseSplitName: true,
citeCommand: "cite", citeCommand: "cite",
citekeyCaseInsensitive: true, citekeyCaseInsensitive: true,
citekeyFold: true, citekeyFold: true,
citekeyFormat: "auth.lower + shorttitle(3,3) + year", citekeyFormat: " auth.lower + shorttitle(3,3) + year",
citekeyFormatEditing: "", citekeyFormatEditing: "",
citekeySearch: true, citekeySearch: true,
citekeyUnsafeChars: `\\"#%'(),={}~`, citekeyUnsafeChars: `\\"#%'(),={}~`,
@@ -315,15 +315,15 @@ var { detectImport, doExport, doImport } = (() => {
importJabRefAbbreviations: true, importJabRefAbbreviations: true,
importJabRefStrings: true, importJabRefStrings: true,
importNoteToExtra: "", importNoteToExtra: "",
importPlaceEvent: "inproceedings,conference,presentation,talk",
importSentenceCase: "on+guess", importSentenceCase: "on+guess",
importSentenceCaseQuoted: true, importSentenceCaseQuoted: true,
importUnknownTexCommand: "ignore", importUnknownTexCommand: "ignore",
itemObserverDelay: 5, itemObserverDelay: 5,
jabrefFormat: 0, jabrefFormat: 0,
jieba: false, japanese: false,
keyConflictPolicy: "keep", keyConflictPolicy: "keep",
keyScope: "library", keyScope: "library",
kuroshiro: false,
language: "langid", language: "langid",
logEvents: true, logEvents: true,
mapMath: "", mapMath: "",
@@ -360,9 +360,10 @@ var { detectImport, doExport, doImport } = (() => {
// translators/lib/collect.ts // translators/lib/collect.ts
var Items = class { var Items = class {
items = [];
map = {};
current;
constructor() { constructor() {
this.items = [];
this.map = {};
let item; let item;
while (item = Zotero.nextItem()) { while (item = Zotero.nextItem()) {
this.items.push(this.map[item.itemID] = this.map[item.itemKey] = item); this.items.push(this.map[item.itemID] = this.map[item.itemKey] = item);
@@ -415,12 +416,12 @@ var { detectImport, doExport, doImport } = (() => {
var Collections = class { var Collections = class {
constructor(items) { constructor(items) {
this.items = items; this.items = items;
this.byKey = {};
let collection; let collection;
while (collection = Zotero.nextCollection()) { while (collection = Zotero.nextCollection()) {
this.registerCollection(collection, ""); this.registerCollection(collection, "");
} }
} }
byKey = {};
erase() { erase() {
this.byKey = {}; this.byKey = {};
} }
@@ -473,8 +474,6 @@ var { detectImport, doExport, doImport } = (() => {
var Collected = class { var Collected = class {
constructor(translator, mode) { constructor(translator, mode) {
this.translator = translator; this.translator = translator;
this.input = "";
this.displayOptions = {};
switch (mode) { switch (mode) {
case "export": case "export":
this.items = new Items(); this.items = new Items();
@@ -488,13 +487,20 @@ var { detectImport, doExport, doImport } = (() => {
break; break;
} }
this.preferences = Object.entries(defaults).reduce((acc, [pref, dflt]) => { this.preferences = Object.entries(defaults).reduce((acc, [pref, dflt]) => {
var _a; acc[pref] = Zotero.getHiddenPref(`better-bibtex.${pref}`) ?? dflt;
acc[pref] = (_a = Zotero.getHiddenPref(`better-bibtex.${pref}`)) != null ? _a : dflt;
return acc; return acc;
}, {}); }, {});
this.preferences.testing = Zotero.getHiddenPref("better-bibtex.testing"); this.preferences.testing = Zotero.getHiddenPref("better-bibtex.testing");
this.platform = Zotero.getHiddenPref("better-bibtex.platform"); this.platform = Zotero.getHiddenPref("better-bibtex.platform");
} }
input = "";
items;
collections;
preferences;
displayOptions = {};
platform;
Item;
Collection;
item(type) { item(type) {
return new Zotero.Item(type); return new Zotero.Item(type);
} }
+27 -21
View File
@@ -10,7 +10,7 @@
"async": true, "async": true,
"getCollections": true, "getCollections": true,
"cached": true, "cached": true,
"hash": "62256a064b990e2a8fcef580ea18ba6c495d651a8c255000f5fb20cc32ba4e3f" "hash": "33e9e1a64b9c0e7b2db2715e39cb39f40af81ed4211528c96bca0cb884077622"
}, },
"displayOptions": { "displayOptions": {
"exportNotes": true, "exportNotes": true,
@@ -25,10 +25,10 @@
"browserSupport": "gcsv", "browserSupport": "gcsv",
"priority": 49, "priority": 49,
"inRepository": false, "inRepository": false,
"lastUpdated": "2024-11-10" "lastUpdated": "2025-11-10"
} }
ZOTERO_CONFIG = {"GUID":"zotero@chnm.gmu.edu","ID":"zotero","CLIENT_NAME":"Zotero","DOMAIN_NAME":"zotero.org","PRODUCER":"Digital Scholar","PRODUCER_URL":"https://digitalscholar.org","REPOSITORY_URL":"https://repo.zotero.org/repo/","BASE_URI":"http://zotero.org/","WWW_BASE_URL":"https://www.zotero.org/","PROXY_AUTH_URL":"https://zoteroproxycheck.s3.amazonaws.com/test","API_URL":"https://api.zotero.org/","STREAMING_URL":"wss://stream.zotero.org/","SERVICES_URL":"https://services.zotero.org/","API_VERSION":3,"CONNECTOR_MIN_VERSION":"5.0.39","PREF_BRANCH":"extensions.zotero.","BOOKMARKLET_ORIGIN":"https://www.zotero.org","BOOKMARKLET_URL":"https://www.zotero.org/bookmarklet/","START_URL":"https://www.zotero.org/start","QUICK_START_URL":"https://www.zotero.org/support/quick_start_guide","PDF_TOOLS_URL":"https://www.zotero.org/download/xpdf/","SUPPORT_URL":"https://www.zotero.org/support/","SYNC_INFO_URL":"https://www.zotero.org/support/sync","TROUBLESHOOTING_URL":"https://www.zotero.org/support/getting_help","FEEDBACK_URL":"https://forums.zotero.org/","CONNECTORS_URL":"https://www.zotero.org/download/connectors","CHANGELOG_URL":"https://www.zotero.org/support/changelog","CREDITS_URL":"https://www.zotero.org/support/credits_and_acknowledgments","LICENSING_URL":"https://www.zotero.org/support/licensing","GET_INVOLVED_URL":"https://www.zotero.org/getinvolved","DICTIONARIES_URL":"https://download.zotero.org/dictionaries/"} if (typeof ZOTERO_CONFIG === 'undefined') ZOTERO_CONFIG = undefined
if (typeof ZOTERO_TRANSLATOR_INFO === 'undefined') var ZOTERO_TRANSLATOR_INFO = {}; // declare if not declared if (typeof ZOTERO_TRANSLATOR_INFO === 'undefined') var ZOTERO_TRANSLATOR_INFO = {}; // declare if not declared
Object.assign(ZOTERO_TRANSLATOR_INFO, {"translatorID":"36a3b0b5-bad0-4a04-b79b-441c7cef77db","label":"BetterBibTeX JSON","description":"exports and imports items in BetterBibTeX debug format. Mostly for BBT-internal use","creator":"Emiliano Heyns","target":"json","minVersion":"4.0.27","maxVersion":"","configOptions":{"async":true,"getCollections":true,"cached":true},"displayOptions":{"exportNotes":true,"exportFileData":false,"Items":true,"Preferences":true,"keepUpdated":false,"worker":true,"Normalize":false},"translatorType":3,"browserSupport":"gcsv","priority":49,"inRepository":false}); // assign new data Object.assign(ZOTERO_TRANSLATOR_INFO, {"translatorID":"36a3b0b5-bad0-4a04-b79b-441c7cef77db","label":"BetterBibTeX JSON","description":"exports and imports items in BetterBibTeX debug format. Mostly for BBT-internal use","creator":"Emiliano Heyns","target":"json","minVersion":"4.0.27","maxVersion":"","configOptions":{"async":true,"getCollections":true,"cached":true},"displayOptions":{"exportNotes":true,"exportFileData":false,"Items":true,"Preferences":true,"keepUpdated":false,"worker":true,"Normalize":false},"translatorType":3,"browserSupport":"gcsv","priority":49,"inRepository":false}); // assign new data
@@ -70,18 +70,17 @@ var { detectImport, doExport, doImport } = (() => {
"Year", "Year",
"biblatexAPA", "biblatexAPA",
"biblatexChicago", "biblatexChicago",
"cache",
"custom",
"dropAttachments",
"exportDir",
"exportFileData", "exportFileData",
"exportNotes", "exportNotes",
"exportPath",
"keepUpdated", "keepUpdated",
"markdown", "markdown",
"quickCopyMode", "quickCopyMode",
"useJournalAbbreviation", "useJournalAbbreviation",
"worker" "worker",
// pseudo options
"custom",
"exportDir",
"exportPath"
]; ];
var headers = [ var headers = [
{ {
@@ -274,7 +273,6 @@ var { detectImport, doExport, doImport } = (() => {
asciiBibLaTeX: false, asciiBibLaTeX: false,
asciiBibTeX: true, asciiBibTeX: true,
autoAbbrev: false, autoAbbrev: false,
autoAbbrevStyle: "",
autoExport: "immediate", autoExport: "immediate",
autoExportDelay: 5, autoExportDelay: 5,
autoExportIdleWait: 10, autoExportIdleWait: 10,
@@ -288,17 +286,19 @@ var { detectImport, doExport, doImport } = (() => {
biblatexExtendedDateFormat: true, biblatexExtendedDateFormat: true,
biblatexExtendedNameFormat: true, biblatexExtendedNameFormat: true,
biblatexExtractEprint: true, biblatexExtractEprint: true,
biblatexUsePrefix: true,
bibtexEditionOrdinal: false, bibtexEditionOrdinal: false,
bibtexParticleNoOp: false, bibtexParticleNoOp: false,
bibtexURL: "off", bibtexURL: "off",
cache: true, cache: true,
cacheDelete: false, cacheDelete: false,
cacheRetain: false,
charmap: "", charmap: "",
chinese: false,
chineseSplitName: true,
citeCommand: "cite", citeCommand: "cite",
citekeyCaseInsensitive: true, citekeyCaseInsensitive: true,
citekeyFold: true, citekeyFold: true,
citekeyFormat: "auth.lower + shorttitle(3,3) + year", citekeyFormat: " auth.lower + shorttitle(3,3) + year",
citekeyFormatEditing: "", citekeyFormatEditing: "",
citekeySearch: true, citekeySearch: true,
citekeyUnsafeChars: `\\"#%'(),={}~`, citekeyUnsafeChars: `\\"#%'(),={}~`,
@@ -321,15 +321,15 @@ var { detectImport, doExport, doImport } = (() => {
importJabRefAbbreviations: true, importJabRefAbbreviations: true,
importJabRefStrings: true, importJabRefStrings: true,
importNoteToExtra: "", importNoteToExtra: "",
importPlaceEvent: "inproceedings,conference,presentation,talk",
importSentenceCase: "on+guess", importSentenceCase: "on+guess",
importSentenceCaseQuoted: true, importSentenceCaseQuoted: true,
importUnknownTexCommand: "ignore", importUnknownTexCommand: "ignore",
itemObserverDelay: 5, itemObserverDelay: 5,
jabrefFormat: 0, jabrefFormat: 0,
jieba: false, japanese: false,
keyConflictPolicy: "keep", keyConflictPolicy: "keep",
keyScope: "library", keyScope: "library",
kuroshiro: false,
language: "langid", language: "langid",
logEvents: true, logEvents: true,
mapMath: "", mapMath: "",
@@ -366,9 +366,10 @@ var { detectImport, doExport, doImport } = (() => {
// translators/lib/collect.ts // translators/lib/collect.ts
var Items = class { var Items = class {
items = [];
map = {};
current;
constructor() { constructor() {
this.items = [];
this.map = {};
let item; let item;
while (item = Zotero.nextItem()) { while (item = Zotero.nextItem()) {
this.items.push(this.map[item.itemID] = this.map[item.itemKey] = item); this.items.push(this.map[item.itemID] = this.map[item.itemKey] = item);
@@ -421,12 +422,12 @@ var { detectImport, doExport, doImport } = (() => {
var Collections = class { var Collections = class {
constructor(items) { constructor(items) {
this.items = items; this.items = items;
this.byKey = {};
let collection; let collection;
while (collection = Zotero.nextCollection()) { while (collection = Zotero.nextCollection()) {
this.registerCollection(collection, ""); this.registerCollection(collection, "");
} }
} }
byKey = {};
erase() { erase() {
this.byKey = {}; this.byKey = {};
} }
@@ -479,8 +480,6 @@ var { detectImport, doExport, doImport } = (() => {
var Collected = class { var Collected = class {
constructor(translator, mode) { constructor(translator, mode) {
this.translator = translator; this.translator = translator;
this.input = "";
this.displayOptions = {};
switch (mode) { switch (mode) {
case "export": case "export":
this.items = new Items(); this.items = new Items();
@@ -494,13 +493,20 @@ var { detectImport, doExport, doImport } = (() => {
break; break;
} }
this.preferences = Object.entries(defaults).reduce((acc, [pref, dflt]) => { this.preferences = Object.entries(defaults).reduce((acc, [pref, dflt]) => {
var _a; acc[pref] = Zotero.getHiddenPref(`better-bibtex.${pref}`) ?? dflt;
acc[pref] = (_a = Zotero.getHiddenPref(`better-bibtex.${pref}`)) != null ? _a : dflt;
return acc; return acc;
}, {}); }, {});
this.preferences.testing = Zotero.getHiddenPref("better-bibtex.testing"); this.preferences.testing = Zotero.getHiddenPref("better-bibtex.testing");
this.platform = Zotero.getHiddenPref("better-bibtex.platform"); this.platform = Zotero.getHiddenPref("better-bibtex.platform");
} }
input = "";
items;
collections;
preferences;
displayOptions = {};
platform;
Item;
Collection;
item(type) { item(type) {
return new Zotero.Item(type); return new Zotero.Item(type);
} }
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.