]> git.koha-community.org Git - koha.git/commit
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)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 3 Oct 2022 22:16:05 +0000 (22:16 +0000)
commit369087c7de556078a31a4371d24b4f8a77510006
treee963c8f5cbd2da6afe09fd605fec7d0cdbeccc53
parent528bb4af5390cbaa145bf7ef8c2a27e0e59e7587
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>
(cherry picked from commit 5c1db538e6c25da27484e39ae619e09779aac1c2)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-request-article.tt