[Koha-bugs] [Bug 19562] Inventory: How can we skip convolutes marked as problematic with no_barcode?

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Nov 8 16:19:45 CET 2017


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

--- Comment #2 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Created attachment 69030
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=69030&action=edit
Bug 19562: Do not mark convolute items without barcode as problematic

Convolute items are bound together (belong to different biblio records)
and only one item has a barcode. All items are marked with a phrase like
Convolute (see regex below) in itemnotes.

This patch skips the convolute items without barcode and does not mark
them as problematic during inventory when the item notes contain the phrase.
The regex used is:
    $item->{itemnotes} =~ /convoluu?t/i;

This regex will cover at least the following languages:
Danish, Dutch, English, Finnish, French, Italian, Norwegian,
Portuguese, Spanish, Swedish and probably other languages too. And can
be easily extended if needed.

Note: Since the item hash does not contain itemnotes, we need to call
Koha::Items->find. We will only do so when the item does not have a
barcode.

Test plan:
[1] Update an item so that it has no barcode, callnumber is X and item
    notes contain Convolute.
[2] Upload a barcode file (contents may even be empty), filter on
    callnumber X. Compare should not report the updated convolute.
[3] Remove the Convolute note. Repeat step 2. Inventory should report
    the item now.

Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>

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