Bugzilla – Attachment 139617 Details for
Bug 10950
Add pronoun field to patron record
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10950: Add intranet/OPAC form fields
Bug-10950-Add-intranetOPAC-form-fields.patch (text/plain), 9.14 KB, created by
ByWater Sandboxes
on 2022-08-22 17:16:39 UTC
(
hide
)
Description:
Bug 10950: Add intranet/OPAC form fields
Filename:
MIME Type:
Creator:
ByWater Sandboxes
Created:
2022-08-22 17:16:39 UTC
Size:
9.14 KB
patch
obsolete
>From c88e1d7030312f8027766e914140fe08d22b1249 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Thu, 9 Jun 2022 16:02:42 +0000 >Subject: [PATCH] Bug 10950: Add intranet/OPAC form fields > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> > >Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org> >--- > Koha/Database/Columns.pm | 1 + > .../prog/en/includes/patronfields.inc | 1 + > .../prog/en/modules/members/memberentrygen.tt | 17 ++++++++++++++++- > .../prog/en/modules/members/members-update.tt | 1 + > .../bootstrap/en/modules/opac-memberentry.tt | 13 +++++++++++-- > 5 files changed, 30 insertions(+), 3 deletions(-) > >diff --git a/Koha/Database/Columns.pm b/Koha/Database/Columns.pm >index c1935ba1e5..a71d772b39 100644 >--- a/Koha/Database/Columns.pm >+++ b/Koha/Database/Columns.pm >@@ -66,6 +66,7 @@ sub columns { > "middle_name" => __("Middle name"), > "dateofbirth" => __("Date of birth"), > "initials" => __("Initials"), >+ "pronouns" => __("Pronouns"), > "othernames" => __("Other name"), > "sex" => __("Gender"), > "relationship" => __("Relationship"), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patronfields.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patronfields.inc >index 3d3a3cd2e7..821b7d0b7f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patronfields.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patronfields.inc >@@ -9,6 +9,7 @@ > [%- CASE 'title' -%]<span>Salutation</span> > [%- CASE 'othernames' -%]<span>Other name</span> > [%- CASE 'initials' -%]<span>Initials</span> >+ [%- CASE 'pronouns' -%]<span>Pronouns</span> > [%- CASE 'streetnumber' -%]<span>Street number</span> > [%- CASE 'streettype' -%]<span>Street type</span> > [%- CASE 'address' -%]<span>Address</span> >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 9eb5f1605a..8c2b3cada5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -266,7 +266,7 @@ legend:hover { > [% END %] > > [% IF ( step_1 ) %] >- [% UNLESS notitle && nosurname && nofirstname && nomiddle_name && nodateofbirth && noinitials && noothernames &&nosex %] >+ [% UNLESS notitle && nosurname && nofirstname && nomiddle_name && nodateofbirth && noinitials && noothernames &&nosex && nopronouns %] > <fieldset class="rows" id="memberentry_identity"> > <legend id="identity_lgd">[% IF ( patron_category.category_type == 'I' ) %]<span>Organization</span> [% ELSE %]<span>Patron</span> [% END %]<span>identity</span></legend> > <ol> >@@ -389,6 +389,21 @@ legend:hover { > [% END %] > </li> > [% END # /UNLESS noinitials %] >+ [% UNLESS nopronouns %] >+ <li> >+ [% IF ( mandatorypronouns ) %] >+ <label for="pronouns" class="required"> >+ [% ELSE %] >+ <label for="pronouns"> >+ [% END %] >+ Pronouns: >+ </label> >+ <input type="text" id="pronouns" name="pronouns" size="20" value="[% borrower_data.pronouns | html UNLESS opduplicate %]" /> >+ [% IF ( mandatorypronouns ) %] >+ <span class="required">Required</span> >+ [% END %] >+ </li> >+ [% END # /UNLESS nopronouns %] > [% END #/UNLESS ( I ) %] > [% UNLESS noothernames %] > <li> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/members-update.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/members-update.tt >index 7d3ba0b643..9da28cd486 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/members-update.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/members-update.tt >@@ -23,6 +23,7 @@ > [% CASE 'title' %]<span>Title</span> > [% CASE 'othernames' %]<span>Other names</span> > [% CASE 'initials' %]<span>Initials</span> >+[% CASE 'pronouns' %]<span>Pronouns</span> > [% CASE 'streetnumber' %]<span>Street number</span> > [% CASE 'streettype' %]<span>Street type</span> > [% CASE 'address' %]<span>Address</span> >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 dec7e2f7f6..595a60fd19 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt >@@ -193,7 +193,7 @@ > > <form method="post" action="/cgi-bin/koha/opac-memberentry.pl" id="memberentry-form" autocomplete="off"> > >- [% FOREACH field = ['streetnumber' 'streettype' 'cardnumber' 'branchcode' 'categorycode' 'title' 'surname' 'firstname' 'middle_name' 'dateofbirth' 'initials' 'othernames' 'address' 'address2' 'city' 'state' 'zipcode' 'country' 'phone' 'phonepro' 'mobile' 'email' 'emailpro' 'fax' 'B_streettype' 'B_address' 'B_address2' 'B_city' 'B_state' 'B_zipcode' 'B_country' 'B_phone' 'B_email' 'contactnote' 'altcontactsurname' 'altcontactfirstname' 'altcontactaddress1' 'altcontactaddress2' 'altcontactaddress3' 'altcontactstate' 'altcontactzipcode' 'altcontactcountry' 'altcontactphone' 'password' ] %] >+ [% FOREACH field = ['streetnumber' 'streettype' 'cardnumber' 'branchcode' 'categorycode' 'title' 'surname' 'firstname' 'middle_name' 'dateofbirth' 'initials' 'pronouns' 'othernames' 'address' 'address2' 'city' 'state' 'zipcode' 'country' 'phone' 'phonepro' 'mobile' 'email' 'emailpro' 'fax' 'B_streettype' 'B_address' 'B_address2' 'B_city' 'B_state' 'B_zipcode' 'B_country' 'B_phone' 'B_email' 'contactnote' 'altcontactsurname' 'altcontactfirstname' 'altcontactaddress1' 'altcontactaddress2' 'altcontactaddress3' 'altcontactstate' 'altcontactzipcode' 'altcontactcountry' 'altcontactphone' 'password' ] %] > [% IF mandatory.defined( field ) %] > [% SET required.$field = 'required' %] > [% END %] >@@ -300,7 +300,7 @@ > [% END # / defined 'branchcode' %] > > [%# Following on one line for translatability %] >- [% UNLESS hidden.defined('title') && hidden.defined('surname') && hidden.defined('firstname') && hidden.defined('middle_name') && hidden.defined('dateofbirth') && hidden.defined('initials') && hidden.defined('othernames') && hidden.defined('sex') %] >+ [% UNLESS hidden.defined('title') && hidden.defined('surname') && hidden.defined('firstname') && hidden.defined('middle_name') && hidden.defined('dateofbirth') && hidden.defined('initials') && hidden.definded('pronouns') && hidden.defined('othernames') && hidden.defined('sex') %] > <div class="row"> > <div class="col"> > <fieldset class="rows" id="memberentry_identity"> >@@ -371,6 +371,15 @@ > </li> > [% END %] > >+ [% UNLESS hidden.defined('pronouns') %] >+ <li> >+ <label for="borrower_pronouns" class="[% required.pronouns | html %]">Pronouns:</label> >+ >+ <input type="text" id="borrower_pronouns" name="borrower_pronouns" value="[% borrower.pronouns | html %]" class="[% required.prnouns | html %]" /> >+ <div class="required_label [% required.pronouns | html %]">Required</div> >+ </li> >+ [% END %] >+ > [% UNLESS hidden.defined('othernames') %] > <li> > <label for="borrower_othernames" class="[% required.othernames | html %]">Other names:</label> >-- >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 10950
:
135883
|
135886
|
135887
|
135890
|
135908
|
135909
|
135957
|
136037
|
136058
|
136059
|
136060
|
136061
|
136062
|
136063
|
136064
|
139606
|
139607
|
139608
|
139609
|
139610
|
139611
|
139612
|
139615
|
139616
|
139617
|
139618
|
139619
|
139620
|
139621
|
139908
|
139968
|
139983
|
139984
|
139985
|
139986
|
139987
|
139988
|
139989
|
139990
|
139991
|
141094
|
141095
|
141096
|
141097
|
141098
|
141099
|
141100
|
141101
|
141102
|
141103