From 3ae5b4bfd84eb044bd36fcbde25937729ba1c30d Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Tue, 10 Apr 2012 02:01:39 +0200 Subject: [PATCH] [SIGNED OFF] Bug 7937: Fix warns in opac-authoritiesdetail.pl [Tue Apr 10 01:51:20 2012] opac-authoritiesdetail.pl: Use of uninitialized value in concatenation (.) or string line 162 Warn is created, when authority record contains a field that does not exist in the authorities frameworks. Signed-off-by: Chris Cormack --- opac/opac-authoritiesdetail.pl | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/opac/opac-authoritiesdetail.pl b/opac/opac-authoritiesdetail.pl index 6610dfd..ccd5654 100755 --- a/opac/opac-authoritiesdetail.pl +++ b/opac/opac-authoritiesdetail.pl @@ -163,7 +163,10 @@ foreach my $field (@fields) { $field->tag() . ' ' . C4::Koha::display_marc_indicators($field) - . ' - ' . $tagslib->{ $field->tag() }->{lib}; + . ' - '; + if ($tagslib->{ $field->tag() }->{lib}) { + $tag_data{tag} .= $tagslib->{ $field->tag() }->{lib}; + } $tag_data{subfield} = \@subfields_data; push( @loop_data, \%tag_data ); } -- 1.7.5.4