[Koha-bugs] [Bug 23033] New: C4::Items::AddItemBatchFromMarc does not queue bib record for indexing

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jun 3 16:31:18 CEST 2019


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

            Bug ID: 23033
           Summary: C4::Items::AddItemBatchFromMarc does not queue bib
                    record for indexing
 Change sponsored?: ---
           Product: Koha
           Version: 18.05
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P5 - low
         Component: MARC Bibliographic record staging/import
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: paul at flo.org
        QA Contact: testopia at bugs.koha-community.org
  Target Milestone: ---

Callers of C4::Items::AddItemBatchFromMarc must call ModZebra (directly or
indirectly) afterwards, which strikes me as wrong.

AddItemBatchFromMarc used to call C4::Biblio::ModBiblioMarc, which calls
C4::Items::ModZebra[*] but the call to ModBiblioMarc was commented out in
commit 3584c442 (2010-09-03 12:16:52 +0200, see bug #5579) and the comment was
never removed.

The only code in Koha 18.11 that calls AddItemBatchFromMarc is in
migration_tools/bulkmarcimport.pl, which dutifully calls MobBiblioMarc once
after each call to AddItemBatchFromMarc -- even(!) if AddItemBatchFromMarc
fails, which seems weird but I don't fully understand the code.  We could add a
call to ModZebra in AddItemBatchFromMarc but I assume it would be better to
reinstate the call to ModBiblioMarc.

I'll attach a patch shortly.

[*] C4::Items gets ModZebra from C4::Biblio, which implements and exports it,
so my will also change this to a call to C4::Biblio::ModZebra.

-- 
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