[Koha-cvs] CVS: koha/opac opac-detail.pl,1.23,1.24

Chris Cormack rangi at users.sourceforge.net
Sat Sep 3 02:10:38 CEST 2005


Update of /cvsroot/koha/koha/opac
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31107

Modified Files:
	opac-detail.pl 
Log Message:
Now fetches the number of reviews, and passes it through to the template to be displayed


Index: opac-detail.pl
===================================================================
RCS file: /cvsroot/koha/koha/opac/opac-detail.pl,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -r1.23 -r1.24
*** opac-detail.pl	4 Aug 2005 14:19:50 -0000	1.23
--- opac-detail.pl	3 Sep 2005 00:10:36 -0000	1.24
***************
*** 11,14 ****
--- 11,16 ----
  use C4::SearchMarc;
  use C4::Amazon;
+ use C4::Review;
+ 
  my $query=new CGI;
  my ($template, $borrowernumber, $cookie) 
***************
*** 89,99 ****
  }
  
! my @results = ($dat,);
! 
! 
! 
! 
! 
  
  my $resultsarray=\@results;
  my $itemsarray=\@items;
--- 91,99 ----
  }
  
! # get the number of reviews
! my $reviewcount=numberofreviews($biblionumber);
! $dat->{'reviews'}=$reviewcount;
  
+ my @results = ($dat,);
  my $resultsarray=\@results;
  my $itemsarray=\@items;





More information about the Koha-cvs mailing list