From 95fff37db888ce73a20f0506d5158fb57bcfe1c0 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Fri, 1 Jul 2016 18:27:03 -0300 Subject: [PATCH] Bug 16829: Add 'interface' to the log viewer This patch introduces the 'interface' filter to the log viewer. To test: - Apply the patch - Open the log viewer => SUCCESS: As default, 'All' interfaces are chosen. OPAC, Intranet and SIP are presented - Do a lot of log searches, verify that the interface column shows what is expected. => SUCCESS: The chosen 'interfaces' are kept when rendering results. Sponsored-by: NEKLS Signed-off-by: Nicole C Engard Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- .../prog/en/modules/tools/viewlog.tt | 30 +++++++++++++++++++ tools/viewlog.pl | 7 +++-- 2 files changed, 35 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt index 472d87c6c3..e6e2bdc761 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt @@ -50,6 +50,16 @@ [% END %] [% END %] +[% BLOCK translate_log_interface %] +[% SWITCH interface %] +[% CASE 'INTRANET' %]Intranet +[% CASE 'OPAC' %]OPAC +[% CASE 'SIP' %]SIP +[% CASE 'COMMANDLINE' %]Command-line +[% CASE %][% interface %] +[% END %] +[% END %] +