From 06e76bf2e4c12fcac9fc1daa019db5e3f5aca278 Mon Sep 17 00:00:00 2001
From: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Date: Tue, 29 Aug 2023 17:52:26 -0400
Subject: [PATCH] Bug 34649: Update MARC21 default framework to Update 32 (June
 2021)

This patch updates the default MARC21 framework to reflect the changes brought by Update 32 (June 2021).

To test:
1. Apply patch and restart
2. Go to Administration > MARC bibliographic framework
3. Click Actions next to the default framework and choose MARC structure
4. Check for the changes detailed in the update https://www.loc.gov/marc/up32bibliographic/bdapndxg.html

- There should be two new subfields in field 022
  - 0 Authority record control number or standard number (NR)
  - 1 Real World Object URI (R)

- There should be three new subfields in field 046
  - 3 Materials specified (NR)
  - x Nonpublic note (R) (this one should be hidden from the OPAC)
  - z Public note (R)
  **Note that subfield 7 was added in a later update and is therefore not included in this patch

- Subfield 082$2 should now be named Edition information

- Subfield 083$2 should now be named Edition information

- There should be a new field 334, named MODE OF ISSUANCE
  - This field should be repeatable
  - Subfields:
    - 0 Authority record control number or standard number (R)
    - 1 Real World Object URI (R)
    - 2 Source (NR)
    - 6 Linkage (NR)
    - 8 Field link and sequence number (R)
    - a Mode of issuance term (NR)
    - b Mode of issuance code (NR)

- There should be one new subfield in field 344
  - i Sound content (R)
  **Note that subfield j was added in a later update and is therefore not included in this patch

- Field 348 should now be named NOTATED MUSIC CHARACTERISTICS
  - There should be two new subfields
    - c Form of musical notation term (R)
    - d Form of musical notation code (R)
    **Note that subfield 7 was added in a later update and is therefore not included in this patch

- There should be a new field 353, named SUPPLEMENTARY CONTENT CHARACTERISTICS
  - This field should be repeatable
  - Subfields:
    - 0 Authority record control number or standard number (R)
    - 1 Real World Object URI (R)
    - 2 Source (NR)
    - 3 Materials specified (NR)
    - 6 Linkage (NR)
    - 8 Field link and sequence number (R)
    - a Supplementary content term (NR)
    - b Supplementary content code (NR)

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
---
 .../mandatory/marc21_framework_DEFAULT.yml    | 444 +++++++++++++++++-
 1 file changed, 437 insertions(+), 7 deletions(-)

diff --git a/installer/data/mysql/en/marcflavour/marc21/mandatory/marc21_framework_DEFAULT.yml b/installer/data/mysql/en/marcflavour/marc21/mandatory/marc21_framework_DEFAULT.yml
index ba23ba8f7e..06d1f23189 100644
--- a/installer/data/mysql/en/marcflavour/marc21/mandatory/marc21_framework_DEFAULT.yml
+++ b/installer/data/mysql/en/marcflavour/marc21/mandatory/marc21_framework_DEFAULT.yml
@@ -21,7 +21,7 @@
 # *************************************************************
 #     KOHA MARC 21 STANDARD DEFAULT BIBLIOGRAPHIC FRAMEWORK
 #
-#           Revised to Update No. 31 (December 2020)
+#           Revised to Update No. 32 (June 2021)
 # *************************************************************
 
 description:
@@ -1886,6 +1886,14 @@ tables:
           authorised_value:
           frameworkcode: ""
 
+        - tagfield: "334"
+          liblibrarian: "MODE OF ISSUANCE"
+          libopac: "MODE OF ISSUANCE"
+          repeatable: 1
+          mandatory: 0
+          authorised_value:
+          frameworkcode: ""
+
         - tagfield: "335"
           liblibrarian: "EXTENSION PLAN"
           libopac: "EXTENSION PLAN"
@@ -1983,8 +1991,8 @@ tables:
           frameworkcode: ""
 
         - tagfield: "348"
-          liblibrarian: "FORMAT OF NOTATED MUSIC"
-          libopac: "FORMAT OF NOTATED MUSIC"
+          liblibrarian: "NOTATED MUSIC CHARACTERISTICS"
+          libopac: "NOTATED MUSIC CHARACTERISTICS"
           repeatable: 1
           mandatory: 0
           authorised_value:
@@ -2014,6 +2022,14 @@ tables:
           authorised_value:
           frameworkcode: ""
 
