koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] CVS: koha/opac opac-new.pl,1.1.2.1,1.1.2.2


From: Paul POULAIN
Subject: [Koha-cvs] CVS: koha/opac opac-new.pl,1.1.2.1,1.1.2.2
Date: Mon, 15 Mar 2004 09:30:29 -0800

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

Modified Files:
      Tag: rel_2_0
        opac-new.pl 
Log Message:
bugfixes in opac new acquisitions

Index: opac-new.pl
===================================================================
RCS file: /cvsroot/koha/koha/opac/opac-new.pl,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -r1.1.2.1 -r1.1.2.2
*** opac-new.pl 6 Jan 2004 15:46:17 -0000       1.1.2.1
--- opac-new.pl 15 Mar 2004 17:30:26 -0000      1.1.2.2
***************
*** 27,32 ****
  ($startfrom) || ($startfrom=0);
  my $subjectitems=$query->param('subjectitems');
! my (@results) = newsearch($itemtype,$duration,$number_of_results,$startfrom);
! my $count= $#results+1;
  my $num = 1;
  foreach my $res (@results) {
--- 27,33 ----
  ($startfrom) || ($startfrom=0);
  my $subjectitems=$query->param('subjectitems');
! my $count;
! my @results;
! ($count,@results) = 
newsearch($itemtype,$duration,$number_of_results,$startfrom);
  my $num = 1;
  foreach my $res (@results) {
***************
*** 60,64 ****
                                searchnew => 1,
                                itemtype => ItemType($itemtype),
!                               duration => $duration);
  
  $template->param(SEARCH_RESULTS => $resultsarray,
--- 61,67 ----
                                searchnew => 1,
                                itemtype => ItemType($itemtype),
!                               itemtypecode => $itemtype,
!                               duration => $duration,
!                               opacnew => 1);
  
  $template->param(SEARCH_RESULTS => $resultsarray,
***************
*** 73,77 ****
                my $themelang = $template->param('themelang');
                ($startfrom==($i-1)*$number_of_results+1) && ($highlight=1);
!               push @$numbers, { number => $i, highlight => $highlight , 
startfrom => ($i-1)*$number_of_results+1 };
        }
  }
--- 76,80 ----
                my $themelang = $template->param('themelang');
                ($startfrom==($i-1)*$number_of_results+1) && ($highlight=1);
!               push @$numbers, { number => $i, highlight => $highlight , 
startfrom => ($i-1)*$number_of_results };
        }
  }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]