Update global schema to remove arXivID field

This commit is contained in:
Dan Stillman 2025-12-26 15:20:33 -05:00
parent 7ac22dbef2
commit f0ff173ad2
7 changed files with 1 additions and 14 deletions

View file

@ -1283,8 +1283,6 @@ Zotero.Utilities.Internal = {
_normalizeExtraKey: function (key) {
return key
.trim()
// Accept "arXiv" for "arXiv ID"
.replace(/^arxiv$/i, 'arXiv ID')
// Convert fooBar to foo-bar
.replace(/([a-z])([A-Z])/g, '$1-$2')
.toLowerCase()

@ -1 +1 @@
Subproject commit e14f250085848a6d5c176019ffd322cef6d6e332
Subproject commit 1b783c5ce4089bd12d43489b6e81402eb7ea9d92

View file

@ -958,7 +958,6 @@
"PMID": "PMID",
"abstractNote": "Abstract note",
"accessDate": "1997-06-13T23:59:58Z",
"arXivID": "Ar xiv ID",
"archive": "Archive",
"archiveLocation": "Archive location",
"callNumber": "Call number",

View file

@ -1072,7 +1072,6 @@
"PMID": "PMID",
"abstractNote": "Abstract note",
"accessDate": "1997-06-13T23:59:58Z",
"arXivID": "Ar xiv ID",
"archive": "Archive",
"archiveLocation": "Archive location",
"callNumber": "Call number",

View file

@ -1110,7 +1110,6 @@
"PMID": "PMID",
"abstractNote": "Abstract note",
"accessDate": "1997-06-13T23:59:58Z",
"arXivID": "Ar xiv ID",
"archive": "Archive",
"archiveLocation": "Archive location",
"attachments": [],

View file

@ -1636,7 +1636,6 @@
"PMID": "PMID",
"abstractNote": "Abstract note",
"accessDate": "1997-06-13 23:59:58",
"arXivID": "Ar xiv ID",
"archive": "Archive",
"archiveLocation": "Archive location",
"attachments": [],
@ -1711,7 +1710,6 @@
"PMID": "PMID",
"abstractNote": "Abstract note",
"accessDate": "1997-06-13 23:59:58",
"arXivID": "Ar xiv ID",
"archive": "Archive",
"archiveLocation": "Archive location",
"callNumber": "Call number",

View file

@ -337,12 +337,6 @@ describe("Zotero.Utilities.Internal", function () {
assert.equal(fields.size, 0);
assert.strictEqual(extra, str);
});
it("should accept 'arXiv' for arXiv IDs", function () {
var str = 'arXiv: 2405.00208';
var { fields, extra } = Zotero.Utilities.Internal.extractExtraFields(str);
assert.equal(fields.get('arXivID'), '2405.00208');
});
});
describe("#combineExtraFields", function () {