[Koha-patches] [PATCH] Update waitingreserves to only show local holds.

Ryan Higgins rch at liblime.com
Thu Sep 4 23:16:57 CEST 2008


The template for this script says 'your library' yet
the code displayed  all libraries' holds.
---
 circ/waitingreserves.pl |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/circ/waitingreserves.pl b/circ/waitingreserves.pl
index 01b4df0..5fde3c7 100755
--- a/circ/waitingreserves.pl
+++ b/circ/waitingreserves.pl
@@ -104,14 +104,8 @@ if ($item) {
 my @reservloop;
 
 my @getreserves;
-if (C4::Context->preference('IndependantBranches')){
-	# get reserves for the branch we are logged into
-	@getreserves = GetReservesForBranch($default);
-}
-else {
-	# get all reserves waiting
-	@getreserves = GetReservesForBranch();
-}	
+# get reserves for the branch we are logged into
+ at getreserves = GetReservesForBranch($default);
 	
 foreach my $num (@getreserves) {
     my %getreserv;
-- 
1.5.5.GIT




More information about the Koha-patches mailing list