From 04cb6971ed046531125089bb4affa8a57192adb0 Mon Sep 17 00:00:00 2001 From: Lari Taskula Date: Thu, 6 Mar 2025 13:33:44 +0000 Subject: [PATCH] Bug 39265: Hide library drop-down from opac-memberentry if there is only one library 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. --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt index 5e8bd3d815c..3527cbaf803 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt @@ -303,7 +303,7 @@ [% UNLESS hidden.defined('branchcode') %]
  • - [% IF libraries.count %] + [% IF libraries.count > 1 %]