+        - tagfield: "353"
+          liblibrarian: "SUPPLEMENTARY CONTENT CHARACTERISTICS"
+          libopac: "SUPPLEMENTARY CONTENT CHARACTERISTICS"
+          repeatable: 1
+          mandatory: 0
+          authorised_value:
+          frameworkcode: ""
+
         - tagfield: "355"
           liblibrarian: "SECURITY CLASSIFICATION CONTROL"
           libopac: "SECURITY CLASSIFICATION CONTROL"
@@ -4642,6 +4658,42 @@ tables:
           link: ""
           defaultvalue:
 
+        - tagfield: "022"
+          tagsubfield: "0"
+          liblibrarian: "Authority record control number or standard number"
+          libopac: "Authority record control number or standard number"
+          repeatable: 0
+          mandatory: 0
+          kohafield: ""
+          tab: 0
+          authorised_value: ""
+          authtypecode: ""
+          value_builder: ""
+          isurl: 0
+          hidden: -6
+          frameworkcode: ""
+          seealso: ""
+          link: ""
+          defaultvalue:
+
+        - tagfield: "022"
+          tagsubfield: "1"
+          liblibrarian: "Real World Object URI"
+          libopac: "Real World Object URI"
+          repeatable: 1
+          mandatory: 0
+          kohafield: ""
+          tab: 0
+          authorised_value: ""
+          authtypecode: ""
+          value_builder: ""
+          isurl: 0
+          hidden: -6
+          frameworkcode: ""
+          seealso: ""
+          link: ""
+          defaultvalue:
+
         - tagfield: "022"
           tagsubfield: "2"
           liblibrarian: "Source"
@@ -7882,6 +7934,24 @@ tables:
           link: ""
           defaultvalue:
 
+        - tagfield: "046"
+          tagsubfield: "3"
+          liblibrarian: "Materials specified"
+          libopac: "Materials specified"
+          repeatable: 0
+          mandatory: 0
+          kohafield: ""
+          tab: 0
+          authorised_value: ""
+          authtypecode: ""
+          value_builder: ""
+          isurl: 0
+          hidden: -6
+          frameworkcode: ""
+          seealso: ""
+          link: ""
+          defaultvalue:
+
         - tagfield: "046"
           tagsubfield: "6"
           liblibrarian: "Linkage"
@@ -8134,6 +8204,42 @@ tables:
           link: ""
           defaultvalue:
 
+        - tagfield: "046"
+          tagsubfield: "x"
+          liblibrarian: "Nonpublic note"
+          libopac: "Nonpublic note"
+          repeatable: 1
+          mandatory: 0
+          kohafield: ""
+          tab: 0
+          authorised_value: ""
+          authtypecode: ""
+          value_builder: ""
+          isurl: 0
+          hidden: 6
+          frameworkcode: ""
+          seealso: ""
+          link: ""
+          defaultvalue:
+
+        - tagfield: "046"
+          tagsubfield: "z"
+          liblibrarian: "Public note"
+          libopac: "Public note"
+          repeatable: 1
+          mandatory: 0
+          kohafield: ""
+          tab: 0
+          authorised_value: ""
+          authtypecode: ""
+          value_builder: ""
+          isurl: 0
+          hidden: -6
+          frameworkcode: ""
+          seealso: ""
+          link: ""
+          defaultvalue:
+
         - tagfield: "047"
           tagsubfield: "2"
           liblibrarian: "Source of code"
@@ -9702,8 +9808,8 @@ tables:
 
         - tagfield: "082"
           tagsubfield: "2"
-          liblibrarian: "Edition number"
-          libopac: "Edition number"
+          liblibrarian: "Edition information"
+          libopac: "Edition information"
           repeatable: 0
           mandatory: 0
           kohafield: ""
@@ -9828,8 +9934,8 @@ tables:
 
         - tagfield: "083"
           tagsubfield: "2"
-          liblibrarian: "Edition number"
-          libopac: "Edition number"
+          liblibrarian: "Edition information"
+          libopac: "Edition information"
           repeatable: 0
           mandatory: 0
           kohafield: ""
@@ -17386,6 +17492,132 @@ tables:
           link: ""
           defaultvalue:
 
