From 7c6d572b4cde370c5b64a7bd10ad50a28233aa39 Mon Sep 17 00:00:00 2001 From: Srdjan Jankovic Date: Fri, 26 Feb 2010 10:02:28 +1300 Subject: [PATCH] catalyst-wr68479: Limit holds to the user branch, provide a link to Signed-off-by: Chris Cormack Signed-off-by: Galen Charlton --- 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 7849d5ab31..62d3ca87d5 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 15a5e79af6..16b821be71 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

-- 2.39.5