From 566e22ff51c26231bef86ebb6024cfc53e774dd6 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 --- .../intranet-tmpl/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 d5f616b..c5a22a8 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 %] +