From bc5b6852008dc19f6957e62889753e41cbf2e955 Mon Sep 17 00:00:00 2001
From: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Date: Wed, 30 Aug 2023 11:38:32 -0400
Subject: [PATCH] Bug 34658: Update MARC21 default framework to Update 33 (Nov.
 2021)

iThis patch updates the default MARC21 framework to reflect the changes brought by Update 33 (November 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/up33bibliographic/bdapndxg.html

- There should be a new subfield in field 340
  - l Binding (R)

- There should be a new subfield in field 344
  - j Original capture and storage technique (R)

- There should be two new subfields in field 490
  - y Incorrect ISSN (R)
  - z Canceled ISSN (R)
  **Note that subfield 7 was added in a later update and is therefore not included in this patch

Signed-off-by: David Nind <david@davidnind.com>
---
 .../mandatory/marc21_framework_DEFAULT.yml    | 74 ++++++++++++++++++-
 1 file changed, 73 insertions(+), 1 deletion(-)

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 0b9dbe57b7..9540fe39a9 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. 32 (June 2021)
+#           Revised to Update No. 33 (November 2021)
 # *************************************************************
 
 description:
@@ -18500,6 +18500,24 @@ tables:
           link: ""
           defaultvalue:
 
+        - tagfield: "340"
+          tagsubfield: "l"
+          liblibrarian: "Binding"
+          libopac: "Binding"
+          repeatable: 1
+          mandatory: 0
+          kohafield: ""
+          tab: 3
+          authorised_value: ""
+          authtypecode: ""
+          value_builder: ""
+          isurl:
+          hidden: -6
+          frameworkcode: ""
+          seealso: ""
+          link: ""
+          defaultvalue:
+
         - tagfield: "340"
           tagsubfield: "m"
           liblibrarian: "Book format"
@@ -19670,6 +19688,24 @@ tables:
           link: ""
           defaultvalue:
 
+        - tagfield: "344"
+          tagsubfield: "j"
+          liblibrarian: "Original capture and storage technique"
+          libopac: "Original capture and storage technique"
+          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"
@@ -25286,6 +25322,42 @@ tables:
           link: ""
           defaultvalue:
 
+        - tagfield: "490"
+          tagsubfield: "y"
+          liblibrarian: "Incorrect ISSN"
+          libopac: "Incorrect ISSN"
+          repeatable: 1
+          mandatory: 0
+          kohafield: ""
+          tab: 4
+          authorised_value: ""
+          authtypecode: ""
+          value_builder: ""
+          isurl:
+          hidden: -1
+          frameworkcode: ""
+          seealso: ""
+          link: ""
+          defaultvalue:
+
+        - tagfield: "490"
+          tagsubfield: "z"
+          liblibrarian: "Canceled ISSN"
+          libopac: "Canceled ISSN"
+          repeatable: 1
+          mandatory: 0
+          kohafield: ""
+          tab: 4
+          authorised_value: ""
+          authtypecode: ""
+          value_builder: ""
+          isurl:
+          hidden: -1
+          frameworkcode: ""
+          seealso: ""
+          link: ""
+          defaultvalue:
+
         - tagfield: "500"
           tagsubfield: "3"
           liblibrarian: "Materials specified"
-- 
2.30.2