[Koha-bugs] [Bug 20522] Fields with only one $9 subfield are removed

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Apr 5 09:56:00 CEST 2018


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

--- Comment #1 from Frédéric Demians <frederic at tamil.fr> ---
Created attachment 73676
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=73676&action=edit
Bug 20522: Fields with only one $9 subfield are removed

There is a sort of cleaning functionnality in Koha when saving a biblio
record.  If a field contains only a $9 subfield, the whole field is
removed. There is a logic there since $9 is generally used in Koha for
storing authority record ID.  However there may exist fields perfectly
valid containing only a $9 subfield.  This is a case in Unimarc 010
field.

To test in Unimarc:

1. Add a $9 sufield to 010. You can name it "ISBN d'une livraison de
   publication en série"

2. Create a new biblio record. Fill 010 $a and $9 subfields. Save the
   record.

   => Everything is fine: $a et $9 are properly stored.

3. Modify the previous record, and remove $a subield. Save the
   record.

   => 010 field is removed

4. Apply the patch. Repeat 2-3 steps. Observe that a 010 field
   containing only a $9 subfield can be saved properly.

To test in MARC21: Replace 010 filed by any other field...

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


More information about the Koha-bugs mailing list