Bug 8064: Little fix for 003, 005, 008 in MARC21
authorStefano Bargioni <bargioni@pusc.it>
Tue, 11 Mar 2014 09:22:12 +0000 (10:22 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 9 Nov 2015 18:08:57 +0000 (15:08 -0300)
I found a little bug in the patch. Subfield '@' of tags 003, 005, 008 in
MARC21 were not correctly handled by function check_mandatory() in
merge.tt. I fixed the problem. In my opinion, the patch can be signed
off.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/merge.tt

index 8d1a4d2..9ec45c1 100644 (file)
@@ -34,7 +34,8 @@ div#result { margin-top: 1em; }
             }
             for (subfieldcode in tagslib[tag]) {
                 if (subfieldcode == 'lib' || subfieldcode == 'mandatory'
-                || subfieldcode == 'repeatable' || subfieldcode == 'tab') {
+                || subfieldcode == 'repeatable' || subfieldcode == 'tab'
+                || subfieldcode == '@') {
                     continue;
                 }
                 if (tagslib[tag][subfieldcode].mandatory == 1 && tagslib[tag][subfieldcode].tab >= 0) {