Lines 456-461
sub get_template_and_user {
Link Here
|
456 |
SyndeticsSeries => C4::Context->preference("SyndeticsSeries"), |
456 |
SyndeticsSeries => C4::Context->preference("SyndeticsSeries"), |
457 |
SyndeticsCoverImageSize => C4::Context->preference("SyndeticsCoverImageSize"), |
457 |
SyndeticsCoverImageSize => C4::Context->preference("SyndeticsCoverImageSize"), |
458 |
); |
458 |
); |
|
|
459 |
|
460 |
$template->param(OpacPublic => '1') if ($template->param( 'loggedinusername') || C4::Context->preference("OpacPublic")); |
459 |
} |
461 |
} |
460 |
$template->param(listloop=>[{shelfname=>"Freelist", shelfnumber=>110}]); |
462 |
$template->param(listloop=>[{shelfname=>"Freelist", shelfnumber=>110}]); |
461 |
return ( $template, $borrowernumber, $cookie, $flags); |
463 |
return ( $template, $borrowernumber, $cookie, $flags); |
Lines 943-950
sub checkauth {
Link Here
|
943 |
TemplateEncoding => C4::Context->preference("TemplateEncoding"), |
945 |
TemplateEncoding => C4::Context->preference("TemplateEncoding"), |
944 |
IndependantBranches=> C4::Context->preference("IndependantBranches"), |
946 |
IndependantBranches=> C4::Context->preference("IndependantBranches"), |
945 |
AutoLocation => C4::Context->preference("AutoLocation"), |
947 |
AutoLocation => C4::Context->preference("AutoLocation"), |
946 |
wrongip => $info{'wrongip'} |
948 |
wrongip => $info{'wrongip'}, |
947 |
); |
949 |
); |
|
|
950 |
|
951 |
$template->param( OpacPublic => C4::Context->preference("OpacPublic")); |
948 |
$template->param( loginprompt => 1 ) unless $info{'nopermission'}; |
952 |
$template->param( loginprompt => 1 ) unless $info{'nopermission'}; |
949 |
|
953 |
|
950 |
if ($cas) { |
954 |
if ($cas) { |