From fc0ac9ea1bb55c57c1c2dd18b7120b935e4525a8 Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Fri, 25 Jan 2008 15:04:31 -0600 Subject: [PATCH] Adding manual datedue for renewals on moremember pages. Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- .../prog/en/modules/members/moremember.tmpl | 41 +++++++++++++------ members/moremember.pl | 1 + reserve/renewscript.pl | 6 ++- 3 files changed, 34 insertions(+), 14 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl index 04abef822a..8f23698e55 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl @@ -1,6 +1,7 @@ Koha › Patrons › <!-- TMPL_IF NAME="unknowuser" -->Patron does not exist<!-- TMPL_ELSE -->Patron Details for <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)<!-- /TMPL_IF --> + +
diff --git a/members/moremember.pl b/members/moremember.pl index d980b6c324..94d5668177 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -336,6 +336,7 @@ $template->param($data); $template->param( detailview => 1, + DHTMLcalendar_dateformat=>C4::Dates->DHTMLcalendar(), roaddetails => $roaddetails, borrowernumber => $borrowernumber, reregistration => $reregistration, diff --git a/reserve/renewscript.pl b/reserve/renewscript.pl index 28e81f270c..3700043056 100755 --- a/reserve/renewscript.pl +++ b/reserve/renewscript.pl @@ -25,7 +25,8 @@ use CGI; use C4::Circulation; use C4::Auth; - +use C4::Dates qw/format_date_in_iso/; +use strict; my $input = new CGI; #Set Up User_env @@ -55,6 +56,7 @@ else { } my @barcodes = $input->param('barcodes[]'); my $branch=$input->param('branch'); +my $datedue=C4::Dates->new($input->param('newduedate')); # warn "barcodes : @barcodes"; # @@ -67,7 +69,7 @@ foreach my $itemno (@data) { # check status before renewing issue my ($renewokay,$error) = CanBookBeRenewed($borrowernumber,$itemno); if ($renewokay){ - AddRenewal($borrowernumber,$itemno,$branch); + AddRenewal($borrowernumber,$itemno,$branch,$datedue); } else { $failedrenews.="&failedrenew=$itemno"; -- 2.39.5