[Koha-bugs] [Bug 32950] New: marc modification template moving subfield can lose values for repeatable fields

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Feb 13 16:48:06 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32950

            Bug ID: 32950
           Summary: marc modification template moving subfield can lose
                    values for repeatable fields
 Change sponsored?: ---
           Product: Koha
           Version: 21.11
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P5 - low
         Component: Tools
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: bernard.scaife at ptfs-europe.com
        QA Contact: testopia at bugs.koha-community.org

Created attachment 146586
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=146586&action=edit
mrc with multiple 020 fields including 020$z

Moving one subfield to another fails for repeatable fields where the field to
be moved doesn't exist in the first instance

1. Make marcmodtemplate as follows
a. Move every 020 z field to field 020 a 
2. Stage marc exchange file (attached) with following in 020 field (note only
7th and 8th have 020z and these are the ones we wish to move to subfield a)

=020  \\$a9781003182870$q(ebk)
=020  \\$a1003182879
=020  \\$a9781000407204$q(electronic bk. : EPUB)
=020  \\$a1000407209$q(electronic bk. : EPUB)
=020  \\$a9781000407167$q(electronic bk. : PDF)
=020  \\$a1000407160$q(electronic bk. : PDF)
=020  \\$z9781032023175$q(hbk.)
=020  \\$z9780367760380$q(pbk.)
3. view staged record and observe fields 020 subfield a fields have all gone
and subfield z has not been moved, but its value removed:

020                     _a
_q(ebk)
020                     _a
020                     _a
_q(electronic bk. : EPUB)
020                     _a
_q(electronic bk. : EPUB)
020                     _a
_q(electronic bk. : PDF)
020                     _a
_q(electronic bk. : PDF)
020                     _q(hbk.)
_a
020                     _q(pbk.)
_a


Note, adding a conditional to marcmodtemplate "only do this if 020 z subfield
exists makes no difference.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list