[Koha-cvs] CVS: koha/acqui.simple isbnsearch.pl,1.14,1.14.2.1

Owen Leonard oleonard at users.sourceforge.net
Tue Feb 15 21:33:30 CET 2005


Update of /cvsroot/koha/koha/acqui.simple
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12895/acqui.simple

Modified Files:
      Tag: rel_2_2
	isbnsearch.pl 
Log Message:
- Adding classification to list of returned variables
- Updating table row color toggle to move HTML markup out of the script (requires update to the template)

Index: isbnsearch.pl
===================================================================
RCS file: /cvsroot/koha/koha/acqui.simple/isbnsearch.pl,v
retrieving revision 1.14
retrieving revision 1.14.2.1
diff -C2 -r1.14 -r1.14.2.1
*** isbnsearch.pl	2 Dec 2004 16:37:12 -0000	1.14
--- isbnsearch.pl	15 Feb 2005 20:33:08 -0000	1.14.2.1
***************
*** 73,80 ****
      for ( my $i = $offset ; $i < $total ; $i++ ) {
          if ( $i % 2 ) {
!             $toggle = "#ffffcc";
!         }
!         else {
!             $toggle = "white";
          }
          my %row_data;    # get a fresh hash for the row data
--- 73,79 ----
      for ( my $i = $offset ; $i < $total ; $i++ ) {
          if ( $i % 2 ) {
!             $toggle = 0;
!         } else {
!             $toggle = 1;
          }
          my %row_data;    # get a fresh hash for the row data
***************
*** 84,87 ****
--- 83,87 ----
          $row_data{author}        = $results[$i]->{'author'};
          $row_data{copyrightdate} = $results[$i]->{'copyrightdate'};
+ 		$row_data{classification} = $results[$i]->{'classification'};
          $row_data{NOTMARC}       = !$marc_p;	
          push ( @loop_data, \%row_data );
***************
*** 136,143 ****
          my %row_data;
          if ( $i % 2 ) {
!             $toggle = "#ffffcc";
          }
          else {
!             $toggle = "white";
          }
          $row_data{toggle} = $toggle;
--- 136,143 ----
          my %row_data;
          if ( $i % 2 ) {
!             $toggle = 0;
          }
          else {
!             $toggle = 1;
          }
          $row_data{toggle} = $toggle;





More information about the Koha-cvs mailing list