[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/cataloguing addbiblio.pl
From: |
Joshua Ferraro |
Subject: |
[Koha-cvs] koha/cataloguing addbiblio.pl |
Date: |
Sat, 25 Feb 2006 22:51:32 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch:
Changes by: Joshua Ferraro <address@hidden> 06/02/25 22:51:32
Modified files:
cataloguing : addbiblio.pl
Log message:
Adding support for new Zconn object from C4::Context.pm
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha/cataloguing/addbiblio.pl.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
Patches:
Index: koha/cataloguing/addbiblio.pl
diff -u koha/cataloguing/addbiblio.pl:1.3 koha/cataloguing/addbiblio.pl:1.4
--- koha/cataloguing/addbiblio.pl:1.3 Tue Feb 14 11:25:22 2006
+++ koha/cataloguing/addbiblio.pl Sat Feb 25 22:51:32 2006
@@ -1,6 +1,6 @@
#!/usr/bin/perl
-# $Id: addbiblio.pl,v 1.3 2006/02/14 11:25:22 tipaul Exp $
+# $Id: addbiblio.pl,v 1.4 2006/02/25 22:51:32 kados Exp $
# Copyright 2000-2002 Katipo Communications
#
@@ -354,6 +354,7 @@
my $op = $input->param('op');
my $frameworkcode = $input->param('frameworkcode');
my $dbh = C4::Context->dbh;
+my $Zconn = C4::Context->Zconn;
$frameworkcode = &MARCfind_frameworkcode($dbh,$biblionumber) if ($biblionumber
and not ($frameworkcode));
$frameworkcode='' if ($frameworkcode eq 'Default');
@@ -432,7 +433,7 @@
if ($is_a_modif) {
warn "ITS A MODIF : .$biblionumber";
NEWmodbiblioframework($dbh,$biblionumber,$frameworkcode);
- NEWmodbiblio($dbh,$record,$biblionumber,$frameworkcode);
+
NEWmodbiblio($dbh,$Zconn,$record,$biblionumber,$frameworkcode);
} else {
my $biblioitemnumber;
($biblionumber,$biblioitemnumber) =
NEWnewbiblio($dbh,$record,$frameworkcode);
@@ -517,4 +518,4 @@
itemtype => $frameworkcode, # HINT: if the library has itemtype
= framework, itemtype is auto filled !
hide_marc => C4::Context->preference('hide_marc'),
);
-output_html_with_http_headers $input, $cookie, $template->output;
\ No newline at end of file
+output_html_with_http_headers $input, $cookie, $template->output;
- [Koha-cvs] koha/cataloguing addbiblio.pl,
Joshua Ferraro <=