1 <div class="row" id="patron-search-form-row">
2 <div class="col-md-11">
3 <div class="patron-search-container">
5 <form ng-submit="search(searchArgs)" id="patron-search-form"
6 class="form-horizontal patron-search-form">
7 <div class="actions-more">
8 <button class="btn btn-default" ng-click="applyShowExtras($event, true)"
9 ng-mouseover="setLastFormElement()" aria-label="[% l('Show More Fields') %]"
10 title="[% l('Show More Fields') %]" ng-show="!showExtras">
11 <span class="glyphicon glyphicon-circle-arrow-down"></span>
13 <button class="btn btn-default" ng-click="applyShowExtras($event, false)"
14 ng-mouseover="setLastFormElement()" aria-label="[% l('Show Fewer Fields') %]"
15 title="[% l('Show Fewer Fields') %]" ng-show="showExtras">
16 <span class="glyphicon glyphicon-circle-arrow-up"></span>
20 <input type="text" class="form-control"
21 aria-label="[% l('Last Name') %]"
23 ng-model="searchArgs.family_name" placeholder="[% l('Last Name') %]"/>
25 <input type="text" class="form-control"
26 aria-label="[% l('First Name') %]"
27 ng-model="searchArgs.first_given_name" placeholder="[% l('First Name') %]"/>
29 <input type="text" class="form-control"
30 aria-label="[% l('Middle Name') %]"
31 ng-model="searchArgs.second_given_name" placeholder="[% l('Middle Name') %]"/>
33 <input type="text" class="form-control" ng-model="searchArgs.name"
34 aria-label="[% l('Name Keywords') %]"
35 placeholder="[% l('Name Keywords') %]" title="[% l('Name Keywords') %]"/>
37 <input ng-show="showExtras" type="text" class="form-control" aria-label="[% l('Barcode') %]"
38 ng-model="searchArgs.card" placeholder="[% l('Barcode') %]"/>
40 <input ng-show="showExtras" type="text" class="form-control" aria-label="[% l('Alias') %]"
41 ng-model="searchArgs.alias" placeholder="[% l('Alias') %]"/>
43 <input ng-show="showExtras" type="text" class="form-control" aria-label="[% l('Username') %]"
44 ng-model="searchArgs.usrname" placeholder="[% l('Username') %]"/>
46 <input ng-show="showExtras" type="text" class="form-control" aria-label="[% l('Email') %]"
47 ng-model="searchArgs.email" placeholder="[% l('Email') %]"/>
49 <input ng-show="showExtras" type="text" class="form-control" aria-label="[% l('Identification') %]"
50 ng-model="searchArgs.ident" placeholder="[% l('Identification') %]"/>
52 <input ng-show="showExtras" type="text" class="form-control" aria-label="[% l('Phone') %]"
53 ng-model="searchArgs.phone" placeholder="[% l('Phone') %]"/>
55 <input ng-show="showExtras" type="text" class="form-control" aria-label="[% l('Street 1') %]"
56 ng-model="searchArgs.street1" placeholder="[% l('Street 1') %]"/>
58 <input ng-show="showExtras" type="text" class="form-control" aria-label="[% l('Street 2') %]"
59 ng-model="searchArgs.street2" placeholder="[% l('Street 2') %]"/>
61 <input ng-show="showExtras" type="text" class="form-control" aria-label="[% l('City') %]"
62 ng-model="searchArgs.city" placeholder="[% l('City') %]"/>
64 <input ng-show="showExtras" type="text" class="form-control" ng-model="searchArgs.state"
65 aria-label="[% l('State') %]"
66 placeholder="[% l('State') %]" title="[% l('State') %]"/>
68 <input ng-show="showExtras" type="text" class="form-control" ng-model="searchArgs.post_code"
69 aria-label="[% l('Post Code') %]"
70 placeholder="[% l('Post Code') %]" title="[% l('Post Code') %]"/>
73 <input type="text" class="form-control"
74 placeholder="[% l('Profile Group') %]"
75 ng-model="searchArgs.profile"
76 typeahead="grp as grp.name for grp in profiles | filter:$viewValue"
77 typeahead-editable="false" />
80 <div ng-show="showExtras" class="btn-group patron-search-selector" uib-dropdown>
81 <button type="button" class="btn btn-default" uib-dropdown-toggle>
82 <span style="padding-right: 5px;">{{searchArgs.profile.name() || "[% l('Profile Group') %]"}}</span>
83 <span class="caret"></span>
85 <ul class="scrollable-menu" uib-dropdown-menu>
86 <li ng-repeat="grp in profiles">
88 style="padding-left: {{pgt_depth(grp) * 10 + 5}}px"
89 ng-click="searchArgs.profile = grp">{{grp.name()}}</a>
94 <eg-org-selector ng-show="showExtras" label="[% l('Home Library') %]" org-aria="[% l('Home Library') %]"
95 selected="searchArgs.home_ou" sticky-setting="eg.circ.patron.search.ou">
98 <input ng-show="showExtras" type="text" class="form-control" aria-label="[% l('Parent/Guardian') %]"
99 ng-model="searchArgs.guardian" placeholder="[% l('Parent/Guardian') %]"/>
101 <input ng-show="showExtras" type="text" class="form-control" ng-model="searchArgs.dob_year"
102 aria-label="[% l('DOB Year') %]"
103 placeholder="[% l('DOB Year') %]" title="[% l('DOB Year') %]"/>
105 <input ng-show="showExtras" type="text" class="form-control" ng-model="searchArgs.dob_month"
106 aria-label="[% l('DOB Month') %]"
107 placeholder="[% l('DOB Month') %]" title="[% l('DOB Month') %]"/>
109 <input ng-show="showExtras" type="text" class="form-control" ng-model="searchArgs.dob_day"
110 aria-label="[% l('DOB Day') %]"
111 placeholder="[% l('DOB Day') %]" title="[% l('DOB Day') %]"/>
113 <input ng-show="showExtras" type="text" class="form-control" aria-label="[% l('Database ID') %]"
114 ng-model="searchArgs.id" placeholder="[% l('Database ID') %]"/>
115 <div ng-show="showExtras" class="checkbox">
116 <label id="includeInactive">
117 <input type="checkbox" aria-labelledby="includeInactive"
118 ng-model="searchArgs.inactive" ng-change="onSearchInactiveChanged()"/>
119 [% l('Include Inactive?') %]
123 <div ng-show="showExtras" class="actions-reset" ng-show="showExtras" ng-mouseover="setLastFormElement()">
124 <input type="reset" class="btn btn-destroy" ng-click="clearForm()"
125 aria-label="[% l('Clear Form') %]" value="[% l('Clear Form') %]"/>
127 <div class="actions-search" ng-mouseover="setLastFormElement()">
128 <input type="submit" class="btn btn-primary" value="[% l('Search') %]"
129 aria-label="[% l('Search') %]"/>