=cut
use strict;
+#use warnings; FIXME - Bug 2505
BEGIN {
# find Koha's Perl modules
# test carefully before changing this
if(not $no_isbn){
my $query_isbn = "
- SELECT biblioitemnumber,isbn FROM biblioitems WHERE isbn IS NOT NULL
+ SELECT biblioitemnumber,isbn FROM biblioitems WHERE isbn IS NOT NULL ORDER BY biblioitemnumber
";
my $update_isbn = "
if(not $no_marcxml){
my $query_marcxml = "
- SELECT biblioitemnumber,marcxml FROM biblioitems WHERE isbn IS NOT NULL
+ SELECT biblioitemnumber,marcxml FROM biblioitems WHERE isbn IS NOT NULL ORDER BY biblioitemnumber
";
}
}
if($flag){
- $marcxml = $record->as_xml;
+ $marcxml = $record->as_xml_record('UNIMARC');
# Update
my $sth = $dbh->prepare($update_marcxml);
$sth->execute($marcxml,$biblioitemnumber);