diff --git a/CHANGES.md b/CHANGES.md index 2098220..a8e3186 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,8 @@ # Änderungen +## 0.2.10 +- Rapido-Titel korrekt anzeigen + ## 0.2.9 - Mehrere Bestellcode-Tags korrekt im Feld Band speichern diff --git a/README.md b/README.md index 9be0218..c58d9bb 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,6 @@ Das Addon befindet sich in einem frühen Entwicklungsstadium. Bisher sind nur di ## License -Copyright (C) 2019--2023 Denis Maier +Copyright (C) 2019--2024 Denis Maier Distributed under the GPLv3 License. \ No newline at end of file diff --git a/chrome/content/scripts/zoteroswisscoveryubbernlocations.js b/chrome/content/scripts/zoteroswisscoveryubbernlocations.js index d0e53cf..1db979a 100644 --- a/chrome/content/scripts/zoteroswisscoveryubbernlocations.js +++ b/chrome/content/scripts/zoteroswisscoveryubbernlocations.js @@ -290,7 +290,8 @@ Zotero.swisscoveryubbernlocations.processXML = async function (item,xml) { for (const holding of holdings) { var holdingLibraryCode, holdingLibrary, - holdingLibraryLocation, + holdingLibraryViaRapido, + holdingLibraryLocation, holdingFormatted, holdingItemPolicy, holdingHoldingsID, // subfield 8 @@ -308,8 +309,11 @@ Zotero.swisscoveryubbernlocations.processXML = async function (item,xml) { holdingLibrary = holdingLibraryCode; } } + if (holding.querySelector("subfield[code='j']")) + holdingLibraryViaRapido = holding.querySelector("subfield[code='j']").textContent == "RS_BORROW"; if (holding.querySelector("subfield[code='c']")) holdingLibraryLocation = holding.querySelector("subfield[code='c']").textContent; + if (holdingLibraryLocation.startsWith('Borrowing Location')) holdingLibraryLocation += " (via Rapido)"; if (holding.querySelector("subfield[code='0']")) holdingBibRecordID = holding.querySelector("subfield[code='0']").textContent; if (holding.querySelector("subfield[code='8']")) @@ -326,9 +330,9 @@ Zotero.swisscoveryubbernlocations.processXML = async function (item,xml) { // In UB Bern? // Irgendwo in UB Bern oder Bern Online - if (holdingLibrary.startsWith("Bern UB") || (holdingLibrary == "B405")) isInUBBe = true; + if ((holdingLibrary.startsWith("Bern UB") && !(holdingLibraryViaRapido)) || (holdingLibrary == "B405")) isInUBBe = true; // Kurierbibliothek - if (kurierbibliothekenUBBe.includes(holdingLibraryCode)) isinUBBeKurierbib = true; + if (kurierbibliothekenUBBe.includes(holdingLibraryCode) && !(holdingLibraryViaRapido)) isinUBBeKurierbib = true; }} else { printHoldingsFormatted += "\nKeine Printbestände vorhanden"; @@ -374,7 +378,7 @@ Zotero.swisscoveryubbernlocations.processXML2 = async function (xml) { for (const holding of holdings) { var holdingLibraryCode, holdingLibrary, - holdingLibraryLocation, + holdingLibraryLocation, holdingFormatted, holdingItemPolicy, holdingHoldingsID, // subfield 8 diff --git a/makefile b/makefile index 1ab37a9..929eca2 100644 --- a/makefile +++ b/makefile @@ -1,6 +1,6 @@ # Makefile -VERSION = 0.2.9 +VERSION = 0.2.10 build: 7z a -tzip -r zotero-swisscovery-ubbern-locations-$(VERSION).xpi chrome/* defaults/* chrome.manifest install.rdf options.xul \ No newline at end of file diff --git a/update.rdf b/update.rdf index b2a4ba6..bfe7b33 100644 --- a/update.rdf +++ b/update.rdf @@ -5,13 +5,13 @@ - 0.2.9 + 0.2.10 zotero@chnm.gmu.edu 5.0 6.* - https://github.com/ub-unibe-ch/zotero-swissbib-bb-locations/releases/download/v0.2.9/zotero-swisscovery-ubbern-locations-0.2.9.xpi + https://github.com/ub-unibe-ch/zotero-swissbib-bb-locations/releases/download/v0.2.9/zotero-swisscovery-ubbern-locations-0.2.10.xpi @@ -19,7 +19,7 @@ juris-m@juris-m.github.io 5.0 6.* - https://github.com/ub-unibe-ch/zotero-swissbib-bb-locations/releases/download/v0.2.9/zotero-swisscovery-ubbern-locations-0.2.9.xpi + https://github.com/ub-unibe-ch/zotero-swissbib-bb-locations/releases/download/v0.2.9/zotero-swisscovery-ubbern-locations-0.2.10.xpi