bugfixing batchupdateISBN.pl
authorPaul POULAIN <paul.poulain@biblibre.com>
Tue, 20 May 2008 16:21:10 +0000 (18:21 +0200)
committerJoshua Ferraro <jmf@liblime.com>
Tue, 20 May 2008 17:55:06 +0000 (12:55 -0500)
pls, someone from MARC21 confirm.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
misc/batchupdateISBNs.pl

index 2752aab..03d5bba 100755 (executable)
@@ -127,7 +127,7 @@ if(not $no_marcxml){
                 }
            }
             if($flag){
-                $marcxml = $record->as_xml;
+                $marcxml = $record->as_xml_record('UNIMARC');
                 # Update
                 my $sth = $dbh->prepare($update_marcxml);
                 $sth->execute($marcxml,$biblioitemnumber);