[Koha-devel] Bug 5791 - Robust handling of deleted biblios/authorities
Colin Campbell
colin.campbell at ptfs-europe.com
Tue Feb 22 15:04:59 CET 2011
On 22/02/11 13:22, Tomas Cohen Arazi wrote:
> I've filled a bug for better non existent record handling for biblios
> and authorities. I propose to use the same approach used for patrons.
> I hope I can submit a patch within a few hours.
>
> For authorities I plan to add to authorities/detail.pl a check like this:
>
> if ( defined $authtypecode ) {
> record show stuff
> } else {
> generate proper error message
> }
I'm assuming GetAuthority and GetBiblio are returning undef as the
returned $record so you should be able to test if ($record)
Catching these errors will be a major improvement, thanks
Colin
--
Colin Campbell
Chief Software Engineer,
PTFS Europe Limited
Content Management and Library Solutions
+44 (0) 845 557 5634 (phone)
+44 (0) 7759 633626 (mobile)
colin.campbell at ptfs-europe.com
skype: colin_campbell2
http://www.ptfs-europe.com
More information about the Koha-devel
mailing list