From 0863abf07bbf7484e5bc790d8e3df0904233807f Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 7 Nov 2007 15:46:18 -0600 Subject: [PATCH] Revert "leader must be 25 and not 24 char long" This reverts commit 991ae79bb607b84e8df23023b7eeda11d4ca8ff5. Note: the MARC21 (and UNIMARC) leader length is *24* characters, not 25. Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/Biblio.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index e9067bcdb9..3f2bcb3fe4 100644 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -2311,7 +2311,7 @@ sub TransformHtmlToMarc { if($tag < 10){ # no code for theses fields # in MARC editor, 000 contains the leader. if ($tag eq '000' ) { - $record->leader($cgi->param($params->[$j+1])) if length($cgi->param($params->[$j+1]))==25; + $record->leader($cgi->param($params->[$j+1])) if length($cgi->param($params->[$j+1]))==24; # between 001 and 009 (included) } else { $newfield = MARC::Field->new( @@ -2348,7 +2348,6 @@ sub TransformHtmlToMarc { } $record->append_fields(@fields); - warn "RESULT : ".$record->as_formatted; return $record; } -- 2.39.5