[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/acqui.simple addbiblio.pl [rel_2_2]
From: |
Joshua Ferraro |
Subject: |
[Koha-cvs] koha/acqui.simple addbiblio.pl [rel_2_2] |
Date: |
Fri, 10 Mar 2006 05:04:22 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch: rel_2_2
Changes by: Joshua Ferraro <address@hidden> 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,
- [Koha-cvs] koha/acqui.simple addbiblio.pl [rel_2_2], Joshua Ferraro, 2006/03/05
- [Koha-cvs] koha/acqui.simple addbiblio.pl [rel_2_2],
Joshua Ferraro <=
- [Koha-cvs] koha/acqui.simple addbiblio.pl [rel_2_2], Joshua Ferraro, 2006/03/12
- [Koha-cvs] koha/acqui.simple addbiblio.pl [rel_2_2], Joshua Ferraro, 2006/03/14
- [Koha-cvs] koha/acqui.simple addbiblio.pl [rel_2_2], Joshua Ferraro, 2006/03/14
- [Koha-cvs] koha/acqui.simple addbiblio.pl [rel_2_2], Joshua Ferraro, 2006/03/14
- [Koha-cvs] koha/acqui.simple addbiblio.pl [rel_2_2], Joshua Ferraro, 2006/03/15
- [Koha-cvs] koha/acqui.simple addbiblio.pl [rel_2_2], Joshua Ferraro, 2006/03/15
- [Koha-cvs] koha/acqui.simple addbiblio.pl [rel_2_2], Joshua Ferraro, 2006/03/16
- [Koha-cvs] koha/acqui.simple addbiblio.pl [rel_2_2], Joshua Ferraro, 2006/03/17
- [Koha-cvs] koha/acqui.simple addbiblio.pl [rel_2_2], Joshua Ferraro, 2006/03/20
- [Koha-cvs] koha/acqui.simple addbiblio.pl [rel_2_2], Joshua Ferraro, 2006/03/21