[Koha-bugs] [Bug 17915] warning in Stage MARC records for import when matching rule with offset

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jan 17 09:18:50 CET 2017


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

--- Comment #1 from Fridolin SOMERS <fridolin.somers at biblibre.com> ---
Created attachment 59069
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59069&action=edit
Bug 17915 - warning in Stage MARC records for import when matching rule with
offset

When using Stage MARC records for import with a matching rule where an offset
is defined, the input string may be empty or shorter than the offset.
This generated a warning :
stage-marc-import.pl: substr outside of string at /home/koha/src/C4/Matcher.pm
line 822.

Test plan :
- define a matching rule on ISBN with length 0 and offset 999 (too big for any
value)
- import some MARC records with this matching rule
- check the perl warns
=> Without patch you see warns : "substr outside of string at
/home/koha/src/C4/Matcher.pm"
=> With patch no such warn
- edit the matching rule to set offset 0
- import some MARC records, with matching ISBN, with this matching rule
=> Import must match existing records with same ISBN

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


More information about the Koha-bugs mailing list