[Koha-cvs] koha/acqui.simple addbiblio.pl [rel_2_2]
Joshua Ferraro
jmf at kados.org
Fri Mar 10 06:04:22 CET 2006
CVSROOT: /sources/koha
Module name: koha
Branch: rel_2_2
Changes by: Joshua Ferraro <kados at savannah.gnu.org> 06/03/10 05:04:22
Modified files:
acqui.simple : addbiblio.pl
Log message:
check for existance of $record before trying as_xml operation
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha/acqui.simple/addbiblio.pl.diff?only_with_tag=rel_2_2&tr1=1.52.2.24&tr2=1.52.2.25&r1=text&r2=text
Patches:
Index: koha/acqui.simple/addbiblio.pl
diff -u koha/acqui.simple/addbiblio.pl:1.52.2.24 koha/acqui.simple/addbiblio.pl:1.52.2.25
--- koha/acqui.simple/addbiblio.pl:1.52.2.24 Fri Mar 10 02:35:07 2006
+++ koha/acqui.simple/addbiblio.pl Fri Mar 10 05:04:22 2006
@@ -1,6 +1,6 @@
#!/usr/bin/perl
-# $Id: addbiblio.pl,v 1.52.2.24 2006/03/10 02:35:07 kados Exp $
+# $Id: addbiblio.pl,v 1.52.2.25 2006/03/10 05:04:22 kados Exp $
# Copyright 2000-2002 Katipo Communications
#
@@ -516,10 +516,12 @@
$bibid = "";
$oldbiblionumber= "";
}
+ unless ($record == -1) {
#FIXME: it's kind of silly to go from MARC::Record to MARC::File::XML and then back again just to fix the encoding
my $uxml = $record->as_xml;
- my $urecord = MARC::Record::new_from_xml($uxml, 'UTF-8');
- build_tabs ($template, $urecord, $dbh,$encoding);
+ $record = MARC::Record::new_from_xml($uxml, 'UTF-8');
+ }
+ build_tabs ($template, $record, $dbh,$encoding);
build_hidden_data;
$template->param(
oldbiblionumber => $oldbiblionumber,
More information about the Koha-cvs
mailing list