[Koha-patches] [PATCH] catalyst-wr68480: better handling of holds re IndependantBranches

Chris Cormack chrisc at catalyst.net.nz
Sun Apr 25 21:44:32 CEST 2010


From: Srdjan Jankovic <srdjan at catalyst.net.nz>

Signed-off-by: Chris Cormack <chrisc at catalyst.net.nz>
---
 circ/waitingreserves.pl |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/circ/waitingreserves.pl b/circ/waitingreserves.pl
index 62d3ca8..e924bcf 100755
--- a/circ/waitingreserves.pl
+++ b/circ/waitingreserves.pl
@@ -91,8 +91,12 @@ if ($item) {
         ModItemTransfer( $item, $fbr, $tbr );
     }
 }
-$template->param( all_branches_link => $input->url . '?allbranches=1&' . $input->query_string )
-  unless $all_branches;
+if ( C4::Context->preference('IndependantBranches') ) {
+    undef $all_branches;
+} else {
+    $template->param( all_branches_link => $input->url . '?allbranches=1&' . $input->query_string )
+      unless $all_branches;
+}
 
 my (@reservloop, @overloop);
 my ($reservcount, $overcount);
-- 
1.6.3.3




More information about the Koha-patches mailing list