Bugzilla – Attachment 136060 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), 8.88 KB, created by
Martin Renvoize (ashimema)
on 2022-06-14 08:39:15 UTC
(
hide
)
Description:
Bug 10950: Add intranet/OPAC form fields
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-06-14 08:39:15 UTC
Size:
8.88 KB
patch
obsolete
>From b64d9d1c125945e96b9b287dd30ad9a1aa2f4b63 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> >--- > 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 5fa7075de2..3686c28bf2 100644 >--- a/Koha/Database/Columns.pm >+++ b/Koha/Database/Columns.pm >@@ -65,6 +65,7 @@ sub columns { > "firstname" => __("First 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 416a5ae26c..17d28b6c33 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patronfields.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patronfields.inc >@@ -8,6 +8,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 548f8c9943..92971e97d2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -267,7 +267,7 @@ legend:hover { > [% END %] > > [% IF ( step_1 ) %] >- [% UNLESS notitle && nosurname && nofirstname && nodateofbirth && noinitials && noothernames &&nosex %] >+ [% UNLESS notitle && nosurname && nofirstname && nodateofbirth && noinitials && noothernames &&nosex && nopronouns %] > <fieldset class="rows" id="memberentry_identity"> > <legend id="identity_lgd">[% IF ( I ) %]Organization [% ELSE %]Patron [% END %]identity</legend> > <ol> >@@ -375,6 +375,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 9384c653c9..99f049836c 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 >@@ -22,6 +22,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 cd146409d4..3a18ac7db3 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' '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' '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('dateofbirth') && hidden.defined('initials') && hidden.defined('othernames') && hidden.defined('sex') %] >+ [% UNLESS hidden.defined('title') && hidden.defined('surname') && hidden.defined('firstname') && hidden.defined('dateofbirth') && hidden.defined('initials') && hidden.defined('pronouns') && hidden.defined('othernames') && hidden.defined('sex') %] > <div class="row"> > <div class="col"> > <fieldset class="rows" id="memberentry_identity"> >@@ -362,6 +362,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.20.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 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