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

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jan 26 20:25:23 CET 2023


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

Fridolin Somers <fridolin.somers at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #91797|0                           |1
        is obsolete|                            |

--- Comment #3 from Fridolin Somers <fridolin.somers at biblibre.com> ---
Created attachment 145703
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=145703&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