1 <!-- item renewal form / list -->
3 <div class="container-fluid" style="text-align:center">
4 <div class="alert alert-info alert-less-pad strong-text-2">
10 <div class="col-md-6">
11 <form ng-submit="renew(renewalArgs)" role="form" class="form-inline">
12 <div class="input-group">
14 <label class="input-group-addon"
15 for="patron-renewal-barcode" >[% l('Barcode') %]</label>
17 <input focus-me="focusBarcode" class="form-control"
18 ng-model="renewalArgs.copy_barcode"
19 id="patron-renewal-barcode" type="text"/>
21 <input class="btn btn-default" type="submit"
22 ng-disabled="outOfRange" value="[% l('Submit') %]"/>
25 <div class="checkbox">
27 <input ng-model="strict_barcode" type="checkbox"
28 ng-change="onStrictBarcodeChange()"/>
29 [% l('Strict Barcode') %]
33 <div class="col-md-6">
34 <div class="flex-row">
35 <div class="flex-cell"></div>
36 <div class="checkbox pad-horiz">
38 <input type="checkbox" ng-model="renewalArgs.sticky_date"/>
39 [% l('Specific Due Date') %]
42 <!-- FIXME: This needs a time component as well, but type="datetime"
43 is not yet supported by any browsers -->
44 <div><eg-date-input min-date="minDate" out-of-range="outOfRange"
45 ng-model="renewalArgs.due_date"></eg-date-input>
55 items-provider="gridDataProvider"
56 grid-controls="gridControls"
57 persist-key="circ.renew"
58 dateformat="{{$root.egDateAndTimeFormat}}">
61 handler="fetchLastCircPatron"
62 label="[% l('Retrieve Last Patron Who Circulated Item') %]">
65 handler="showLastFewCircs"
66 label="[% l('Show Last Few Circluations') %]">
68 <eg-grid-action divider="true"></eg-grid-action>
70 handler="showMarkDamaged"
71 label="[% l('Mark Items Damaged') %]">
74 handler="showMarkDiscard"
75 label="[% l('Mark Items Discard/Weed') %]">
77 <eg-grid-action divider="true"></eg-grid-action>
79 handler="abortTransit"
80 label="[% l('Cancel Transits') %]">
82 <eg-grid-action divider="true"></eg-grid-action>
84 handler="addCopyAlerts"
85 label="[% l('Add Item Alerts') %]">
88 handler="manageCopyAlerts"
89 label="[% l('Manage Item Alerts') %]">
93 <eg-grid-field label="[% l('Balance Owed') %]"
94 path='mbts.balance_owed' comparator="sort_money"></eg-grid-field>
96 <eg-grid-field label="[% l('Barcode') %]" path="copy_barcode">
97 <!-- FIXME: ng-if / ng-disabled not working since the contents
98 are $interpolate'd and not $compile'd.
99 I want to hide / disable the href when there is no acp ID
101 <a href="./cat/item/{{item.acp.id()}}/summary" target="_self">
102 {{item.copy_barcode}}
106 <eg-grid-field label="[% l('Bill #') %]"
107 path='circ.id'></eg-grid-field>
109 <eg-grid-field label="[% l('CN Prefix') %]"
110 path="acn.prefix.label"></eg-grid-field>
112 <eg-grid-field label="[% l('Call Number') %]"
113 path="acn.label"></eg-grid-field>
115 <eg-grid-field label="[% l('CN Suffix') %]"
116 path="acn.suffix.label"></eg-grid-field>
118 <eg-grid-field label="[% l('Due Date') %]"
119 path='circ.due_date' datecontext="circ_lib" dateonlyinterval="duration" datatype="timestamp"></eg-grid-field>
121 <eg-grid-field label="[% l('Family Name') %]"
122 path='au.family_name'></eg-grid-field>
124 <eg-grid-field label="[% l('Location') %]"
125 path='acp.location.name'> </eg-grid-field>
127 <eg-grid-field label="[% l('Remaining Renewals') %]"
128 path='circ.renewal_remaining'></eg-grid-field>
130 <eg-grid-field label="[% l('Title') %]" path="title">
131 <a href="/eg2/staff/catalog/record/{{record.doc_id()}}">
136 <eg-grid-field label="[% l('Author') %]"
137 path="author" hidden></eg-grid-field>
139 <eg-grid-field path="circ.*" parent-idl-class="circ" hidden></eg-grid-field>
140 <eg-grid-field path="acp.*" parent-idl-class="acp" hidden></eg-grid-field>
141 <eg-grid-field path="acn.*" parent-idl-class="acn" hidden></eg-grid-field>
142 <eg-grid-field path="record.*" parent-idl-class="mvr" hidden></eg-grid-field>
143 <eg-grid-field path="mbts.*" parent-idl-class="mbts" hidden></eg-grid-field>
144 <eg-grid-field path="au.*" parent-idl-class="au" hidden></eg-grid-field>
147 <div class="flex-row pad-vert">
148 <div class="flex-cell"></div>
149 <div class="pad-horiz">
150 <button class="btn btn-default"
151 ng-click="print_receipt()">[% l('Print Receipt') %]</button>
153 <div class="checkbox">
155 <input ng-model="trim_list" type="checkbox"/>
156 [% l('Trim List (20 Rows)') %]
159 <div class="pad-horiz"></div>