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