(unimarc specific) BUGFIX : if 100$a exist but is not 35 char long, MARC::File::XML may fail
So, add blanks if needed... Signed-off-by: Chris Cormack <crc@liblime.com>
This commit is contained in:
parent
737730e4a6
commit
ec7bd0b2ff
|
|
@ -35,7 +35,7 @@ sub MARCmodrecord {
|
|||
$update=1;
|
||||
my $string;
|
||||
if ($record->subfield(100,"a")) {
|
||||
$string = $record->subfield(100,"a");
|
||||
$string = substr($record->subfield(100,"a")." ",0,35);
|
||||
my $f100 = $record->field(100);
|
||||
$record->delete_field($f100);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue