From 8e263f68ec36844b38b3b7b267116232e9e18065 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 13 Mar 2008 17:18:11 -0500 Subject: [PATCH] better way of fixing "renew all" Signed-off-by: Joshua Ferraro --- .../prog/en/modules/circ/circulation.tmpl | 4 ++-- .../prog/en/modules/members/moremember.tmpl | 5 ++++- reserve/renewscript.pl | 16 ++++++++++++++-- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl index bb8ea3d95c..10e295223d 100755 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl @@ -406,6 +406,7 @@ No patron matched + " checked="checked" style="display: none;" /> " checked="checked" /> @@ -419,7 +420,6 @@ No patron matched Too Many Renewals - " checked="checked" style="display: none;" /> ">Check In @@ -455,6 +455,7 @@ No patron matched + " checked="checked" style="display: none;" /> " checked="checked" /> @@ -469,7 +470,6 @@ No patron matched - " checked="checked" style="display: none;" /> ">Check In 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 800ec475b3..1b1671372a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl @@ -376,6 +376,7 @@ for (var i=0;i + " checked="checked" style="display: none;" /> " checked="checked" onClick="javascript:uncheck_sibling(this);" /> @@ -387,7 +388,9 @@ for (var i=0;i Return Failed - " onClick="javascript:uncheck_sibling(this);" /> + " onClick="javascript:uncheck_sibling(this);" /> + " checked="checked" style="display: none;" /> + diff --git a/reserve/renewscript.pl b/reserve/renewscript.pl index daf8c2ae75..6e3cf14592 100755 --- a/reserve/renewscript.pl +++ b/reserve/renewscript.pl @@ -47,9 +47,21 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( # find items to renew, all items or a selection of items # -my @data = $input->param('items[]'); +my @data; +if ($input->param('renew_all')) { + @data = $input->param('all_items[]'); +} +else { + @data = $input->param('items[]'); +} + +my @barcodes; +if ($input->param('return_all')) { + @barcodes = $input->param('all_barcodes[]'); +} else { + @barcodes = $input->param('barcodes[]'); +} -my @barcodes = $input->param('barcodes[]'); my $branch=$input->param('branch'); my $datedue; if ($input->param('newduedate')){ -- 2.39.5