From 210dc34f774eb35b5e4cc736bc30656a61aa5a46 Mon Sep 17 00:00:00 2001 From: David Roberts Date: Thu, 16 Apr 2020 08:39:36 +0000 Subject: [PATCH] Bug 24288: Add wording to authorized value interface to indicate valid code length Chnged NOTFORLOAN to NOT_LOAN This patch adds a warning that the authorized value field needs to be a single numeric character, where appropriate To test: 1) Apply the patch 2) Add a new authorised value policy in the LOST, NOTFORLOAN, DAMAGED, RESTRICTED, and WITHDRAWN categories 3) Check that there is a new warning displaying next to the Authorized value field stating "The authorized value field in the X category must be a one-digit numeric value" 4) Check that this same warning appears when modifying the same authorised values 5) Check that the warning doesn't appear in any other authorized value category. --- .../intranet-tmpl/prog/en/modules/admin/authorised_values.tt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt index 17bd962d87..9bd49fa336 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt @@ -71,6 +71,9 @@ [% IF ( action_modify ) %][% END %] + [% IF category == 'LOST' OR category == 'WITHDRAWN' OR category == 'NOT_LOAN' OR category == 'DAMAGED' OR category == 'RESTRICTED' %] + The authorized value field in the [% category %] category must be a one-digit numeric value + [% END %]
  • -- 2.17.1