|
Lines 328-334
sub get_template_and_user {
Link Here
|
| 328 |
noItemTypeImages => C4::Context->preference("noItemTypeImages"), |
328 |
noItemTypeImages => C4::Context->preference("noItemTypeImages"), |
| 329 |
marcflavour => C4::Context->preference("marcflavour"), |
329 |
marcflavour => C4::Context->preference("marcflavour"), |
| 330 |
persona => C4::Context->preference("persona"), |
330 |
persona => C4::Context->preference("persona"), |
| 331 |
UseCourseReserves => C4::Context->preference("UseCourseReserves"), |
|
|
| 332 |
); |
331 |
); |
| 333 |
if ( $in->{'type'} eq "intranet" ) { |
332 |
if ( $in->{'type'} eq "intranet" ) { |
| 334 |
$template->param( |
333 |
$template->param( |
|
Lines 361-366
sub get_template_and_user {
Link Here
|
| 361 |
AllowMultipleCovers => C4::Context->preference('AllowMultipleCovers'), |
360 |
AllowMultipleCovers => C4::Context->preference('AllowMultipleCovers'), |
| 362 |
EnableBorrowerFiles => C4::Context->preference('EnableBorrowerFiles'), |
361 |
EnableBorrowerFiles => C4::Context->preference('EnableBorrowerFiles'), |
| 363 |
UseKohaPlugins => C4::Context->preference('UseKohaPlugins'), |
362 |
UseKohaPlugins => C4::Context->preference('UseKohaPlugins'), |
|
|
363 |
UseCourseReserves => C4::Context->preference("UseCourseReserves"), |
| 364 |
); |
364 |
); |
| 365 |
} |
365 |
} |
| 366 |
else { |
366 |
else { |
|
Lines 400-406
sub get_template_and_user {
Link Here
|
| 400 |
OpacHighlightedWords => C4::Context->preference("OpacHighlightedWords"), |
400 |
OpacHighlightedWords => C4::Context->preference("OpacHighlightedWords"), |
| 401 |
OPACItemHolds => C4::Context->preference("OPACItemHolds"), |
401 |
OPACItemHolds => C4::Context->preference("OPACItemHolds"), |
| 402 |
OPACShelfBrowser => "". C4::Context->preference("OPACShelfBrowser"), |
402 |
OPACShelfBrowser => "". C4::Context->preference("OPACShelfBrowser"), |
| 403 |
OpacShowRecentComments => C4::Context->preference("OpacShowRecentComments"), |
|
|
| 404 |
OPACURLOpenInNewWindow => "" . C4::Context->preference("OPACURLOpenInNewWindow"), |
403 |
OPACURLOpenInNewWindow => "" . C4::Context->preference("OPACURLOpenInNewWindow"), |
| 405 |
OPACUserCSS => "". C4::Context->preference("OPACUserCSS"), |
404 |
OPACUserCSS => "". C4::Context->preference("OPACUserCSS"), |
| 406 |
OPACMobileUserCSS => "". C4::Context->preference("OPACMobileUserCSS"), |
405 |
OPACMobileUserCSS => "". C4::Context->preference("OPACMobileUserCSS"), |
|
Lines 440-452
sub get_template_and_user {
Link Here
|
| 440 |
opacsmallimage => "" . C4::Context->preference("opacsmallimage"), |
439 |
opacsmallimage => "" . C4::Context->preference("opacsmallimage"), |
| 441 |
opacuserjs => C4::Context->preference("opacuserjs"), |
440 |
opacuserjs => C4::Context->preference("opacuserjs"), |
| 442 |
opacuserlogin => "" . C4::Context->preference("opacuserlogin"), |
441 |
opacuserlogin => "" . C4::Context->preference("opacuserlogin"), |
| 443 |
reviewson => C4::Context->preference("reviewson"), |
|
|
| 444 |
ShowReviewer => C4::Context->preference("ShowReviewer"), |
442 |
ShowReviewer => C4::Context->preference("ShowReviewer"), |
| 445 |
ShowReviewerPhoto => C4::Context->preference("ShowReviewerPhoto"), |
443 |
ShowReviewerPhoto => C4::Context->preference("ShowReviewerPhoto"), |
| 446 |
suggestion => "" . C4::Context->preference("suggestion"), |
444 |
suggestion => "" . C4::Context->preference("suggestion"), |
| 447 |
virtualshelves => "" . C4::Context->preference("virtualshelves"), |
445 |
virtualshelves => "" . C4::Context->preference("virtualshelves"), |
| 448 |
OPACSerialIssueDisplayCount => C4::Context->preference("OPACSerialIssueDisplayCount"), |
446 |
OPACSerialIssueDisplayCount => C4::Context->preference("OPACSerialIssueDisplayCount"), |
| 449 |
OpacAddMastheadLibraryPulldown => C4::Context->preference("OpacAddMastheadLibraryPulldown"), |
|
|
| 450 |
OPACXSLTDetailsDisplay => C4::Context->preference("OPACXSLTDetailsDisplay"), |
447 |
OPACXSLTDetailsDisplay => C4::Context->preference("OPACXSLTDetailsDisplay"), |
| 451 |
OPACXSLTResultsDisplay => C4::Context->preference("OPACXSLTResultsDisplay"), |
448 |
OPACXSLTResultsDisplay => C4::Context->preference("OPACXSLTResultsDisplay"), |
| 452 |
SyndeticsClientCode => C4::Context->preference("SyndeticsClientCode"), |
449 |
SyndeticsClientCode => C4::Context->preference("SyndeticsClientCode"), |
|
Lines 982-987
sub checkauth {
Link Here
|
| 982 |
push @inputs, { name => $name, value => $value }; |
979 |
push @inputs, { name => $name, value => $value }; |
| 983 |
} |
980 |
} |
| 984 |
|
981 |
|
|
|
982 |
my $LibraryNameTitle = C4::Context->preference("LibraryName"); |
| 983 |
$LibraryNameTitle =~ s/<(?:\/?)(?:br|p)\s*(?:\/?)>/ /sgi; |
| 984 |
$LibraryNameTitle =~ s/<(?:[^<>'"]|'(?:[^']*)'|"(?:[^"]*)")*>//sg; |
| 985 |
|
| 985 |
my $template_name = ( $type eq 'opac' ) ? 'opac-auth.tmpl' : 'auth.tmpl'; |
986 |
my $template_name = ( $type eq 'opac' ) ? 'opac-auth.tmpl' : 'auth.tmpl'; |
| 986 |
my $template = C4::Templates::gettemplate($template_name, $type, $query ); |
987 |
my $template = C4::Templates::gettemplate($template_name, $type, $query ); |
| 987 |
$template->param( |
988 |
$template->param( |
|
Lines 993-999
sub checkauth {
Link Here
|
| 993 |
casAuthentication => C4::Context->preference("casAuthentication"), |
994 |
casAuthentication => C4::Context->preference("casAuthentication"), |
| 994 |
suggestion => C4::Context->preference("suggestion"), |
995 |
suggestion => C4::Context->preference("suggestion"), |
| 995 |
virtualshelves => C4::Context->preference("virtualshelves"), |
996 |
virtualshelves => C4::Context->preference("virtualshelves"), |
| 996 |
LibraryName => C4::Context->preference("LibraryName"), |
997 |
LibraryName => "" . C4::Context->preference("LibraryName"), |
|
|
998 |
LibraryNameTitle => "" . $LibraryNameTitle, |
| 997 |
opacuserlogin => C4::Context->preference("opacuserlogin"), |
999 |
opacuserlogin => C4::Context->preference("opacuserlogin"), |
| 998 |
OpacNav => C4::Context->preference("OpacNav"), |
1000 |
OpacNav => C4::Context->preference("OpacNav"), |
| 999 |
OpacNavRight => C4::Context->preference("OpacNavRight"), |
1001 |
OpacNavRight => C4::Context->preference("OpacNavRight"), |