From 22cb04174bfe3395ca47c61091251c46849e9bcf Mon Sep 17 00:00:00 2001 From: Srdjan Jankovic Date: Thu, 25 Feb 2010 18:38:48 +1300 Subject: [PATCH] catalyst-wr68479: Limit holds to the user branch, provide a link to Signed-off-by: Chris Cormack --- circ/waitingreserves.pl | 5 ++++- .../prog/en/modules/circ/waitingreserves.tmpl | 7 ++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/circ/waitingreserves.pl b/circ/waitingreserves.pl index 6a9d58e..8b026df 100755 --- a/circ/waitingreserves.pl +++ b/circ/waitingreserves.pl @@ -44,6 +44,7 @@ my $item = $input->param('itemnumber'); my $borrowernumber = $input->param('borrowernumber'); my $fbr = $input->param('fbr') || ''; my $tbr = $input->param('tbr') || ''; +my $all_branches = $input->param('allbranches') || ''; my $cancel; @@ -90,10 +91,12 @@ if ($item) { ModItemTransfer( $item, $fbr, $tbr ); } } +$template->param( all_branches_link => $input->url . '?allbranches=1&' . $input->query_string ) + unless $all_branches; my (@reservloop, @overloop); my ($reservcount, $overcount); -my @getreserves = $default ? GetReservesForBranch($default) : GetReservesForBranch(); +my @getreserves = $all_branches ? GetReservesForBranch() : GetReservesForBranch($default); # get reserves for the branch we are logged into, or for all branches my $today = Date_to_Days(&Today); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tmpl index 15a5e79..16b821b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tmpl @@ -38,7 +38,12 @@ $.tablesorter.addParser({
-

Holds awaiting pickup for your library on:

+

Holds awaiting pickup for your library on: + + "> + View all branches + +

Hold find for () must transfered

-- 1.6.3.3