bugfix: prevent crash when displaying authority record leader
authorGalen Charlton <galen.charlton@liblime.com>
Fri, 9 Nov 2007 22:58:42 +0000 (16:58 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Tue, 13 Nov 2007 18:46:42 +0000 (12:46 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>

authorities/detail.pl

index a1fbdae..9a7a495 100755 (executable)
@@ -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) {