+        - tagfield: "334"
+          tagsubfield: "0"
+          liblibrarian: "Authority record control number or standard number"
+          libopac: "Authority record control number or standard number"
+          repeatable: 1
+          mandatory: 0
+          kohafield: ""
+          tab: 3
+          authorised_value: ""
+          authtypecode: ""
+          value_builder: ""
+          isurl:
+          hidden: -6
+          frameworkcode: ""
+          seealso: ""
+          link: ""
+          defaultvalue:
+
+        - tagfield: "334"
+          tagsubfield: "1"
+          liblibrarian: "Real World Object URI"
+          libopac: "Real World Object URI"
+          repeatable: 1
+          mandatory: 0
+          kohafield: ""
+          tab: 3
+          authorised_value: ""
+          authtypecode: ""
+          value_builder: ""
+          isurl:
+          hidden: -6
+          frameworkcode: ""
+          seealso: ""
+          link: ""
+          defaultvalue:
+
+        - tagfield: "334"
+          tagsubfield: "2"
+          liblibrarian: "Source"
+          libopac: "Source"
+          repeatable: 0
+          mandatory: 0
+          kohafield: ""
+          tab: 3
+          authorised_value: ""
+          authtypecode: ""
+          value_builder: ""
+          isurl:
+          hidden: -6
+          frameworkcode: ""
+          seealso: ""
+          link: ""
+          defaultvalue:
+
+        - tagfield: "334"
+          tagsubfield: "6"
+          liblibrarian: "Linkage"
+          libopac: "Linkage"
+          repeatable: 0
+          mandatory: 0
+          kohafield: ""
+          tab: 3
+          authorised_value: ""
+          authtypecode: ""
+          value_builder: ""
+          isurl:
+          hidden: -6
+          frameworkcode: ""
+          seealso: ""
+          link: ""
+          defaultvalue:
+
+        - tagfield: "334"
+          tagsubfield: "8"
+          liblibrarian: "Field link and sequence number"
+          libopac: "Field link and sequence number"
+          repeatable: 1
+          mandatory: 0
+          kohafield: ""
+          tab: 3
+          authorised_value: ""
+          authtypecode: ""
+          value_builder: ""
+          isurl:
+          hidden: -6
+          frameworkcode: ""
+          seealso: ""
+          link: ""
+          defaultvalue:
+
+        - tagfield: "334"
+          tagsubfield: "a"
+          liblibrarian: "Mode of issuance term"
+          libopac: "Mode of issuance term"
+          repeatable: 0
+          mandatory: 0
+          kohafield: ""
+          tab: 3
+          authorised_value: ""
+          authtypecode: ""
+          value_builder: ""
+          isurl:
+          hidden: -6
+          frameworkcode: ""
+          seealso: ""
+          link: ""
+          defaultvalue:
+
+        - tagfield: "334"
+          tagsubfield: "b"
+          liblibrarian: "Mode of issuance code"
+          libopac: "Mode of issuance code"
+          repeatable: 0
+          mandatory: 0
+          kohafield: ""
+          tab: 3
+          authorised_value: ""
+          authtypecode: ""
+          value_builder: ""
+          isurl:
+          hidden: -6
+          frameworkcode: ""
+          seealso: ""
+          link: ""
+          defaultvalue:
+
         - tagfield: "335"
           tagsubfield: "0"
           liblibrarian: "Authority record control number or standard number"
@@ -19420,6 +19652,24 @@ tables:
           link: ""
           defaultvalue:
 
+        - tagfield: "344"
+          tagsubfield: "i"
+          liblibrarian: "Sound content"
+          libopac: "Sound content"
+          repeatable: 1
+          mandatory: 0
+          kohafield: ""
+          tab: 3
+          authorised_value: ""
+          authtypecode: ""
+          value_builder: ""
+          isurl:
+          hidden: -6
+          frameworkcode: ""
+          seealso: ""
+          link: ""
+          defaultvalue:
+
         - tagfield: "345"
           tagsubfield: "0"
           liblibrarian: "Authority record control number or standard number"
@@ -20104,6 +20354,42 @@ tables:
           link: ""
           defaultvalue:
 
+        - tagfield: "348"
+          tagsubfield: "c"
+          liblibrarian: "Form of musical notation term"
+          libopac: "Form of musical notation term"
+          repeatable: 1
+          mandatory: 0
+          kohafield: ""
+          tab: 3
+          authorised_value: ""
+          authtypecode: ""
+          value_builder: ""
+          isurl:
+          hidden: -6
+          frameworkcode: ""
+          seealso: ""
+          link: ""
+          defaultvalue:
+
+        - tagfield: "348"
+          tagsubfield: "b"
+          liblibrarian: "Form of musical notation code"
+          libopac: "Form of musical notation code"
+          repeatable: 1
+          mandatory: 0
+          kohafield: ""
+          tab: 3
+          authorised_value: ""
+          authtypecode: ""
+          value_builder: ""
+          isurl:
+          hidden: -6
+          frameworkcode: ""
+          seealso: ""
+          link: ""
+          defaultvalue:
+
         - tagfield: "350"
           tagsubfield: "6"
           liblibrarian: "Linkage"
