From 5d081ce3a0db38de9121c50289d1ce92c10b95a0 Mon Sep 17 00:00:00 2001 From: Arthur Suzuki Date: Mon, 23 Dec 2024 16:25:26 +0100 Subject: [PATCH] Bug 38776: new "R_COMMENTS" authorized value category for manual restrictions comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Test plan : - on a patron page, add a manual restriction and fill in a comment, that needs to be typed-in - apply patch - create a new authorized value category named "R_COMMENTS" and create a couple of values with a description - return to patron page and when adding a manual restriction, on click on the input field you would be proposed the authorized values descriptions. - also you can inspect the code and see that there is a datalist element containing the list of options. Signed-off-by: Emmanuel Bétemps --- .../prog/en/includes/patron-restrictions-tab.inc | 11 ++++++++++- .../prog/en/modules/admin/authorised_values.tt | 2 ++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-restrictions-tab.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-restrictions-tab.inc index 1cca1bad701..d7e527ee2b0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-restrictions-tab.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-restrictions-tab.inc @@ -80,7 +80,16 @@ [% END %] -
  • +
  • + + + + [% FOREACH rcomment IN AuthorisedValues.Get( 'R_COMMENTS' ) %] + + [% END %] + + +
  • 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 98966b8f28d..f67d9570427 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 @@ -545,6 +545,8 @@ > [% CASE 'RESTRICTED' %]

    Restricted status of an item

    + [% CASE 'R_COMMENTS' %] +

    Values for custom patron restriction comments to pre-fill the manual restrictions. The value in the description field should be the message text and is limited to 200 characters

    [% CASE 'ROADTYPE' %]

    Road types to be used in patron addresses

    [% CASE 'SIP_MEDIA_TYPE' %] -- 2.34.1