Skip to content

Commit

Permalink
AustLII: Don't add Code to case items
Browse files Browse the repository at this point in the history
  • Loading branch information
AbeJellinek committed Nov 21, 2024
1 parent 60cf886 commit daa4501
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AustLII and NZLII.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2024-11-20 16:01:22"
"lastUpdated": "2024-11-21 18:54:11"
}

/*
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit daa4501

Please sign in to comment.