Revert "leader must be 25 and not 24 char long"
authorGalen Charlton <galen.charlton@liblime.com>
Wed, 7 Nov 2007 21:46:18 +0000 (15:46 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Thu, 8 Nov 2007 23:14:48 +0000 (17:14 -0600)
This reverts commit 991ae79bb607b84e8df23023b7eeda11d4ca8ff5.

Note: the MARC21 (and UNIMARC) leader length is *24* characters,
not 25.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Biblio.pm

index e9067bc..3f2bcb3 100644 (file)
@@ -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;
 }