From 369834f5ece9755a5a43d29f31afa70e2a4909c7 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Mon, 11 Mar 2013 13:40:46 -0400 Subject: [PATCH] Reify required authority fixed field names Adam (and Art, by way of Adam's patch) added a goodly pile of fixed field definitions that were lacking previously. The change in this commit simply changes the label of two (008/11 and 008/15) to those in use by other parts of the code. In particular, internally, we call the field holding a thesaurus code value "Subj" and use that name during ingest of authority records. Therefore, that should not change. This required a subsequent change to the label of another, to SubjUse. I've included a duplication in the backend-only (probably deprecated) version of this mapping to allow the front-end labels to work. Signed-off-by: Mike Rylander --- Open-ILS/src/javascript/backend/catalog/fixed_fields.js | 10 ++++++++++ Open-ILS/web/js/dojo/MARC/FixedFields.js | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/javascript/backend/catalog/fixed_fields.js b/Open-ILS/src/javascript/backend/catalog/fixed_fields.js index 6a67b65b63..90856bb746 100644 --- a/Open-ILS/src/javascript/backend/catalog/fixed_fields.js +++ b/Open-ILS/src/javascript/backend/catalog/fixed_fields.js @@ -310,6 +310,11 @@ var ff_pos = { "AUT" : {"start" : 10, "len" : 1, "def" : ' ' } } }, + "Subj" : { + "_8" : { + "AUT" : {"start" : 11, "len" : 1, "def" : ' ' } + } + }, "SHSys" : { "_8" : { "AUT" : {"start" : 11, "len" : 1, "def" : ' ' } @@ -330,6 +335,11 @@ var ff_pos = { "AUT" : {"start" : 14, "len" : 1, "def" : ' ' } } }, + "SubjUse" : { + "_8" : { + "AUT" : {"start" : 15, "len" : 1, "def" : ' ' } + } + }, "HeadSubj" : { "_8" : { "AUT" : {"start" : 15, "len" : 1, "def" : ' ' } diff --git a/Open-ILS/web/js/dojo/MARC/FixedFields.js b/Open-ILS/web/js/dojo/MARC/FixedFields.js index a8d18e8285..0895177cfb 100644 --- a/Open-ILS/web/js/dojo/MARC/FixedFields.js +++ b/Open-ILS/web/js/dojo/MARC/FixedFields.js @@ -523,7 +523,7 @@ if(!dojo._hasResource["MARC.FixedFields"]) { "AUT" : {"start" : 10, "len" : 1, "def" : ' ' } } }, - "SHSys" : { + "Subj" : { "_8" : { "AUT" : {"start" : 11, "len" : 1, "def" : ' ' } } @@ -543,7 +543,7 @@ if(!dojo._hasResource["MARC.FixedFields"]) { "AUT" : {"start" : 14, "len" : 1, "def" : ' ' } } }, - "Subj" : { + "SubjUse" : { "_8" : { "AUT" : {"start" : 15, "len" : 1, "def" : ' ' } } -- 2.11.0