From 5c1db538e6c25da27484e39ae619e09779aac1c2 Mon Sep 17 00:00:00 2001 From: David Cook Date: Thu, 11 Aug 2022 05:40:45 +0000 Subject: [PATCH] Bug 31294: Show "Required" label on mandatory fields This patch adds "Required" label on mandatory fields for Article Requests 0. Apply the patch 1. koha-plack --restart kohadev 2. Change syspref 'ArticleRequests' to 'Enable' 3. Change syspref 'ArticleRequestsMandatoryFields' to '[Select all]' 4. Go to http://localhost:8080/cgi-bin/koha/opac-search.pl?idx=&q=test&weight_search=1 5. Click "Request article" for "Gairm" 6. Note that "Title", "Author", "Volume", "Issue", "Date", "Pages", and "Chapters" all say required 7. Change syspref 'ArticleRequestsMandatoryFields' to 'Title' and 'Author' 8. Go to http://localhost:8080/cgi-bin/koha/opac-request-article.pl?biblionumber=29 9. Note that only "Title" and "Author" say required Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../opac-tmpl/bootstrap/en/modules/opac-request-article.tt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-request-article.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-request-article.tt index d11bec9609..4ba935bb8d 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-request-article.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-request-article.tt @@ -75,6 +75,7 @@ [% IF mandatory_fields.search('title') %] +
Required
[% ELSE %] @@ -85,6 +86,7 @@ [% IF mandatory_fields.search('author') %] +
Required
[% ELSE %] @@ -95,6 +97,7 @@ [% IF mandatory_fields.search('volume') %] +
Required
[% ELSE %] @@ -105,6 +108,7 @@ [% IF mandatory_fields.search('issue') %] +
Required
[% ELSE %] @@ -115,6 +119,7 @@ [% IF mandatory_fields.search('date') %] +
Required
[% ELSE %] @@ -130,6 +135,7 @@ [% IF mandatory_fields.search('pages') %] +
Required
[% ELSE %] @@ -140,6 +146,7 @@ [% IF mandatory_fields.search('chapters') %] +
Required
[% ELSE %] -- 2.39.5