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> Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org> Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
e2f7db2c2b
commit
eeb8cc42dd
5 changed files with 30 additions and 3 deletions
|
@ -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"),
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -267,7 +267,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>
|
||||
|
@ -390,6 +390,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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue