From 5d2bb877fbde221d9898a62959de53ba6d0de180 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 (cherry picked from commit 5c1db538e6c25da27484e39ae619e09779aac1c2) Signed-off-by: Lucas Gass (cherry picked from commit 369087c7de556078a31a4371d24b4f8a77510006) Signed-off-by: Arthur Suzuki --- .../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 88801bac4e..d96e3a7d75 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 @@ -68,6 +68,7 @@ [% IF mandatory_fields.search('title') %] +
Required
[% ELSE %] @@ -78,6 +79,7 @@ [% IF mandatory_fields.search('author') %] +
Required
[% ELSE %] @@ -88,6 +90,7 @@ [% IF mandatory_fields.search('volume') %] +
Required
[% ELSE %] @@ -98,6 +101,7 @@ [% IF mandatory_fields.search('issue') %] +
Required
[% ELSE %] @@ -108,6 +112,7 @@ [% IF mandatory_fields.search('date') %] +
Required
[% ELSE %] @@ -123,6 +128,7 @@ [% IF mandatory_fields.search('pages') %] +
Required
[% ELSE %] @@ -133,6 +139,7 @@ [% IF mandatory_fields.search('chapters') %] +
Required
[% ELSE %] -- 2.39.5