Lines 130-137
Output.pm module.
Link Here
|
130 |
=cut |
130 |
=cut |
131 |
|
131 |
|
132 |
my $SEARCH_HISTORY_INSERT_SQL =<<EOQ; |
132 |
my $SEARCH_HISTORY_INSERT_SQL =<<EOQ; |
133 |
INSERT INTO search_history(userid, sessionid, query_desc, query_cgi, total, time ) |
133 |
INSERT INTO search_history(userid, sessionid, query_desc, query_cgi, limit_desc, limit_cgi, total, time ) |
134 |
VALUES ( ?, ?, ?, ?, ?, FROM_UNIXTIME(?)) |
134 |
VALUES ( ?, ?, ?, ?, ?, ?, ?, FROM_UNIXTIME(?)) |
135 |
EOQ |
135 |
EOQ |
136 |
sub get_template_and_user { |
136 |
sub get_template_and_user { |
137 |
my $in = shift; |
137 |
my $in = shift; |
Lines 369-374
sub get_template_and_user {
Link Here
|
369 |
IntranetmainUserblock => C4::Context->preference("IntranetmainUserblock"), |
369 |
IntranetmainUserblock => C4::Context->preference("IntranetmainUserblock"), |
370 |
LibraryName => C4::Context->preference("LibraryName"), |
370 |
LibraryName => C4::Context->preference("LibraryName"), |
371 |
LoginBranchname => (C4::Context->userenv?C4::Context->userenv->{"branchname"}:"insecure"), |
371 |
LoginBranchname => (C4::Context->userenv?C4::Context->userenv->{"branchname"}:"insecure"), |
|
|
372 |
TemplateEncoding => C4::Context->preference("TemplateEncoding"), |
372 |
advancedMARCEditor => C4::Context->preference("advancedMARCEditor"), |
373 |
advancedMARCEditor => C4::Context->preference("advancedMARCEditor"), |
373 |
canreservefromotherbranches => C4::Context->preference('canreservefromotherbranches'), |
374 |
canreservefromotherbranches => C4::Context->preference('canreservefromotherbranches'), |
374 |
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), |
375 |
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), |
Lines 382-390
sub get_template_and_user {
Link Here
|
382 |
virtualshelves => C4::Context->preference("virtualshelves"), |
383 |
virtualshelves => C4::Context->preference("virtualshelves"), |
383 |
StaffSerialIssueDisplayCount => C4::Context->preference("StaffSerialIssueDisplayCount"), |
384 |
StaffSerialIssueDisplayCount => C4::Context->preference("StaffSerialIssueDisplayCount"), |
384 |
NoZebra => C4::Context->preference('NoZebra'), |
385 |
NoZebra => C4::Context->preference('NoZebra'), |
|
|
386 |
IntranetXSLTDetailsDisplay => C4::Context->preference("IntranetXSLTDetailsDisplay"), |
387 |
IntranetXSLTResultsDisplay => C4::Context->preference("IntranetXSLTResultsDisplay"), |
385 |
); |
388 |
); |
386 |
} |
389 |
} else { |
387 |
else { |
|
|
388 |
warn "template type should be OPAC, here it is=[" . $in->{'type'} . "]" unless ( $in->{'type'} eq 'opac' ); |
390 |
warn "template type should be OPAC, here it is=[" . $in->{'type'} . "]" unless ( $in->{'type'} eq 'opac' ); |
389 |
#TODO : replace LibraryName syspref with 'system name', and remove this html processing |
391 |
#TODO : replace LibraryName syspref with 'system name', and remove this html processing |
390 |
my $LibraryNameTitle = C4::Context->preference("LibraryName"); |
392 |
my $LibraryNameTitle = C4::Context->preference("LibraryName"); |
Lines 443-448
sub get_template_and_user {
Link Here
|
443 |
OPACFinesTab => C4::Context->preference("OPACFinesTab"), |
445 |
OPACFinesTab => C4::Context->preference("OPACFinesTab"), |
444 |
OpacTopissue => C4::Context->preference("OpacTopissue"), |
446 |
OpacTopissue => C4::Context->preference("OpacTopissue"), |
445 |
RequestOnOpac => C4::Context->preference("RequestOnOpac"), |
447 |
RequestOnOpac => C4::Context->preference("RequestOnOpac"), |
|
|
448 |
TemplateEncoding => "" . C4::Context->preference("TemplateEncoding"), |
446 |
'Version' => C4::Context->preference('Version'), |
449 |
'Version' => C4::Context->preference('Version'), |
447 |
hidelostitems => C4::Context->preference("hidelostitems"), |
450 |
hidelostitems => C4::Context->preference("hidelostitems"), |
448 |
mylibraryfirst => (C4::Context->preference("SearchMyLibraryFirst") && C4::Context->userenv) ? C4::Context->userenv->{'branch'} : '', |
451 |
mylibraryfirst => (C4::Context->preference("SearchMyLibraryFirst") && C4::Context->userenv) ? C4::Context->userenv->{'branch'} : '', |