|
Lines 147-163
sub get_template_and_user {
Link Here
|
| 147 |
my $insecure = C4::Context->preference('insecure'); |
147 |
my $insecure = C4::Context->preference('insecure'); |
| 148 |
if ($user or $insecure) { |
148 |
if ($user or $insecure) { |
| 149 |
|
149 |
|
| 150 |
# load the template variables for stylesheets and JavaScript |
|
|
| 151 |
$template->param( css_libs => $in->{'css_libs'} ); |
| 152 |
$template->param( css_module => $in->{'css_module'} ); |
| 153 |
$template->param( css_page => $in->{'css_page'} ); |
| 154 |
$template->param( css_widgets => $in->{'css_widgets'} ); |
| 155 |
|
| 156 |
$template->param( js_libs => $in->{'js_libs'} ); |
| 157 |
$template->param( js_module => $in->{'js_module'} ); |
| 158 |
$template->param( js_page => $in->{'js_page'} ); |
| 159 |
$template->param( js_widgets => $in->{'js_widgets'} ); |
| 160 |
|
| 161 |
# user info |
150 |
# user info |
| 162 |
$template->param( loggedinusername => $user ); |
151 |
$template->param( loggedinusername => $user ); |
| 163 |
$template->param( sessionID => $sessionID ); |
152 |
$template->param( sessionID => $sessionID ); |
|
Lines 281-297
sub get_template_and_user {
Link Here
|
| 281 |
} |
270 |
} |
| 282 |
else { # if this is an anonymous session, setup to display public lists... |
271 |
else { # if this is an anonymous session, setup to display public lists... |
| 283 |
|
272 |
|
| 284 |
# load the template variables for stylesheets and JavaScript |
|
|
| 285 |
$template->param( css_libs => $in->{'css_libs'} ); |
| 286 |
$template->param( css_module => $in->{'css_module'} ); |
| 287 |
$template->param( css_page => $in->{'css_page'} ); |
| 288 |
$template->param( css_widgets => $in->{'css_widgets'} ); |
| 289 |
|
| 290 |
$template->param( js_libs => $in->{'js_libs'} ); |
| 291 |
$template->param( js_module => $in->{'js_module'} ); |
| 292 |
$template->param( js_page => $in->{'js_page'} ); |
| 293 |
$template->param( js_widgets => $in->{'js_widgets'} ); |
| 294 |
|
| 295 |
$template->param( sessionID => $sessionID ); |
273 |
$template->param( sessionID => $sessionID ); |
| 296 |
|
274 |
|
| 297 |
my ($total, $pubshelves) = C4::Context->get_shelves_userenv(); # an anonymous user has no 'barshelves'... |
275 |
my ($total, $pubshelves) = C4::Context->get_shelves_userenv(); # an anonymous user has no 'barshelves'... |