From 5d422e76a9bc8ce52b503caf5ca33446f4a94cdd Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 6 Feb 2022 06:45:38 -0500 Subject: [PATCH] Library of Congress ISBN: Temporarily disable in Zotero Connector lx2.loc.gov:210 is currently down, and due to a bug in the translation framework, that's causing all ISBN-based saves in the Zotero Connector to hang. For now, skip LoC until the service is back up. https://forums.zotero.org/discussion/94327/zot-connector-issues --- Library of Congress ISBN.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Library of Congress ISBN.js b/Library of Congress ISBN.js index 6a420abfd62..2f1a4c6260b 100644 --- a/Library of Congress ISBN.js +++ b/Library of Congress ISBN.js @@ -9,7 +9,7 @@ "inRepository": true, "translatorType": 8, "browserSupport": "gcsibv", - "lastUpdated": "2021-07-30 21:23:00" + "lastUpdated": "2022-02-06 11:45:08" } @@ -23,6 +23,12 @@ function detectSearch(item) { function doSearch(item) { + // Temporarily disable in Zotero Connector to prevent hang + if (typeof navigator != 'undefined') { + Zotero.debug("lx2.loc.gov is unavailable -- skipping"); + return; + } + //Sends an SRU formatted as CQL to the library of Congress asking for marcXML back //http://www.loc.gov/standards/sru/