[Koha-cvs] koha/opac opac-main.pl [rel_2_2]

Henri-Damien LAURENT laurenthdl at alinto.com
Wed Oct 11 15:14:46 CEST 2006


CVSROOT:	/sources/koha
Module name:	koha
Branch:		rel_2_2
Changes by:	Henri-Damien LAURENT <hdl>	06/10/11 13:14:46

Modified files:
	opac           : opac-main.pl 

Log message:
	Adding branch selection if SearchMyLibraryFirst is set
	Antoine .... Your turn 

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/opac/opac-main.pl?cvsroot=koha&only_with_tag=rel_2_2&r1=1.16.2.12&r2=1.16.2.13

Patches:
Index: opac-main.pl
===================================================================
RCS file: /sources/koha/koha/opac/opac-main.pl,v
retrieving revision 1.16.2.12
retrieving revision 1.16.2.13
diff -u -b -r1.16.2.12 -r1.16.2.13
--- opac-main.pl	6 Oct 2006 15:33:37 -0000	1.16.2.12
+++ opac-main.pl	11 Oct 2006 13:14:46 -0000	1.16.2.13
@@ -75,7 +75,10 @@
         my %row =('value' => $thisbranch,
                                 'branchname' => $branches->{$thisbranch}->{'branchname'},
                         );
-        $row{'selected'} = 1 if ($thisbranch eq C4::Context->userenv->{branch});
+        $row{'selected'} = C4::Context->userenv->{branch} if ($thisbranch eq C4::Context->userenv->{branch});
+        foreach (keys %row){
+            warn "$_ : $row{$_}";
+        }
         push @branchloop, \%row;
 	}
     $template->param("mylibraryfirst"=>1,"branchloop"=>\@branchloop);





More information about the Koha-cvs mailing list