From 674438016c0fae72c151c3d9e2e6d414cafb26c6 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: Mason James --- .../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 48a58c61ca..45228b5b44 100755 --- a/misc/cronjobs/batch_anonymise.pl +++ b/misc/cronjobs/batch_anonymise.pl @@ -45,6 +45,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