[Koha-bugs] [Bug 9171] New: Vendor sent us a file with holdings in 952 which has repeated subfields and no home or holding branch

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 29 19:48:26 CET 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9171

            Bug ID: 9171
           Summary: Vendor sent us a file with holdings in 952 which has
                    repeated subfields and no home or holding branch
    Classification: Unclassified
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: MARC Bibliographic record staging/import
          Assignee: gmcharlt at gmail.com
          Reporter: mdhafen at tech.washk12.org

Created attachment 13785
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=13785&action=edit
usmarc file to demonstrate the bug

Staging a file for import where the item information is in the 952 tag, but
lacks home/holding branch information and may have repeated subfields, results
in items with no branchcode set and near empty items for the repeated subfields

To test:
stage and import the attached usmarc file and note that some items, like in the
first record, are missing the homebranch and holdingbranch information, and
because of the repeated 'z' subfield another item record is created just for
the repeated field.
Apply patch and stage and import the file again to see that these items are
imported correctly.

I had to deal with a file from a vendor which had the holdings information in
the 952 tag.  This was for new books, so there was obviously no itemnumber. 
There was also no home or holding branch set, so the items got a little lost. 
To further complicate matter the 'z' subfield was repeated in a couple fields,
and MARC::Record seemed to think those repeated subfields should be in a field
by themselves.  So I have a patch which adds code to watch for this missing
home/holding branch subfields, and catches repeated subfields that end up in
seperate fields.

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


More information about the Koha-bugs mailing list