Koha/cataloguing
Galen Charlton 98f638bb14 bug 2254 [1/3]: fixed GetAuthType(); avoid crash
Improved C4::AuthoritiesMarc::GetAuthType() so that
it returns either a hashref (if the authority type exists)
or undef (if it does not exist).  The same
accessor should not be used to either return a single
value or all values of a settings list.  Note that
all existing clients of GetAuthType are expecting
either a single hashref or undef; none of them
expected the arrayref that could be returned by
the previous version of the accessor.

When BiblioAddsAuthorities is ON, addbiblio.pl
now checks the return value of GetAuthType and
no longer crashes as follows if the MARC framework
specifies an invalid authority type for a given subfield:

Can't coerce array into hash at .../cataloging/addbiblio.pl line 738.

No documentation changes.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-06-25 11:39:24 -05:00
..
value_builder kohabug 2105: prevent crash on IE7 2008-05-13 17:40:36 -05:00
addbiblio.pl bug 2254 [1/3]: fixed GetAuthType(); avoid crash 2008-06-25 11:39:24 -05:00
addbooks.pl Porting SimpleSearch return changes to all code calling it. 2008-04-17 05:52:45 -05:00
additem.pl created old_issues and old_reserves tables 2008-03-15 08:36:31 -05:00
plugin_launcher.pl cataloge subdir (and cataloguing) - Dates.pm integration and warnings fixes. 2007-12-04 18:21:11 -06:00
thesaurus_popup.pl functions that were in C4::Interface::CGI::Output are now in C4::Output. 2007-04-24 13:54:28 +00:00
z3950_search.pl Adding search on ISSN for z3950_search.pl 2008-05-30 13:52:14 -05:00