Bug 31294: Show "Required" label on mandatory fields
authorDavid Cook <dcook@prosentient.com.au>
Thu, 11 Aug 2022 05:40:45 +0000 (05:40 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 16 Aug 2022 17:32:21 +0000 (14:32 -0300)
commit5c1db538e6c25da27484e39ae619e09779aac1c2
tree9f52ad186cd56c6a6061fce591d2e3c5339f427a
parent21e4995a3163de70a4744f47f015c98614ed03f9
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 <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-request-article.tt