From c721d3c30f44dc1c1c756711df779374160f5bde Mon Sep 17 00:00:00 2001
From: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Date: Wed, 30 Aug 2023 15:13:34 -0400
Subject: [PATCH] Bug 34665: Update MARC21 default framework to Update 35 (Dec.
 2022)

This patch updates the default MARC21 framework to reflect the changes brought by Update 35 (December 2022).

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/up35bibliographic/bdapndxg.html

- There should be one new subfield in field 856
  - g Persistent identifier (R)
  - Subfield h should now be named Non-functioning Uniform Resource Identifier
  - Subfield q should now be repeatable

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
---
 .../mandatory/marc21_framework_DEFAULT.yml    | 24 ++++++++++++++++---
 1 file changed, 21 insertions(+), 3 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 3e3eb9d28e..cbaaa6a11c 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
@@ -60222,10 +60222,28 @@ tables:
           link: ""
           defaultvalue:
 
+        - tagfield: "856"
+          tagsubfield: "g"
+          liblibrarian: "Persistent identifier"
+          libopac: "Persistent identifier"
+          repeatable: 1
+          mandatory: 0
+          kohafield: ""
+          tab: 8
+          authorised_value: ""
+          authtypecode: ""
+          value_builder: ""
+          isurl: 0
+          hidden: -1
+          frameworkcode: ""
+          seealso: ""
+          link: ""
+          defaultvalue:
+
         - tagfield: "856"
           tagsubfield: "h"
-          liblibrarian: "Processor of request [OBSOLETE]"
-          libopac: "Processor of request [OBSOLETE]"
+          liblibrarian: "Non-functioning Uniform Resource Identifier"
+          libopac: "Non-functioning Uniform Resource Identifier"
           repeatable: 0
           mandatory: 0
           kohafield: ""
@@ -60388,7 +60406,7 @@ tables:
           tagsubfield: "q"
           liblibrarian: "Electronic format type"
           libopac: "Electronic format type"
-          repeatable: 0
+          repeatable: 1
           mandatory: 0
           kohafield: ""
           tab: 8
-- 
2.30.2