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 368-373
sub get_template_and_user {
Link Here
|
368 |
IntranetmainUserblock => C4::Context->preference("IntranetmainUserblock"), |
368 |
IntranetmainUserblock => C4::Context->preference("IntranetmainUserblock"), |
369 |
LibraryName => C4::Context->preference("LibraryName"), |
369 |
LibraryName => C4::Context->preference("LibraryName"), |
370 |
LoginBranchname => (C4::Context->userenv?C4::Context->userenv->{"branchname"}:"insecure"), |
370 |
LoginBranchname => (C4::Context->userenv?C4::Context->userenv->{"branchname"}:"insecure"), |
|
|
371 |
TemplateEncoding => C4::Context->preference("TemplateEncoding"), |
371 |
advancedMARCEditor => C4::Context->preference("advancedMARCEditor"), |
372 |
advancedMARCEditor => C4::Context->preference("advancedMARCEditor"), |
372 |
canreservefromotherbranches => C4::Context->preference('canreservefromotherbranches'), |
373 |
canreservefromotherbranches => C4::Context->preference('canreservefromotherbranches'), |
373 |
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), |
374 |
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), |
Lines 381-389
sub get_template_and_user {
Link Here
|
381 |
virtualshelves => C4::Context->preference("virtualshelves"), |
382 |
virtualshelves => C4::Context->preference("virtualshelves"), |
382 |
StaffSerialIssueDisplayCount => C4::Context->preference("StaffSerialIssueDisplayCount"), |
383 |
StaffSerialIssueDisplayCount => C4::Context->preference("StaffSerialIssueDisplayCount"), |
383 |
NoZebra => C4::Context->preference('NoZebra'), |
384 |
NoZebra => C4::Context->preference('NoZebra'), |
|
|
385 |
IntranetXSLTDetailsDisplay => C4::Context->preference("IntranetXSLTDetailsDisplay"), |
386 |
IntranetXSLTResultsDisplay => C4::Context->preference("IntranetXSLTResultsDisplay"), |
384 |
); |
387 |
); |
385 |
} |
388 |
} else { |
386 |
else { |
|
|
387 |
warn "template type should be OPAC, here it is=[" . $in->{'type'} . "]" unless ( $in->{'type'} eq 'opac' ); |
389 |
warn "template type should be OPAC, here it is=[" . $in->{'type'} . "]" unless ( $in->{'type'} eq 'opac' ); |
388 |
#TODO : replace LibraryName syspref with 'system name', and remove this html processing |
390 |
#TODO : replace LibraryName syspref with 'system name', and remove this html processing |
389 |
my $LibraryNameTitle = C4::Context->preference("LibraryName"); |
391 |
my $LibraryNameTitle = C4::Context->preference("LibraryName"); |
Lines 442-447
sub get_template_and_user {
Link Here
|
442 |
OPACFinesTab => C4::Context->preference("OPACFinesTab"), |
444 |
OPACFinesTab => C4::Context->preference("OPACFinesTab"), |
443 |
OpacTopissue => C4::Context->preference("OpacTopissue"), |
445 |
OpacTopissue => C4::Context->preference("OpacTopissue"), |
444 |
RequestOnOpac => C4::Context->preference("RequestOnOpac"), |
446 |
RequestOnOpac => C4::Context->preference("RequestOnOpac"), |
|
|
447 |
TemplateEncoding => "" . C4::Context->preference("TemplateEncoding"), |
445 |
'Version' => C4::Context->preference('Version'), |
448 |
'Version' => C4::Context->preference('Version'), |
446 |
hidelostitems => C4::Context->preference("hidelostitems"), |
449 |
hidelostitems => C4::Context->preference("hidelostitems"), |
447 |
mylibraryfirst => (C4::Context->preference("SearchMyLibraryFirst") && C4::Context->userenv) ? C4::Context->userenv->{'branch'} : '', |
450 |
mylibraryfirst => (C4::Context->preference("SearchMyLibraryFirst") && C4::Context->userenv) ? C4::Context->userenv->{'branch'} : '', |