[Koha-cvs] CVS: koha/opac opac-search.pl,1.20,1.21

Paul POULAIN tipaul at users.sourceforge.net
Fri Dec 10 17:12:05 CET 2004


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

Modified Files:
	opac-search.pl 
Log Message:
Improvement : adding a systempref to define default view in OPAC (either normal, MARC or ISBD). Created automatically during install or update. Check that you have a Koha >> parameters >> systempreferences >> BiblioDefaultView, Variable type : Choice, Variable options : normal|marc|isbd

Index: opac-search.pl
===================================================================
RCS file: /cvsroot/koha/koha/opac/opac-search.pl,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -r1.20 -r1.21
*** opac-search.pl	8 Nov 2004 19:56:26 -0000	1.20
--- opac-search.pl	10 Dec 2004 16:11:31 -0000	1.21
***************
*** 126,129 ****
--- 126,130 ----
  		$to = (($startfrom+1)*$resultsperpage);
  	}
+ 	my $defaultview = 'BiblioDefaultView'.C4::Context->preference('BiblioDefaultView');
  	$template->param(results => $results,
  							startfrom=> $startfrom,
***************
*** 140,143 ****
--- 141,145 ----
  							numbers=>\@numbers,
  							searchdesc=> $searchdesc,
+ 							$defaultview => 1,
  							);
  





More information about the Koha-cvs mailing list