This is another fix for a bug that was introduced while adding this feature.
I believe that either this patch or the one at:
http://lists.koha.org/pipermail/koha-patches/2008-May/000309.html
should be applied.
In the case that GetMarcBiblio or GetMarcStructure does not return a true value,
this returns without further processing.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
my $authorised_values;
- my $record = GetMarcBiblio( $biblionumber );
- my $tagslib = GetMarcStructure( $forlibrarian, $frameworkcode );
+ my $record = GetMarcBiblio( $biblionumber )
+ or return $authorised_values;
+ my $tagslib = GetMarcStructure( $forlibrarian, $frameworkcode )
+ or return $authorised_values;
# assume that these entries in the authorised_value table are bibliolevel.
# ones that start with 'item%' are item level.