[Koha-bugs] [Bug 23380] GuessAuthTypeCode should check authority type exists

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jul 26 13:21:56 CEST 2019


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

--- Comment #1 from Fridolin SOMERS <fridolin.somers at biblibre.com> ---
Created attachment 91797
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=91797&action=edit
Bug 23380: GuessAuthTypeCode should check authority type exists

The method GuessAuthTypeCode is used when importing from batch or z3950/SRU to
find the local authority type depending on MARC flavour and authority record
fields.
This method should check that found type is configured.
Otherwise it can generate software errors when type code is used to fetch
Koha::Authority::Type.

Test plan :
1) Delete an authority type, ie NP
2) Connect to a z3950/SRU authority server
3) Look for authorities of this type
4) Import an authority
5) Without patch you get error : Can't call method "auth_tag_to_report" on an
undefined value at /home/koha/src/C4/AuthoritiesMarc.pm line 757.
6) With patch you see record edition and in logs "Authority type NP not
configured"

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


More information about the Koha-bugs mailing list