From 1acddd0f1b41e9e5f75b75d9d101c8b0879c00c5 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 14 Jul 2015 11:38:41 +0100 Subject: [PATCH] Bug 6756: Add info messages NOTE: Before patch "./misc/cronjobs/batch_anonymise.pl --help" had no message, and neither did the anonymizing tool in the staff client. After the patch, both had informative messages. Signed-off-by: Mark Tompsett Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt | 4 ++++ misc/cronjobs/batch_anonymise.pl | 1 + 2 files changed, 5 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt index bd505fbb29..7de765206a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt @@ -1,3 +1,4 @@ +[% USE Koha %] [% USE KohaDates %] [% INCLUDE 'doc-head-open.inc' %] Koha › Tools › Batch patron deletion/anonymization [% IF step == 2 %]› Confirm[% END %][% IF step == 3 %]› Finished[% END %] @@ -91,6 +92,9 @@
Anonymize checkout history + [% UNLESS Koha.Preference('AnonymousPatron') %] +
The AnonymousPatron system preference is not defined. You can use this feature anyway but NULL will be used to update the checkout history.
+ [% END %]


    diff --git a/misc/cronjobs/batch_anonymise.pl b/misc/cronjobs/batch_anonymise.pl index 3ce77d4bdf..45868dcba4 100755 --- a/misc/cronjobs/batch_anonymise.pl +++ b/misc/cronjobs/batch_anonymise.pl @@ -46,6 +46,7 @@ Usage: $0 --days DAYS [-h|--help] -v --verbose gives a little more information -h --help prints this help message, and exits, ignoring all other options +Note: If the system preference 'AnonymousPatron' is not defined, NULL will be used. USAGE exit $_[0]; } -- 2.39.5