Bugzilla – Attachment 179166 Details for
Bug 39265
Self registration: Hide library from the form if there is only one library
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39265: Hide library drop-down from opac-memberentry if there is only one library
Bug-39265-Hide-library-drop-down-from-opac-membere.patch (text/plain), 1.84 KB, created by
Jonathan Druart
on 2025-03-11 13:37:23 UTC
(
hide
)
Description:
Bug 39265: Hide library drop-down from opac-memberentry if there is only one library
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-03-11 13:37:23 UTC
Size:
1.84 KB
patch
obsolete
>From ce91814c3791ae85276148ee332313d9c129849e Mon Sep 17 00:00:00 2001 >From: Lari Taskula <lari.taskula@hypernova.fi> >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. > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > 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') %] > <li> >- [% IF libraries.count %] >+ [% IF libraries.count > 1 %] > <label for="borrower_branchcode" class="[% required.branchcode | html %]">Home library:</label> > > <select id="borrower_branchcode" name="borrower_branchcode" class="[% required.branchcode | html %]"> >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39265
:
179017
|
179018
| 179166