koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] koha/cataloguing additem.pl


From: Chris Cormack
Subject: [Koha-cvs] koha/cataloguing additem.pl
Date: Mon, 06 Mar 2006 03:12:38 +0000

CVSROOT:        /sources/koha
Module name:    koha
Branch:         
Changes by:     Chris Cormack <address@hidden>  06/03/06 03:12:38

Modified files:
        cataloguing    : additem.pl 

Log message:
        Items adding correctly now

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha/cataloguing/additem.pl.diff?tr1=1.5&tr2=1.6&r1=text&r2=text

Patches:
Index: koha/cataloguing/additem.pl
diff -u koha/cataloguing/additem.pl:1.5 koha/cataloguing/additem.pl:1.6
--- koha/cataloguing/additem.pl:1.5     Mon Mar  6 02:51:04 2006
+++ koha/cataloguing/additem.pl Mon Mar  6 03:12:38 2006
@@ -1,6 +1,6 @@
 #!/usr/bin/perl
 
-# $Id: additem.pl,v 1.5 2006/03/06 02:51:04 kados Exp $
+# $Id: additem.pl,v 1.6 2006/03/06 03:12:38 rangi Exp $
 
 # Copyright 2000-2002 Katipo Communications
 #
@@ -50,6 +50,9 @@
 my $dbh = C4::Context->dbh;
 my $error = $input->param('error');
 my $biblionumber = $input->param('biblionumber');
+if (!$biblionumber){
+    $biblionumber=$input->param('bibid');
+}
 my $biblioitemnumber = find_biblioitemnumber($dbh,$biblionumber);
 my $itemnumber = $input->param('itemnumber');
 my $op = $input->param('op');
@@ -135,7 +138,7 @@
 # build screen with existing items. and "new" one
 
#------------------------------------------------------------------------------------------------------------------------------
 my ($template, $loggedinuser, $cookie)
-    = get_template_and_user({template_name => "cataloguing/additem.tmpl",
+    = get_template_and_user({template_name => "acqui.simple/additem.tmpl",
                             query => $input,
                             type => "intranet",
                             authnotrequired => 0,
@@ -311,6 +314,7 @@
 $template->param(item_loop => address@hidden,
                                                item_header_loop => 
address@hidden,
                                                biblionumber => $biblionumber,
+                                                bibid        => $biblionumber, 
                                                title => $oldrecord->{title},
                                                author => $oldrecord->{author},
                                                item => address@hidden,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]