[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/serials serials-home.pl serials-edit.pl
From: |
Henri-Damien LAURENT |
Subject: |
[Koha-cvs] koha/serials serials-home.pl serials-edit.pl |
Date: |
Sat, 30 Jun 2007 06:23:10 +0000 |
CVSROOT: /cvsroot/koha
Module name: koha
Changes by: Henri-Damien LAURENT <hdl> 07/06/30 06:23:10
Modified files:
serials : serials-home.pl serials-edit.pl
Log message:
serials-edit.pl
Changing redirection to serials-home.pl
serials-home.pl
Adding some parameters to serials-home script to display
information passed by serials-edit.pl
Preparing information for display.
(template to get committed)
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/serials/serials-home.pl?cvsroot=koha&r1=1.11&r2=1.12
http://cvs.savannah.gnu.org/viewcvs/koha/serials/serials-edit.pl?cvsroot=koha&r1=1.8&r2=1.9
Patches:
Index: serials-home.pl
===================================================================
RCS file: /cvsroot/koha/koha/serials/serials-home.pl,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- serials-home.pl 24 Apr 2007 13:54:30 -0000 1.11
+++ serials-home.pl 30 Jun 2007 06:23:10 -0000 1.12
@@ -17,7 +17,7 @@
# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
# Suite 330, Boston, MA 02111-1307 USA
-# $Id: serials-home.pl,v 1.11 2007/04/24 13:54:30 hdl Exp $
+# $Id: serials-home.pl,v 1.12 2007/06/30 06:23:10 hdl Exp $
=head1 NAME
@@ -55,6 +55,12 @@
my $searched = $query->param('searched');
my $biblionumber = $query->param('biblionumber');
+my @serialseqs = $query->param('serialseq');
+my @planneddates = $query->param('planneddate');
+my @publisheddates = $query->param('publisheddate');
+my @status = $query->param('status');
+my @notes = $query->param('notes');
+
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
template_name => "serials/serials-home.tmpl",
@@ -66,6 +72,24 @@
}
);
+if (@serialseqs){
+ my @information;
+ my $index;
+ foreach my $seq (@serialseqs){
+ if ($seq){
+ ### FIXME This limitation that a serial must be given a title may not
be very efficient for some library who do not update serials titles.
+ push @information,
+ { serialseq=>$seq,
+ publisheddate=>$publisheddates[$index],
+ planneddate=>$planneddates[$index],
+ notes=>$notes[$index],
+ status=>$status[$index]
+ }
+ }
+ $index++;
+ }
+ $template->param('information'=>address@hidden);
+}
my @subscriptions;
if ($searched){
@subscriptions = GetSubscriptions( $title, $ISSN, $biblionumber );
Index: serials-edit.pl
===================================================================
RCS file: /cvsroot/koha/koha/serials/serials-edit.pl,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- serials-edit.pl 18 May 2007 12:00:49 -0000 1.8
+++ serials-edit.pl 30 Jun 2007 06:23:10 -0000 1.9
@@ -17,7 +17,7 @@
# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
# Suite 330, Boston, MA 02111-1307 USA
-# $Id: serials-edit.pl,v 1.8 2007/05/18 12:00:49 hdl Exp $
+# $Id: serials-edit.pl,v 1.9 2007/06/30 06:23:10 hdl Exp $
=head1 NAME
@@ -248,7 +248,14 @@
}
}
}
- print
$query->redirect("serials-collection.pl?biblionumber=".$serialdatalist[0]->{biblionumber});
+ ### FIXME this part of code is not very pretty. Nor is it very
efficient... There MUST be a more perlish way to write it. But it works.
+ my $redirect ="serials-home.pl?";
+ $redirect.=join("&",map{"serialseq=".$_} @serialseqs);
+ $redirect.="&".join("&",map{"planneddate=".$_} @planneddates);
+ $redirect.="&".join("&",map{"publisheddate=".$_} @publisheddates);
+ $redirect.="&".join("&",map{"status=".$_} @status);
+ $redirect.="&".join("&",map{"notes=".$_} @notes);
+ print $query->redirect("$redirect");
}
$template->param(serialsadditems =>C4::Context->preference("serialsadditems"));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] koha/serials serials-home.pl serials-edit.pl,
Henri-Damien LAURENT <=