@@ -, +, @@
---
.../prog/en/modules/tools/viewlog.tt | 39 ++++++++++++-------
1 file changed, 26 insertions(+), 13 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt
@@ -67,20 +67,33 @@
[% BLOCK translate_log_module %]
[% SWITCH module %]
-[% CASE 'AUTH' %]Authentication
-[% CASE 'CATALOGUING' %]Catalog
-[% CASE 'AUTHORITIES' %]Authorities
-[% CASE 'MEMBERS' %]Patrons
-[% CASE 'ACQUISITIONS' %]Acquisitions
-[% CASE 'SERIAL' %]Serials
-[% CASE 'HOLDS' %]Holds
-[% CASE 'ILL' %]Interlibrary loans
-[% CASE 'CIRCULATION' %]Circulation
-[% CASE 'LETTER' %]Letter
-[% CASE 'FINES' %]Fines
+[% CASE 'AUTH' %]Authentication[% UNLESS Koha.Preference('AuthFailureLog') || Koha.Preference('AuthScuccessLog') %] [% END %]
+[% CASE 'CATALOGUING' %]Catalog[% UNLESS Koha.Preference('CataloguingLog') %] [% END %]
+
+[% CASE 'AUTHORITIES' %]Authorities[% UNLESS Koha.Preference('AuthoritiesLog') %] [% END %]
+
+[% CASE 'MEMBERS' %]Patrons[% UNLESS Koha.Preference('BorrowersLog') %] [% END %]
+
+[% CASE 'ACQUISITIONS' %]Acquisitions
+
+[% CASE 'SERIAL' %]Serials[% UNLESS Koha.Preference('SubscriptionLog') %] [% END %]
+
+[% CASE 'HOLDS' %]Holds[% UNLESS Koha.Preference('HoldsLog') %] [% END %]
+
+[% CASE 'ILL' %]Interlibrary loans[% UNLESS Koha.Preference('IllLog') %] [% END %]
+
+[% CASE 'CIRCULATION' %]Circulation[% UNLESS Koha.Preference('IssueLog') %] [% END %]
+
+[% CASE 'LETTER' %]Letter[% UNLESS Koha.Preference('LetterLog') %] [% END %]
+
+[% CASE 'FINES' %]Fines[% UNLESS Koha.Preference('FinesLog') %] [% END %]
+
[% CASE 'SYSTEMPREFERENCE' %]System prefs
-[% CASE 'CRONJOBS' %]Cron jobs
-[% CASE 'REPORTS' %]Reports
+
+[% CASE 'CRONJOBS' %]Cron jobs[% UNLESS Koha.Preference('CronjobLog') %] [% END %]
+
+[% CASE 'REPORTS' %]Reports[% UNLESS Koha.Preference('ReportsLog') %] [% END %]
+
[% CASE %][% module | html %]
[% END %]
[% END %]
--