Lines 388-403
sub get_template_and_user {
Link Here
|
388 |
} elsif (C4::Context->preference("SearchMyLibraryFirst") && C4::Context->userenv && C4::Context->userenv->{'branch'}) { |
388 |
} elsif (C4::Context->preference("SearchMyLibraryFirst") && C4::Context->userenv && C4::Context->userenv->{'branch'}) { |
389 |
$opac_name = C4::Context->userenv->{'branch'}; |
389 |
$opac_name = C4::Context->userenv->{'branch'}; |
390 |
} |
390 |
} |
391 |
my $checkstyle = C4::Context->preference("opaccolorstylesheet"); |
|
|
392 |
if ($checkstyle =~ /http/) |
393 |
{ |
394 |
$template->param( opacexternalsheet => $checkstyle); |
395 |
} else |
396 |
{ |
397 |
my $opaccolorstylesheet = C4::Context->preference("opaccolorstylesheet"); |
398 |
$template->param( opaccolorstylesheet => $opaccolorstylesheet); |
399 |
} |
400 |
$template->param( |
391 |
$template->param( |
|
|
392 |
opaccolorstylesheet => C4::Context->preference("opaccolorstylesheet"), |
401 |
AmazonContent => "" . C4::Context->preference("AmazonContent"), |
393 |
AmazonContent => "" . C4::Context->preference("AmazonContent"), |
402 |
AnonSuggestions => "" . C4::Context->preference("AnonSuggestions"), |
394 |
AnonSuggestions => "" . C4::Context->preference("AnonSuggestions"), |
403 |
AuthorisedValueImages => C4::Context->preference("AuthorisedValueImages"), |
395 |
AuthorisedValueImages => C4::Context->preference("AuthorisedValueImages"), |
Lines 441-447
sub get_template_and_user {
Link Here
|
441 |
hidelostitems => C4::Context->preference("hidelostitems"), |
433 |
hidelostitems => C4::Context->preference("hidelostitems"), |
442 |
mylibraryfirst => (C4::Context->preference("SearchMyLibraryFirst") && C4::Context->userenv) ? C4::Context->userenv->{'branch'} : '', |
434 |
mylibraryfirst => (C4::Context->preference("SearchMyLibraryFirst") && C4::Context->userenv) ? C4::Context->userenv->{'branch'} : '', |
443 |
opaclayoutstylesheet => "" . C4::Context->preference("opaclayoutstylesheet"), |
435 |
opaclayoutstylesheet => "" . C4::Context->preference("opaclayoutstylesheet"), |
444 |
opacstylesheet => "" . C4::Context->preference("opacstylesheet"), |
|
|
445 |
opacbookbag => "" . C4::Context->preference("opacbookbag"), |
436 |
opacbookbag => "" . C4::Context->preference("opacbookbag"), |
446 |
opaccredits => "" . C4::Context->preference("opaccredits"), |
437 |
opaccredits => "" . C4::Context->preference("opaccredits"), |
447 |
OpacFavicon => C4::Context->preference("OpacFavicon"), |
438 |
OpacFavicon => C4::Context->preference("OpacFavicon"), |
Lines 946-964
sub checkauth {
Link Here
|
946 |
} |
937 |
} |
947 |
|
938 |
|
948 |
my $template_name = ( $type eq 'opac' ) ? 'opac-auth.tmpl' : 'auth.tmpl'; |
939 |
my $template_name = ( $type eq 'opac' ) ? 'opac-auth.tmpl' : 'auth.tmpl'; |
949 |
my $template = C4::Templates::gettemplate( $template_name, $type, $query ); |
940 |
my $template = C4::Templates::gettemplate($template_name, $type, $query ); |
950 |
$template->param(branchloop => \@branch_loop,); |
|
|
951 |
my $checkstyle = C4::Context->preference("opaccolorstylesheet"); |
952 |
if ($checkstyle =~ /\//) |
953 |
{ |
954 |
$template->param( opacexternalsheet => $checkstyle); |
955 |
} else |
956 |
{ |
957 |
my $opaccolorstylesheet = C4::Context->preference("opaccolorstylesheet"); |
958 |
$template->param( opaccolorstylesheet => $opaccolorstylesheet); |
959 |
} |
960 |
$template->param( |
941 |
$template->param( |
961 |
login => 1, |
942 |
branchloop => \@branch_loop, |
|
|
943 |
opaccolorstylesheet => C4::Context->preference("opaccolorstylesheet"), |
944 |
opaclayoutstylesheet => C4::Context->preference("opaclayoutstylesheet"), |
945 |
login => 1, |
962 |
INPUTS => \@inputs, |
946 |
INPUTS => \@inputs, |
963 |
casAuthentication => C4::Context->preference("casAuthentication"), |
947 |
casAuthentication => C4::Context->preference("casAuthentication"), |
964 |
suggestion => C4::Context->preference("suggestion"), |
948 |
suggestion => C4::Context->preference("suggestion"), |
Lines 972-978
sub checkauth {
Link Here
|
972 |
OpacFavicon => C4::Context->preference("OpacFavicon"), |
956 |
OpacFavicon => C4::Context->preference("OpacFavicon"), |
973 |
opacreadinghistory => C4::Context->preference("opacreadinghistory"), |
957 |
opacreadinghistory => C4::Context->preference("opacreadinghistory"), |
974 |
opacsmallimage => C4::Context->preference("opacsmallimage"), |
958 |
opacsmallimage => C4::Context->preference("opacsmallimage"), |
975 |
opaclayoutstylesheet => C4::Context->preference("opaclayoutstylesheet"), |
|
|
976 |
opaclanguagesdisplay => C4::Context->preference("opaclanguagesdisplay"), |
959 |
opaclanguagesdisplay => C4::Context->preference("opaclanguagesdisplay"), |
977 |
opacuserjs => C4::Context->preference("opacuserjs"), |
960 |
opacuserjs => C4::Context->preference("opacuserjs"), |
978 |
opacbookbag => "" . C4::Context->preference("opacbookbag"), |
961 |
opacbookbag => "" . C4::Context->preference("opacbookbag"), |
Lines 983-989
sub checkauth {
Link Here
|
983 |
opacheader => C4::Context->preference("opacheader"), |
966 |
opacheader => C4::Context->preference("opacheader"), |
984 |
TagsEnabled => C4::Context->preference("TagsEnabled"), |
967 |
TagsEnabled => C4::Context->preference("TagsEnabled"), |
985 |
OPACUserCSS => C4::Context->preference("OPACUserCSS"), |
968 |
OPACUserCSS => C4::Context->preference("OPACUserCSS"), |
986 |
opacstylesheet => C4::Context->preference("opacstylesheet"), |
|
|
987 |
intranetcolorstylesheet => |
969 |
intranetcolorstylesheet => |
988 |
C4::Context->preference("intranetcolorstylesheet"), |
970 |
C4::Context->preference("intranetcolorstylesheet"), |
989 |
intranetstylesheet => C4::Context->preference("intranetstylesheet"), |
971 |
intranetstylesheet => C4::Context->preference("intranetstylesheet"), |