From daa4501bbe61b7d8457fd7de23d9b5438c3223a3 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Thu, 21 Nov 2024 13:54:16 -0500 Subject: [PATCH] AustLII: Don't add Code to case items https://github.com/zotero/translators/pull/2882#issuecomment-2488572263 --- AustLII and NZLII.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AustLII and NZLII.js b/AustLII and NZLII.js index a0cdf8f36da..8973feb3a9a 100644 --- a/AustLII and NZLII.js +++ b/AustLII and NZLII.js @@ -9,7 +9,7 @@ "inRepository": true, "translatorType": 4, "browserSupport": "gcsibv", - "lastUpdated": "2024-11-20 16:01:22" + "lastUpdated": "2024-11-21 18:54:11" } /* @@ -156,7 +156,7 @@ function scrape(doc, url) { var newItem = new Zotero.Item(type); var fullJurisdiction = text(doc, 'li.ribbon-jurisdiction > a > span'); var jurisdiction = jurisdictionAbbrev[fullJurisdiction] || fullJurisdiction; - if (jurisdiction) { + if (jurisdiction && ZU.fieldIsValidForType('code', type)) { newItem.code = jurisdiction; } var citation = text(doc, 'li.ribbon-citation>a>span');