From 6cc8b7ce100a6ccb23772b7226e05a1b0c7c5360 Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Fri, 25 Jul 2008 10:08:31 -0500 Subject: [PATCH] If the authorized value description doesn't exist, display the value --- cataloguing/additem.pl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl index 4c9ecfc462..f8780c237c 100755 --- a/cataloguing/additem.pl +++ b/cataloguing/additem.pl @@ -209,10 +209,12 @@ foreach my $field (@fields) { && $subf[$i][0] ne $itemtagsubfield)); $witness{$subf[$i][0]} = $tagslib->{$field->tag()}->{$subf[$i][0]}->{lib} if ($tagslib->{$field->tag()}->{$subf[$i][0]}->{tab} eq 10); + if ($tagslib->{$field->tag()}->{$subf[$i][0]}->{tab} eq 10) { + $this_row{$subf[$i][0]}=GetAuthorisedValueDesc( $field->tag(), + $subf[$i][0], $subf[$i][1], '', $tagslib) + || $subf[$i][1]; + } - $this_row{$subf[$i][0]}=GetAuthorisedValueDesc( $field->tag(), - $subf[$i][0], $subf[$i][1], '', $tagslib) if ($tagslib->{$field->tag()}->{$subf[$i][0]}->{tab} eq 10); - if (($field->tag eq $branchtagfield) && ($subf[$i][$0] eq $branchtagsubfield) && C4::Context->preference("IndependantBranches")) { #verifying rights my $userenv = C4::Context->userenv(); -- 2.39.5