[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] CVS: koha/acqui.simple marcimport.pl,1.6.2.35,1.6.2.36
From: |
Steve Tonnesen |
Subject: |
[Koha-cvs] CVS: koha/acqui.simple marcimport.pl,1.6.2.35,1.6.2.36 |
Date: |
Wed, 04 Dec 2002 09:21:06 -0800 |
Update of /cvsroot/koha/koha/acqui.simple
In directory sc8-pr-cvs1:/tmp/cvs-serv24872
Modified Files:
Tag: rel-1-2
marcimport.pl
Log Message:
Added a link to delete uploaded marc records.
Index: marcimport.pl
===================================================================
RCS file: /cvsroot/koha/koha/acqui.simple/marcimport.pl,v
retrieving revision 1.6.2.35
retrieving revision 1.6.2.36
diff -C2 -r1.6.2.35 -r1.6.2.36
*** marcimport.pl 11 Jul 2002 18:05:29 -0000 1.6.2.35
--- marcimport.pl 4 Dec 2002 17:21:04 -0000 1.6.2.36
***************
*** 50,53 ****
--- 50,54 ----
print startmenu('acquisitions');
+
print "<p align=left>Logged in as: $loggedinuser [<a
href=/cgi-bin/koha/logout.pl>Log Out</a>]</p>\n";
***************
*** 687,695 ****
print "<a href=$ENV{'SCRIPT_NAME'}>Main Menu</a><hr>\n";
my $sth=$dbh->prepare("select id,name from uploadedmarc");
$sth->execute;
print "<h2>Select a set of MARC records</h2>\n<ul>";
while (my ($id, $name) = $sth->fetchrow) {
! print "<li><a
href=$ENV{'SCRIPT_NAME'}?file=$id&menu=$menu>$name</a><br>\n";
}
print "</ul>\n";
--- 688,700 ----
print "<a href=$ENV{'SCRIPT_NAME'}>Main Menu</a><hr>\n";
+ if (my $deleterecord=$input->param('deleterecord')) {
+ my $sth=$dbh->prepare("delete from uploadedmarc where
id=$deleterecord");
+ $sth->execute;
+ }
my $sth=$dbh->prepare("select id,name from uploadedmarc");
$sth->execute;
print "<h2>Select a set of MARC records</h2>\n<ul>";
while (my ($id, $name) = $sth->fetchrow) {
! print "<li><a href=$ENV{'SCRIPT_NAME'}?file=$id&menu=$menu>$name</a>
(<a href=marcimport.pl?menu=uploadmarc&deleterecord=$id>Delete</a>)<br>\n";
}
print "</ul>\n";
***************
*** 1150,1153 ****
--- 1155,1161 ----
#---------------
# $Log$
+ # Revision 1.6.2.36 2002/12/04 17:21:04 tonnesen
+ # Added a link to delete uploaded marc records.
+ #
# Revision 1.6.2.35 2002/07/11 18:05:29 tonnesen
# Committing changes to add authentication and opac templating to rel-1-2
branch
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] CVS: koha/acqui.simple marcimport.pl,1.6.2.35,1.6.2.36,
Steve Tonnesen <=