[Koha-cvs] koha detail.pl [dev_week]

Joshua Ferraro jmf at kados.org
Sat Oct 14 05:56:59 CEST 2006


CVSROOT:	/sources/koha
Module name:	koha
Branch:		dev_week
Changes by:	Joshua Ferraro <kados>	06/10/14 03:56:59

Modified files:
	.              : detail.pl 

Log message:
	I think this fixes the problem of the reserves button not always showing
	up properly ... Owen, let me know if you continue to have problems.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/detail.pl?cvsroot=koha&only_with_tag=dev_week&r1=1.24.2.9.2.1&r2=1.24.2.9.2.2

Patches:
Index: detail.pl
===================================================================
RCS file: /sources/koha/koha/Attic/detail.pl,v
retrieving revision 1.24.2.9.2.1
retrieving revision 1.24.2.9.2.2
diff -u -b -r1.24.2.9.2.1 -r1.24.2.9.2.2
--- detail.pl	21 Jul 2006 17:46:47 -0000	1.24.2.9.2.1
+++ detail.pl	14 Oct 2006 03:56:59 -0000	1.24.2.9.2.2
@@ -15,7 +15,7 @@
     = get_template_and_user({template_name => "catalogue/detail.tmpl",
 			     query => $query,
 			     type => "intranet",
-			     authnotrequired => 1,
+			     authnotrequired => 0,
 			     flagsrequired => {borrow => 1},
 			     });
 
@@ -44,7 +44,7 @@
 
 my $norequests = 1;
 foreach my $itm (@items) {
-    $norequests = 0 unless $itm->{'notforloan'};
+    $norequests = 0 unless ($itm->{'notforloan'}>0);
     $itm->{$itm->{'publictype'}} = 1;
 }
 





More information about the Koha-cvs mailing list