Commits

Frank Bennett  committed 95f2244

Don't tamper with title-short on legal types

  • Participants
  • Parent commits 9a40eb2

Comments (0)

Files changed (1)

File src/build.js

         Item["title-short"] = Item.shortTitle;
     }
     var isLegalType = ["legal_case","legislation","gazette","regulation"].indexOf(Item.type) > -1;
-    if (isLegalType) {
-        if (!Item["title-short"]) {
-            Item["title-short"] = Item.title;
-        }
-    } else if (Item.title && this.sys.getAbbreviation) {
+    if (!isLegalType && Item.title && this.sys.getAbbreviation) {
         var jurisdiction = this.transform.loadAbbreviation(Item.jurisdiction, "title", Item.title);
         if (this.transform.abbrevs[jurisdiction].title) {
             if (this.transform.abbrevs[jurisdiction].title[Item.title]) {