From c188ad4d576a245e4c41c40f5c2916591af6729a Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 14 Jul 2015 11:38:41 +0100 Subject: [PATCH] [PASSED QA] 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 --- koha-tmpl/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 bd505fb..7de7652 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 3ce77d4..45868dc 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]; } -- 1.9.1