[Koha-bugs] [Bug 17608] New: Fix behaviour of bulkmarcimport.pl -insert

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 10 15:54:21 CET 2016


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

            Bug ID: 17608
           Summary: Fix behaviour of bulkmarcimport.pl -insert
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Command-line Utilities
          Assignee: gmcharlt at gmail.com
          Reporter: magnus at libriotech.no
        QA Contact: testopia at bugs.koha-community.org
                CC: robin at catalyst.net.nz

According to the POD in bulkmarcimport.pl:

    -insert
        if set, only insert when possible

This works as expected for bibliographic records, if -insert is specified and a
records already exists (based on the criteria specified by the -match option),
the record is skipped and no record is inserted. 

But I do find the behaviour related to items a bit surprising. Even if the
record is skipped and not inserted, any items attached to the record in the
file that is being imported is attached to the matching record. I would expect
items to be ignored if the record exists and is skipped. 

So the question is: is this behaviour a bug or a feature? 

Even if it is a bug, I guess we must assume that some libraries out there are
relying on the current behaviour of bulkmarcimport.pl, so that the best way to
get the behaviour I expect is to add another command line switch, to ignore
items for matching records. This way existing users will not get nasty
surprises and I will get the behaviour I expect. 

Opinions?

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


More information about the Koha-bugs mailing list