From 9f8e02e3c81b88ec5d52933a002ee504c8cf0b9a Mon Sep 17 00:00:00 2001 From: Mathieu Saby Date: Sat, 7 Dec 2024 18:17:48 +0000 Subject: [PATCH] Bug 32722: Make several subfields and a field non mandatory in default UNIMARC biblio framework 801 should not be mandatory except in data exchange context (IFLA Manual) In UNIMARC several subfields are mandatory only if the field is used. This possibility is not available in MAR21, and Koha is currently not able to manage this information in a useful way : it blocks the validation of a record if the mandatory subfield is void, regardless of the mandatory status of the field. In consequence those subfields must be declared non mandatory in default framework. Test plan: 1/ Open a UNIMARC Koha without patch. Try to create a record with minimal information : 200$a and 100$a. A lot a alerts are displayed, preventing Koha to add the record 2/ Apply the patch 3/ Try to create a record with minimal information : 200$a and a 100$a. There should only be 2 alerts, regarding 099$t and 942$c field. --- .../mandatory/unimarc_framework_DEFAULT.yml | 116 +++++++++--------- 1 file changed, 58 insertions(+), 58 deletions(-) diff --git a/installer/data/mysql/en/marcflavour/unimarc/mandatory/unimarc_framework_DEFAULT.yml b/installer/data/mysql/en/marcflavour/unimarc/mandatory/unimarc_framework_DEFAULT.yml index 854b687d72..afc80b8425 100644 --- a/installer/data/mysql/en/marcflavour/unimarc/mandatory/unimarc_framework_DEFAULT.yml +++ b/installer/data/mysql/en/marcflavour/unimarc/mandatory/unimarc_framework_DEFAULT.yml @@ -2948,7 +2948,7 @@ tables: liblibrarian: "Originating Source" libopac: "Originating Source" repeatable: 1 - mandatory: 1 + mandatory: 0 authorised_value: frameworkcode: "" @@ -3783,7 +3783,7 @@ tables: liblibrarian: "Country Code" libopac: "Country Code" repeatable: 0 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 0 authorised_value: COUNTRY @@ -3837,7 +3837,7 @@ tables: liblibrarian: "Country Code" libopac: "Country Code" repeatable: 0 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 0 authorised_value: COUNTRY @@ -4035,7 +4035,7 @@ tables: liblibrarian: "Number of work" libopac: "Number of work" repeatable: 0 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 0 authorised_value: @@ -4053,7 +4053,7 @@ tables: liblibrarian: "Number of movement" libopac: "Number of movement" repeatable: 0 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 0 authorised_value: @@ -4071,7 +4071,7 @@ tables: liblibrarian: "Number of incipit" libopac: "Number of incipit" repeatable: 0 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 0 authorised_value: @@ -4845,7 +4845,7 @@ tables: liblibrarian: "Country of publication" libopac: "Country of publication" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 1 authorised_value: COUNTRY @@ -4899,7 +4899,7 @@ tables: liblibrarian: "Monograph Coded Data" libopac: "Monograph Coded Data" repeatable: 0 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 1 authorised_value: @@ -4917,7 +4917,7 @@ tables: liblibrarian: "Form of resource: Coded Data: Medium Designator" libopac: "Form of resource: Coded Data: Medium Designator" repeatable: 0 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 1 authorised_value: @@ -4953,7 +4953,7 @@ tables: liblibrarian: "Coded Data - General" libopac: "Coded Data - General" repeatable: 0 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 1 authorised_value: @@ -5007,7 +5007,7 @@ tables: liblibrarian: "Coded Data for Three-Dimensional Artefacts and Realia" libopac: "Coded Data for Three-Dimensional Artefacts and Realia" repeatable: 0 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 1 authorised_value: @@ -5025,7 +5025,7 @@ tables: liblibrarian: "Cartographic Material Coded Data (General)" libopac: "Cartographic Material Coded Data (General)" repeatable: 0 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 1 authorised_value: @@ -5043,7 +5043,7 @@ tables: liblibrarian: "Cartographic Material Coded Data: Physical attributes (General)" libopac: "Cartographic Material Coded Data: Physical attributes (General)" repeatable: 0 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 1 authorised_value: @@ -5079,7 +5079,7 @@ tables: liblibrarian: "Time period, 9999 B.C. to present" libopac: "Time period, 9999 B.C. to present" repeatable: 0 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 1 authorised_value: @@ -5097,7 +5097,7 @@ tables: liblibrarian: "Type of Scale" libopac: "Type of Scale" repeatable: 0 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 1 authorised_value: @@ -5547,7 +5547,7 @@ tables: liblibrarian: "Sound Recording Coded Data (General)" libopac: "Sound Recording Coded Data (General)" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 1 authorised_value: @@ -5583,7 +5583,7 @@ tables: liblibrarian: "Duration" libopac: "Duration" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 1 authorised_value: @@ -5637,7 +5637,7 @@ tables: liblibrarian: "Microform Coded Data Physical Attributes" libopac: "Microform Coded Data Physical Attributes" repeatable: 0 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 1 authorised_value: @@ -11325,7 +11325,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -11793,7 +11793,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -12261,7 +12261,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -12729,7 +12729,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -13197,7 +13197,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -13665,7 +13665,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -14133,7 +14133,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -14601,7 +14601,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -15069,7 +15069,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -15537,7 +15537,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -16005,7 +16005,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -16473,7 +16473,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -16941,7 +16941,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -17409,7 +17409,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -17877,7 +17877,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -18345,7 +18345,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -18813,7 +18813,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -19281,7 +19281,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -19749,7 +19749,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -20217,7 +20217,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -20685,7 +20685,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -21153,7 +21153,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -21621,7 +21621,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -22089,7 +22089,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -22557,7 +22557,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -23025,7 +23025,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -23493,7 +23493,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -23961,7 +23961,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -24429,7 +24429,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -24897,7 +24897,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -25365,7 +25365,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -25833,7 +25833,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -26301,7 +26301,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -26769,7 +26769,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -27237,7 +27237,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -27705,7 +27705,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -28173,7 +28173,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -28641,7 +28641,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -29109,7 +29109,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: @@ -29577,7 +29577,7 @@ tables: liblibrarian: "Title" libopac: "Title" repeatable: 1 - mandatory: 1 + mandatory: 0 kohafield: "" tab: 4 authorised_value: -- 2.39.5