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

--- Comment #1 from Fridolin SOMERS <[email protected]> ---
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to