From e515e49bced5cb9c678606e0184d20ef275385bf Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 9 Nov 2007 16:58:42 -0600 Subject: [PATCH] bugfix: prevent crash when displaying authority record leader Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- authorities/detail.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authorities/detail.pl b/authorities/detail.pl index a1fbdae32e..9a7a4954ae 100755 --- a/authorities/detail.pl +++ b/authorities/detail.pl @@ -370,7 +370,7 @@ sub build_tabs ($$$$$) { @fields = $record->field($tag); } else { - push @fields, $record->leader(); # if tag == 000 + push @fields, MARC::Field->new('000', $record->leader()); # if tag == 000 } # loop through each field foreach my $field (@fields) { -- 2.39.5