@@ -20464,6 +20750,150 @@ tables:
           link: ""
           defaultvalue:
 
+        - tagfield: "353"
+          tagsubfield: "0"
+          liblibrarian: "Authority record control number or standard number"
+          libopac: "Authority record control number or standard number"
+          repeatable: 1
+          mandatory: 0
+          kohafield: ""
+          tab: 3
+          authorised_value: ""
+          authtypecode: ""
+          value_builder: ""
+          isurl:
+          hidden: -6
+          frameworkcode: ""
+          seealso: ""
+          link: ""
+          defaultvalue:
+
+        - tagfield: "353"
+          tagsubfield: "1"
+          liblibrarian: "Real World Object URI"
+          libopac: "Real World Object URI"
+          repeatable: 1
+          mandatory: 0
+          kohafield: ""
+          tab: 3
+          authorised_value: ""
+          authtypecode: ""
+          value_builder: ""
+          isurl:
+          hidden: -6
+          frameworkcode: ""
+          seealso: ""
+          link: ""
+          defaultvalue:
+
+        - tagfield: "353"
+          tagsubfield: "2"
+          liblibrarian: "Source"
+          libopac: "Source"
+          repeatable: 0
+          mandatory: 0
+          kohafield: ""
+          tab: 3
+          authorised_value: ""
+          authtypecode: ""
+          value_builder: ""
+          isurl:
+          hidden: -6
+          frameworkcode: ""
+          seealso: ""
+          link: ""
+          defaultvalue:
+
+        - tagfield: "353"
+          tagsubfield: "3"
+          liblibrarian: "Materials specified"
+          libopac: "Materials specified"
+          repeatable: 0
+          mandatory: 0
+          kohafield: ""
+          tab: 3
+          authorised_value: ""
+          authtypecode: ""
+          value_builder: ""
+          isurl:
+          hidden: -6
+          frameworkcode: ""
+          seealso: ""
+          link: ""
+          defaultvalue:
+
+        - tagfield: "353"
+          tagsubfield: "6"
+          liblibrarian: "Linkage"
+          libopac: "Linkage"
+          repeatable: 0
+          mandatory: 0
+          kohafield: ""
+          tab: 3
+          authorised_value: ""
+          authtypecode: ""
+          value_builder: ""
+          isurl:
+          hidden: -6
+          frameworkcode: ""
+          seealso: ""
+          link: ""
+          defaultvalue:
+
+        - tagfield: "353"
+          tagsubfield: "8"
+          liblibrarian: "Field link and sequence number"
+          libopac: "Field link and sequence number"
+          repeatable: 1
+          mandatory: 0
+          kohafield: ""
+          tab: 3
+          authorised_value: ""
+          authtypecode: ""
+          value_builder: ""
+          isurl:
+          hidden: -6
+          frameworkcode: ""
+          seealso: ""
+          link: ""
+          defaultvalue:
+
+        - tagfield: "353"
+          tagsubfield: "a"
+          liblibrarian: "Supplementary content term"
+          libopac: "Supplementary content term"
+          repeatable: 0
+          mandatory: 0
+          kohafield: ""
+          tab: 3
+          authorised_value: ""
+          authtypecode: ""
+          value_builder: ""
+          isurl:
+          hidden: -6
+          frameworkcode: ""
+          seealso: ""
+          link: ""
+          defaultvalue:
+
+        - tagfield: "353"
+          tagsubfield: "b"
+          liblibrarian: "Supplementary content code"
+          libopac: "Supplementary content code"
+          repeatable: 0
+          mandatory: 0
+          kohafield: ""
+          tab: 3
+          authorised_value: ""
+          authtypecode: ""
+          value_builder: ""
+          isurl:
+          hidden: -6
+          frameworkcode: ""
+          seealso: ""
+          link: ""
+          defaultvalue:
+
         - tagfield: "355"
           tagsubfield: "6"
           liblibrarian: "Linkage"
-- 
2.30.2