|
Lines 299-304
sub get_template_and_user {
Link Here
|
| 299 |
} |
299 |
} |
| 300 |
|
300 |
|
| 301 |
# these template parameters are set the same regardless of $in->{'type'} |
301 |
# these template parameters are set the same regardless of $in->{'type'} |
|
|
302 |
|
| 303 |
# Set the using_https variable for templates |
| 304 |
# FIXME Under Plack the CGI->https method always returns 'OFF' |
| 305 |
my $https = $in->{query}->https(); |
| 306 |
my $using_https = (defined $https and $https ne 'OFF') ? 1 : 0; |
| 307 |
|
| 302 |
$template->param( |
308 |
$template->param( |
| 303 |
"BiblioDefaultView".C4::Context->preference("BiblioDefaultView") => 1, |
309 |
"BiblioDefaultView".C4::Context->preference("BiblioDefaultView") => 1, |
| 304 |
EnhancedMessagingPreferences => C4::Context->preference('EnhancedMessagingPreferences'), |
310 |
EnhancedMessagingPreferences => C4::Context->preference('EnhancedMessagingPreferences'), |
|
Lines 317-323
sub get_template_and_user {
Link Here
|
| 317 |
singleBranchMode => C4::Context->preference("singleBranchMode"), |
323 |
singleBranchMode => C4::Context->preference("singleBranchMode"), |
| 318 |
XSLTDetailsDisplay => C4::Context->preference("XSLTDetailsDisplay"), |
324 |
XSLTDetailsDisplay => C4::Context->preference("XSLTDetailsDisplay"), |
| 319 |
XSLTResultsDisplay => C4::Context->preference("XSLTResultsDisplay"), |
325 |
XSLTResultsDisplay => C4::Context->preference("XSLTResultsDisplay"), |
| 320 |
using_https => $in->{'query'}->https() ? 1 : 0, |
326 |
using_https => $using_https, |
| 321 |
noItemTypeImages => C4::Context->preference("noItemTypeImages"), |
327 |
noItemTypeImages => C4::Context->preference("noItemTypeImages"), |
| 322 |
marcflavour => C4::Context->preference("marcflavour"), |
328 |
marcflavour => C4::Context->preference("marcflavour"), |
| 323 |
persona => C4::Context->preference("persona"), |
329 |
persona => C4::Context->preference("persona"), |
| 324 |
- |
|
|