From df016f5f89c975f90ee969681f469d8b9835d183 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Mon, 10 Jun 2013 08:43:22 -0400 Subject: [PATCH] Bug 8190: Followup - Add html embedded logs to OPAC Signed-off-by: Marcel de Rooy --- C4/Auth.pm | 2 +- koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc | 3 ++- koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-open.inc | 6 ++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 901d549..17ebdd6 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -370,6 +370,7 @@ sub get_template_and_user { noItemTypeImages => C4::Context->preference("noItemTypeImages"), marcflavour => C4::Context->preference("marcflavour"), persona => C4::Context->preference("persona"), + Logger => C4::Context->logger(), ); if ( $in->{'type'} eq "intranet" ) { $template->param( @@ -402,7 +403,6 @@ sub get_template_and_user { AllowMultipleCovers => C4::Context->preference('AllowMultipleCovers'), EnableBorrowerFiles => C4::Context->preference('EnableBorrowerFiles'), UseKohaPlugins => C4::Context->preference('UseKohaPlugins'), - UseCourseReserves => C4::Context->preference("UseCourseReserves"), LogToHtmlComments => C4::Context->preference('LogToHtmlComments'), Logger => C4::Context->logger(), ); diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc index 9c1bb1c..db9386b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc @@ -1,8 +1,9 @@ +[% USE Koha %] [% IF ( bidi ) %][% ELSE %][% END %] -[%- IF LogToHtmlComments %] +[%- IF Koha.Preference('LogToHtmlComments') %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-open.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-open.inc index b288c18..14d4fd0 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-open.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-open.inc @@ -1,5 +1,11 @@ +[% USE Koha %] [% IF ( bidi ) %][% ELSE %][% END %] +[%- IF Koha.Preference('LogToHtmlComments') %] + +[% END %] -- 2.1.0