Lines 1-9
Link Here
|
1 |
[%- BLOCK patron_fields -%] |
1 |
[%- BLOCK patron_fields -%] |
2 |
[%- SWITCH name -%] |
2 |
[%- SWITCH name -%] |
3 |
[%- CASE standard -%]<span>Standard</span> |
3 |
[%- CASE 'standard' -%]<span>Standard</span> |
4 |
[%- CASE full_address -%]<span>Full address</span> |
4 |
[%- CASE 'full_address' -%]<span>Full address</span> |
5 |
[%- CASE all_emails -%]<span>All emails</span> |
5 |
[%- CASE 'all_emails' -%]<span>All emails</span> |
6 |
[%- CASE all_phones -%]<span>All phones</span> |
6 |
[%- CASE 'all_phones' -%]<span>All phones</span> |
7 |
[%- CASE 'borrowernumber' -%]<span>Borrowernumber</span> |
7 |
[%- CASE 'borrowernumber' -%]<span>Borrowernumber</span> |
8 |
[%- CASE 'cardnumber' -%]<span>Card number</span> |
8 |
[%- CASE 'cardnumber' -%]<span>Card number</span> |
9 |
[%- CASE 'surname' -%]<span>Surname</span> |
9 |
[%- CASE 'surname' -%]<span>Surname</span> |
Lines 87-96
Link Here
|
87 |
<select name="searchfieldstype" id="searchfieldstype_filter"> |
87 |
<select name="searchfieldstype" id="searchfieldstype_filter"> |
88 |
[% END %] |
88 |
[% END %] |
89 |
[% SET standard = Koha.Preference('DefaultPatronSearchFields') || 'firstname|middle_name|surname|othernames|cardnumber|userid' %] |
89 |
[% SET standard = Koha.Preference('DefaultPatronSearchFields') || 'firstname|middle_name|surname|othernames|cardnumber|userid' %] |
90 |
[% SET full_address = 'streetnumber|streettype|address|address2|city|state|zipcode|country' %] |
90 |
[%# Above is needed for adding fields from the DefaultPatronSearchFields preference to the dropdowns %] |
91 |
[% SET all_emails = 'email|emailpro|B_email' %] |
91 |
[% default_fields = [ 'standard', 'surname', 'cardnumber', 'all_emails', 'borrowernumber', 'userid', 'all_phones', 'full_address', 'dateofbirth', 'sort1', 'sort2' ] %] |
92 |
[% SET all_phones = 'phone|phonepro|B_phone|altcontactphone|mobile' %] |
|
|
93 |
[% default_fields = [ standard, 'surname', 'cardnumber', all_emails, 'borrowernumber', 'userid', all_phones, full_address, 'dateofbirth', 'sort1', 'sort2' ] %] |
94 |
[% search_options = default_fields.merge(standard.split('\|')).unique %] |
92 |
[% search_options = default_fields.merge(standard.split('\|')).unique %] |
95 |
[% FOREACH s_o IN search_options %] |
93 |
[% FOREACH s_o IN search_options %] |
96 |
[% display_name = PROCESS patron_fields name=s_o %] |
94 |
[% display_name = PROCESS patron_fields name=s_o %] |