Bug 27618: Don't show dropdown if PatronSelfRegistrationLibraryList only has one...
authorOwen Leonard <oleonard@myacpl.org>
Thu, 4 Feb 2021 12:20:27 +0000 (12:20 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 8 Feb 2021 16:09:34 +0000 (17:09 +0100)
commitfecb9a11fc44f9d1c8bb9be37ad532c7b2ad710a
tree8147f5ce568babe7210cc0e736be2ddeb35a8bf3
parent66bd88a6e621cdf26e81734d7985a00a322b1e06
Bug 27618: Don't show dropdown if PatronSelfRegistrationLibraryList only has one library

This patch modifies the patron entry form in the OPAC so that if there
is only one library to choose from, the input is hidden and the single
library displays as text.

To test, apply the patch and enable PatronSelfRegistration.

- Modify the PatronSelfRegistrationLibraryList system preference to
  include only one library.
- Go to the self-registratoin page in the OPAC.
- Under "Home library," you should see the library name. If you inspect
  the source you should see the library branchcode in a hidden form.
- Confirm that the form submission includes the correct library
  information.

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt