Lines 87-98
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 |
[% standard.replace('|', ',') %] |
90 |
[% SET full_address = 'streetnumber|streettype|address|address2|city|state|zipcode|country' %] |
91 |
[% SET full_address = 'streetnumber,streettype,address,address2,city,state,zipcode,country' %] |
91 |
[% SET all_emails = 'email|emailpro|B_email' %] |
92 |
[% SET all_emails = 'email,emailpro,B_email' %] |
92 |
[% SET all_phones = 'phone|phonepro|B_phone|altcontactphone|mobile' %] |
93 |
[% SET all_phones = 'phone,phonepro,B_phone,altcontactphone,mobile' %] |
|
|
94 |
[% default_fields = [ standard, 'surname', 'cardnumber', all_emails, 'borrowernumber', 'userid', all_phones, full_address, 'dateofbirth', 'sort1', 'sort2' ] %] |
93 |
[% default_fields = [ standard, 'surname', 'cardnumber', all_emails, 'borrowernumber', 'userid', all_phones, full_address, 'dateofbirth', 'sort1', 'sort2' ] %] |
95 |
[% search_options = default_fields.merge(standard.split(',')).unique %] |
94 |
[% search_options = default_fields.merge(standard.split('\|')).unique %] |
96 |
[% FOREACH s_o IN search_options %] |
95 |
[% FOREACH s_o IN search_options %] |
97 |
[% display_name = PROCESS patron_fields name=s_o %] |
96 |
[% display_name = PROCESS patron_fields name=s_o %] |
98 |
[% NEXT IF !display_name %] |
97 |
[% NEXT IF !display_name %] |
99 |
- |
|
|