From 32fe63d0ae7e0faeedd67a5fca9007e72a897528 Mon Sep 17 00:00:00 2001
From: Katrin Fischer <Katrin.Fischer.83@web.de>
Date: Tue, 10 Apr 2012 02:01:39 +0200
Subject: [PATCH] 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.
---
 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