Bugzilla – Attachment 160086 Details for
Bug 35510
Non-patron guarantor missing from CollapseFieldsPatronAddForm options
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35510: Non-patron guarantor missing from CollapseFieldsPatronAddForm options
Bug-35510-Non-patron-guarantor-missing-from-Collap.patch (text/plain), 3.59 KB, created by
David Nind
on 2023-12-19 22:27:59 UTC
(
hide
)
Description:
Bug 35510: Non-patron guarantor missing from CollapseFieldsPatronAddForm options
Filename:
MIME Type:
Creator:
David Nind
Created:
2023-12-19 22:27:59 UTC
Size:
3.59 KB
patch
obsolete
>From a9cbbb09717f3965f2e3dba96b0aa4000848a0e8 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 6 Dec 2023 17:25:39 +0000 >Subject: [PATCH] Bug 35510: Non-patron guarantor missing from > CollapseFieldsPatronAddForm options > >This patch adds a missing option to the CollapseFieldsPatronAddForm >system preference so that the "Non-patron guarantor" section can be >collapsed by default. > >To test, apply the patch and go to Administration -> System preferences. > >- Search for CollapseFieldsPatronAddForm. >- In the dropdown of options you should see an entry for "Non-patron > guarantor." >- Click "Select all" and save your changes. >- Go to Patrons -> New patron and choose a patron category which can > have a guarantor (for example J - Juvenile) >- The patron entry page should load with all sections collapsed, > including the Non-patron guarantor section. >- Uncheck all options in the CollapseFieldsPatronAddForm > preference and return to the patron entry form. All sections should > now appear. > >Signed-off-by: David Nind <david@davidnind.com> >--- > .../prog/en/modules/admin/preferences/patrons.pref | 3 ++- > .../intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 4 ++++ > 2 files changed, 6 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref >index c2043b85dd..3fb2fcecfb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref >@@ -299,7 +299,8 @@ Patrons: > - pref: CollapseFieldsPatronAddForm > multiple: > identity: "Patron identity" >- guarantor: "Guarantor information" >+ guarantor: "Patron guarantor" >+ nonpatron_guarantor: "Non-patron guarantor" > primary_address: "Main address" > primary_contact: "Contact information" > alt_address: "Alternate address" >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >index e1fbc89016..22018b3fe7 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -204,6 +204,7 @@ legend:hover { > [% SWITCH field %] > [% CASE 'identity' %] <span>Patron identity</span> | > [% CASE 'guarantor' %] <span>Guarantor information</span> | >+ [% CASE 'nonpatron_guarantor' %] <span>Non-patron guarantor</span> | > [% CASE 'primary_address' %] <span>Main address</span> | > [% CASE 'primary_contact' %] <span>Contact information</span> | > [% CASE 'alt_address' %] <span>Alternate address</span> | >@@ -1700,6 +1701,9 @@ legend:hover { > $("#memberentry_guarantor").find('legend').nextAll().toggle(); > $("#guarantor_template").toggle(); > [% END %] >+ [% IF fieldstohide.match('nonpatron_guarantor') %] >+ $("#non_patron_guarantor").find('legend').nextAll().toggle(); >+ [% END %] > [% END %] > [% IF fieldstohide.match('primary_address') %] > $("#memberentry_mainaddress").find('legend').nextAll().toggle(); >-- >2.30.2
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 35510
:
159627
|
160034
|
160086
|
161028