Bugzilla – Attachment 190838 Details for
Bug 19838
Add HTML customization for adding text to self-registration form
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19838: (follow-up) Adapting to additional contents
Bug-19838-follow-up-Adapting-to-additional-content.patch (text/plain), 4.11 KB, created by
Owen Leonard
on 2026-01-02 16:24:33 UTC
(
hide
)
Description:
Bug 19838: (follow-up) Adapting to additional contents
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2026-01-02 16:24:33 UTC
Size:
4.11 KB
patch
obsolete
>From 15d66a8d586b21fd0a2e873ee8494dda74b10dae Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 2 Jan 2026 11:09:43 -0500 >Subject: [PATCH] Bug 19838: (follow-up) Adapting to additional contents > >Also fixing enabling/disabling of library input >--- > Koha/AdditionalContents.pm | 2 +- > .../en/includes/html-customization-help.inc | 2 ++ > .../en/modules/tools/additional-contents.tt | 20 +++++++------------ > 3 files changed, 10 insertions(+), 14 deletions(-) > >diff --git a/Koha/AdditionalContents.pm b/Koha/AdditionalContents.pm >index 98a1b162194..775fb28fc07 100644 >--- a/Koha/AdditionalContents.pm >+++ b/Koha/AdditionalContents.pm >@@ -170,7 +170,7 @@ sub get_html_customizations_options { > 'OpacMaintenanceNotice', 'OPACResultsSidebar', 'OpacSuppressionMessage', 'SCOMainUserBlock', > 'SelfCheckInMainUserBlock', 'SelfCheckHelpMessage', 'CatalogConcernHelp', 'CatalogConcernTemplate', > 'CookieConsentBar', 'CookieConsentPopup', 'PatronSelfRegistrationAdditionalInstructions', >- 'ILLModuleCopyrightClearance' >+ 'ILLModuleCopyrightClearance', 'SelfRegistrationInstructions' > ]; > } > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/html-customization-help.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/html-customization-help.inc >index 13730322962..eb5ba203d64 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/html-customization-help.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/html-customization-help.inc >@@ -60,6 +60,8 @@ > > <div id="SelfCheckInMainUserBlock_notes" class="hint customization_note"> Show this content on the self check-in screen. </div> > >+<div id="SelfRegistrationInstructions_notes" class="hint customization_note"> Show this content above the OPAC self registration form. This cannot be added on a per-library basis, only for "All libraries." </div> >+ > <div id="StaffAcquisitionsHome_notes" class="hint customization_note"> Show this content on the acquisitions home page in the staff interface. </div> > > <div id="StaffAuthoritiesHome_notes" class="hint customization_note"> Show this content on the authorities home page in the staff interface. </div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt >index 8565762f7f2..492f143d3e3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt >@@ -689,15 +689,14 @@ > $(".customization_note").hide(); > $( "#" + location + "_notes" ).show(); > } >- function checkLang() { >- if ( $('#lang').val().includes('SelfRegistrationInstructions_') ) { >- $('#branch option[value=""]').prop('selected' , true); >- $('#branch').prop('disabled' , true) >+ function checkLocation( location ) { >+ if ( location == "SelfRegistrationInstructions") { >+ $('#branchcode').val("").prop('disabled' , true) > } else { >- $('#branch').prop('disabled' , false) >+ $('#branchcode').prop('disabled' , false) > } > } >- checkLang(); >+ checkLocation( $("#location").val() ); > $(document).ready(function() { > [% IF category == 'news' %] > $("#add_additional_content").validate({ >@@ -728,17 +727,12 @@ > > $("#location").on("change", function(){ > showLocationNotes( $(this).val() ); >- }); >+ checkLocation( $(this).val() ); >+ }).select2({ width: '50%' }); > > $("#submit_form").on("click",function(){ > $("#add_additional_content").submit(); > }); >- >- $("#location").select2({ width: '50%' }); >- >- $('#lang').change( function() { >- checkLang(); >- }); > }); > </script> > [% END %] >-- >2.39.5
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 19838
:
116618
|
190837
|
190838
|
190857
|
190858