[Koha-cvs] CVS: koha/C4 Search.pm,1.18.2.25,1.18.2.26

Chris Cormack rangi at users.sourceforge.net
Wed Jan 15 23:05:18 CET 2003


Update of /cvsroot/koha/koha/C4
In directory sc8-pr-cvs1:/tmp/cvs-serv22057a/C4

Modified Files:
      Tag: rel-1-2
	Search.pm 
Log Message:
Fixing the catalogsearch call to itemcount2 removing the hardwired 'intra'
call and passing thru the type. An opac potentially counts items different,
ie at HLT they dont count the lost/cancelled items when presenting results
to the public


Index: Search.pm
===================================================================
RCS file: /cvsroot/koha/koha/C4/Search.pm,v
retrieving revision 1.18.2.25
retrieving revision 1.18.2.26
diff -C2 -r1.18.2.25 -r1.18.2.26
*** Search.pm	15 Jan 2003 16:45:31 -0000	1.18.2.25
--- Search.pm	15 Jan 2003 22:05:16 -0000	1.18.2.26
***************
*** 203,207 ****
    if ($env->{itemcount}) {
      foreach my $data (@results){
!       my ($counts) = itemcount2($env, $data->{'biblionumber'}, 'intra');
        my $subject2=$data->{'subject'};
        $subject2=~ s/ /%20/g;
--- 203,207 ----
    if ($env->{itemcount}) {
      foreach my $data (@results){
!       my ($counts) = itemcount2($env, $data->{'biblionumber'}, $type);
        my $subject2=$data->{'subject'};
        $subject2=~ s/ /%20/g;





More information about the Koha-cvs mailing list