Bug 10834 - Add Sort 1 and Sort 2 to list of searchable patron fields
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 6 Sep 2013 16:54:40 +0000 (12:54 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 25 Dec 2013 15:57:44 +0000 (15:57 +0000)
Some libraries would like to be able to search on the sort1 and sort2
fields of patron records.

Test Plan:
1) Apply this patch
2) Add various values for sort1 and sort2 some patrons
3) Browse to members-home.pl
4) Run searches on sort1 and sort2

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc

index eb02444..ac581ee 100644 (file)
@@ -20,6 +20,8 @@
                 <option value='phone,phonepro,B_phone,altcontactphone,mobile'>Phone number</option>
                 <option value='streettype,address,address2,city,state,zipcode,country'>Street Address</option>
                 <option value='dateofbirth'>Date of birth</option>
+                <option value='sort1'>Sort field 1</option>
+                <option value='sort2'>Sort field 2</option>
             </select>
             <script type="text/javascript">
                 [% SET dateformat = Koha.Preference('dateformat') %]