[Koha-cvs] koha/catalogue detail.pl [rel_3_0]

Antoine Farnault antoine at koha-fr.org
Thu Oct 19 16:16:09 CEST 2006


CVSROOT:	/sources/koha
Module name:	koha
Branch:		rel_3_0
Changes by:	Antoine Farnault <toins>	06/10/19 14:16:09

Modified files:
	catalogue      : detail.pl 

Log message:
	sync with dev_week.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/catalogue/detail.pl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.6.2.1&r2=1.6.2.2

Patches:
Index: detail.pl
===================================================================
RCS file: /sources/koha/koha/catalogue/detail.pl,v
retrieving revision 1.6.2.1
retrieving revision 1.6.2.2
diff -u -b -r1.6.2.1 -r1.6.2.2
--- detail.pl	31 Aug 2006 16:30:30 -0000	1.6.2.1
+++ detail.pl	19 Oct 2006 14:16:09 -0000	1.6.2.2
@@ -15,7 +15,7 @@
 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
 # Suite 330, Boston, MA  02111-1307 USA
 
-# $Id: detail.pl,v 1.6.2.1 2006/08/31 16:30:30 toins Exp $
+# $Id: detail.pl,v 1.6.2.2 2006/10/19 14:16:09 toins Exp $
 
 use strict;
 require Exporter;
@@ -32,7 +32,7 @@
     = get_template_and_user({template_name => "catalogue/detail.tmpl",
 			     query => $query,
 			     type => "intranet",
-			     authnotrequired => 1,
+			     authnotrequired => 0,
 			     flagsrequired => {borrow => 1},
 			     });
 
@@ -61,7 +61,7 @@
 
 my $norequests = 1;
 foreach my $itm (@items) {
-    $norequests = 0 unless $itm->{'notforloan'};
+    $norequests = 0 unless (($itm->{'notforloan'}>0) || ($itm->{'itemnotforloan'}>0));
     $itm->{$itm->{'publictype'}} = 1;
 }
 





More information about the Koha-cvs mailing list