[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] CVS: koha deletebiblioitem.pl,NONE,1.3.2.1 modbibitem.pl,1.4.
From: |
Chris Cormack |
Subject: |
[Koha-cvs] CVS: koha deletebiblioitem.pl,NONE,1.3.2.1 modbibitem.pl,1.4.2.2,1.4.2.3 |
Date: |
Fri, 27 Dec 2002 18:36:14 -0800 |
Update of /cvsroot/koha/koha
In directory sc8-pr-cvs1:/tmp/cvs-serv23699
Modified Files:
Tag: rel-1-2
modbibitem.pl
Added Files:
Tag: rel-1-2
deletebiblioitem.pl
Log Message:
Fixing modbibitem so biblioitems can be deleted
--- NEW FILE ---
#!/usr/bin/perl
# Copyright 2000-2002 Katipo Communications
#
# This file is part of Koha.
#
# Koha is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
# Suite 330, Boston, MA 02111-1307 USA
use strict;
use C4::Biblio; # For &deletebiblioitem
use CGI;
my $input = new CGI;
my $biblionumber = $input->param('biblionumber');
my $biblioitemnumber = $input->param('biblioitemnumber');
if (! $biblionumber) {
print $input->redirect("/catalogue/");
} elsif (! $biblioitemnumber) {
print $input->param("detail.pl?type=intra&bib=$biblionumber");
} else {
&delbibitem($biblioitemnumber);
print $input->redirect("detail.pl?type=intra&bib=$biblionumber");
} # else
Index: modbibitem.pl
===================================================================
RCS file: /cvsroot/koha/koha/modbibitem.pl,v
retrieving revision 1.4.2.2
retrieving revision 1.4.2.3
diff -C2 -r1.4.2.2 -r1.4.2.3
*** modbibitem.pl 11 Sep 2002 21:28:28 -0000 1.4.2.2
--- modbibitem.pl 28 Dec 2002 02:36:10 -0000 1.4.2.3
***************
*** 26,31 ****
my $biblio=$input->param('biblio');
my $submit=$input->param('submit.x');
! if ($submit eq ''){
! print
$input->redirect("/cgi-bin/koha/delbibitem.pl?bibitemnum=$bibitemnum&biblio=$biblio");
}
print $input->header;
--- 26,31 ----
my $biblio=$input->param('biblio');
my $submit=$input->param('submit.x');
! if ($submit eq ''){
! print
$input->redirect("/cgi-bin/koha/deletebiblioitem.pl?biblioitemnumber=$bibitemnum&biblionumber=$biblio");
}
print $input->header;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] CVS: koha deletebiblioitem.pl,NONE,1.3.2.1 modbibitem.pl,1.4.2.2,1.4.2.3,
Chris Cormack <=
- Prev by Date:
[Koha-cvs] CVS: koha/value_builder unimarc_field_210c.pl,NONE,1.1
- Next by Date:
[Koha-cvs] CVS: koha/misc buildrelease,1.5,1.6 installer.pl,1.7,1.8 Install.pm,1.2,1.3
- Previous by thread:
[Koha-cvs] CVS: koha/value_builder unimarc_field_210c.pl,NONE,1.1
- Next by thread:
[Koha-cvs] CVS: koha/misc buildrelease,1.5,1.6 installer.pl,1.7,1.8 Install.pm,1.2,1.3
- Index(es):