Bugzilla – Attachment 34842 Details for
Bug 8190
Add a logging module to Koha
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8190: Followup - Add html embedded logs to OPAC
Bug-8190-Followup---Add-html-embedded-logs-to-OPAC.patch (text/plain), 3.01 KB, created by
Jonathan Druart
on 2014-12-31 12:05:08 UTC
(
hide
)
Description:
Bug 8190: Followup - Add html embedded logs to OPAC
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-12-31 12:05:08 UTC
Size:
3.01 KB
patch
obsolete
>From df016f5f89c975f90ee969681f469d8b9835d183 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >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 <m.de.rooy@rijksmuseum.nl> >--- > 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 %] > <!DOCTYPE html> > <!-- TEMPLATE FILE: [% template.name.split('/').last %] --> > [% IF ( bidi ) %]<html lang="[% lang %]" dir="[% bidi %]">[% ELSE %]<html lang="[% lang %]">[% END %] > <head> >-[%- IF LogToHtmlComments %] >+[%- IF Koha.Preference('LogToHtmlComments') %] > <!-- LOG MESSAGES > [% FOREACH message IN Logger.get_messages() %][% message %][% END %] > --> >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 %] > <!DOCTYPE html> > <!-- TEMPLATE FILE: [% template.name.split('/').last %] --> > [% IF ( bidi ) %]<html lang="[% lang %]" dir="[% bidi %]" class="no-js">[% ELSE %]<html lang="[% lang %]" class="no-js">[% END %] > <head> >+[%- IF Koha.Preference('LogToHtmlComments') %] >+<!-- LOG MESSAGES >+[% FOREACH message IN Logger.get_messages() %][% message %][% END %] >+--> >+[% END %] > <title> >-- >2.1.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8190
:
9921
|
10996
|
12257
|
12264
|
12265
|
12270
|
12282
|
12283
|
12284
|
12287
|
12743
|
12744
|
12745
|
12746
|
13739
|
13740
|
13762
|
13763
|
13925
|
13926
|
14294
|
14296
|
14318
|
14319
|
14320
|
14321
|
14324
|
14388
|
14703
|
14704
|
14705
|
16426
|
16427
|
16428
|
16429
|
16430
|
18799
|
18800
|
18801
|
18802
|
18803
|
18819
|
18820
|
18870
|
18871
|
18872
|
18873
|
18874
|
18875
|
18876
|
18877
|
18880
|
18881
|
18882
|
18883
|
18884
|
18886
|
18887
|
18888
|
18890
|
34837
|
34838
|
34839
|
34840
|
34841
| 34842 |
34843
|
34844
|
34845