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