From 83545f84499e3d23aa9746095d58d6c68a2db5bd Mon Sep 17 00:00:00 2001 From: tipaul Date: Tue, 3 Jul 2007 09:40:58 +0000 Subject: [PATCH] return itemtype description properly --- C4/Biblio.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 6b6289b886..641857f8f0 100644 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -1601,7 +1601,7 @@ sub GetAuthorisedValueDesc { #---- itemtypes if ( $tagslib->{$tag}->{$subfield}->{'authorised_value'} eq "itemtypes" ) { - return getitemtypeinfo($value); + return getitemtypeinfo($value)->{description}; } #---- "true" authorized value @@ -3957,6 +3957,9 @@ Joshua Ferraro jmf@liblime.com # $Id$ # $Log$ +# Revision 1.216 2007/07/03 09:40:58 tipaul +# return itemtype description properly +# # Revision 1.215 2007/07/03 09:33:05 tipaul # if you just replace su by a space in subjects, you'll replace jesus by je s, which is strange for users. this fix solves the problem and introduces authoritysep systempref as separator of subfields, for a better identification of where the authority starts and end # -- 2.39.2