Lines 306-311
sub get_template_and_user {
Link Here
|
306 |
} |
306 |
} |
307 |
|
307 |
|
308 |
# these template parameters are set the same regardless of $in->{'type'} |
308 |
# these template parameters are set the same regardless of $in->{'type'} |
|
|
309 |
|
310 |
# Set the using_https variable for templates |
311 |
# FIXME Under Plack the CGI->https method always returns 'OFF' |
312 |
my $https = $in->{query}->https(); |
313 |
my $using_https = (defined $https and $https ne 'OFF') ? 1 : 0; |
314 |
|
309 |
$template->param( |
315 |
$template->param( |
310 |
"BiblioDefaultView".C4::Context->preference("BiblioDefaultView") => 1, |
316 |
"BiblioDefaultView".C4::Context->preference("BiblioDefaultView") => 1, |
311 |
EnhancedMessagingPreferences => C4::Context->preference('EnhancedMessagingPreferences'), |
317 |
EnhancedMessagingPreferences => C4::Context->preference('EnhancedMessagingPreferences'), |
Lines 324-330
sub get_template_and_user {
Link Here
|
324 |
singleBranchMode => C4::Context->preference("singleBranchMode"), |
330 |
singleBranchMode => C4::Context->preference("singleBranchMode"), |
325 |
XSLTDetailsDisplay => C4::Context->preference("XSLTDetailsDisplay"), |
331 |
XSLTDetailsDisplay => C4::Context->preference("XSLTDetailsDisplay"), |
326 |
XSLTResultsDisplay => C4::Context->preference("XSLTResultsDisplay"), |
332 |
XSLTResultsDisplay => C4::Context->preference("XSLTResultsDisplay"), |
327 |
using_https => $in->{'query'}->https() ? 1 : 0, |
333 |
using_https => $using_https, |
328 |
noItemTypeImages => C4::Context->preference("noItemTypeImages"), |
334 |
noItemTypeImages => C4::Context->preference("noItemTypeImages"), |
329 |
marcflavour => C4::Context->preference("marcflavour"), |
335 |
marcflavour => C4::Context->preference("marcflavour"), |
330 |
persona => C4::Context->preference("persona"), |
336 |
persona => C4::Context->preference("persona"), |
331 |
- |
|
|