[Koha-cvs] koha/C4 Auth.pm [rel_2_2]

Ryan Higgins rch at liblime.com
Fri Apr 6 16:17:16 CEST 2007


CVSROOT:	/sources/koha
Module name:	koha
Branch:		rel_2_2
Changes by:	Ryan Higgins <rych>	07/04/06 14:17:16

Modified files:
	C4             : Auth.pm 

Log message:
	adding some sysprefs and adding sysprefs to opac-auth.tmpl (not sure why they were lost, but it breaks the page display )

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/C4/Auth.pm?cvsroot=koha&only_with_tag=rel_2_2&r1=1.36.2.22&r2=1.36.2.23

Patches:
Index: Auth.pm
===================================================================
RCS file: /sources/koha/koha/C4/Auth.pm,v
retrieving revision 1.36.2.22
retrieving revision 1.36.2.23
diff -u -b -r1.36.2.22 -r1.36.2.23
--- Auth.pm	4 Sep 2006 13:33:12 -0000	1.36.2.22
+++ Auth.pm	6 Apr 2007 14:17:16 -0000	1.36.2.23
@@ -126,7 +126,6 @@
 		$bordat[0] = $borr;
 		$template->param(USER_INFO => \@bordat,
 		);
-		
 		# We are going to use the $flags returned by checkauth
 		# to create the template's parameters that will indicate
 		# which menus the user can access.
@@ -144,6 +143,7 @@
 			$template->param(CAN_user_updatecharge => 1);
 			$template->param(CAN_user_acquisition => 1);
 			$template->param(CAN_user_management => 1);
+			$template->param(CAN_user_shelves => 1);
 			$template->param(CAN_user_tools => 1); }
 		
 		if ($flags && $flags->{circulate} == 1) {
@@ -219,12 +219,21 @@
 				TemplateEncoding => C4::Context->preference("TemplateEncoding"),
 				opacuserlogin => C4::Context->preference("opacuserlogin"),
 				opacbookbag => C4::Context->preference("opacbookbag"),
+                usercss => C4::Context->preference("usercss"),
+                norequests => C4::Context->preference("norequests"),
+                virtualshelves => C4::Context->preference("virtualshelves"),
 		);
 	}
 	$template->param(
 				TemplateEncoding => C4::Context->preference("TemplateEncoding"),
 				AmazonContent => C4::Context->preference("AmazonContent"),
+                AmazonReviews => C4::Context->preference("AmazonReviews"),
 			     LibraryName => C4::Context->preference("LibraryName"),
+                KohaAdminEmailAddress => C4::Context->preference('KohaAdminEmailAddress'),
+                kohaBaseUrl => C4::Context->preference('kohaBaseUrl'), 
+                singleBranch => C4::Context->preference('singleBranch'),
+                numericCallNumber => C4::Context->preference('numericCallNumber'),
+
 		);
 	return ($template, $borrowernumber, $cookie);
 }
@@ -335,6 +344,7 @@
 					$hash{emailaddress},
 				);
 		}
+
 		my ($ip , $lasttime);
 
 		($userid, $ip, $lasttime) = $dbh->selectrow_array(
@@ -500,6 +510,25 @@
 			TemplateEncoding => C4::Context->preference("TemplateEncoding"),
 
 			);
+       if ($template_name eq "opac-auth.tmpl") {
+                $template->param(
+                                usercss => C4::Context->preference("usercss"),
+                                suggestion => C4::Context->preference("suggestion"),
+                                norequests => C4::Context->preference("norequests"),
+                                virtualshelves => C4::Context->preference("virtualshelves"),
+                                OpacNav => C4::Context->preference("OpacNav"),
+                                opacheader      => C4::Context->preference("opacheader"),
+                                opaccredits => C4::Context->preference("opaccredits"),
+                                opacsmallimage => C4::Context->preference("opacsmallimage"),
+                                opaclayoutstylesheet => C4::Context->preference("opaclayoutstylesheet"),
+                                opaccolorstylesheet => C4::Context->preference("opaccolorstylesheet"),
+                                TemplateEncoding => C4::Context->preference("TemplateEncoding"),
+                                Demo => C4::Context->preference("Demo"),
+                                opacuserlogin => C4::Context->preference("opacuserlogin"),
+                                opacbookbag => C4::Context->preference("opacbookbag"),
+                                );
+          }
+
 	$template->param(loginprompt => 1) unless $info{'nopermission'};
 
 	my $self_url = $query->url(-absolute => 1);





More information about the Koha-cvs mailing list