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" value="[% l('Submit') %]"/>
25 <div class="col-md-6">
26 <div class="flex-row">
27 <div class="flex-cell"></div>
28 <div class="checkbox pad-horiz">
30 <input type="checkbox" ng-model="renewalArgs.sticky_date"/>
31 [% l('Specific Due Date') %]
34 <!-- FIXME: This needs a time component as well, but type="datetime"
35 is not yet supported by any browsers -->
36 <div><eg-date-input ng-model="renewalArgs.due_date"></eg-date-input>
46 items-provider="gridDataProvider"
47 grid-controls="gridControls"
48 persist-key="circ.renew"
49 dateformat="{{$root.egDateAndTimeFormat}}">
52 handler="fetchLastCircPatron"
53 label="[% l('Retrieve Last Patron Who Circulated Item') %]">
56 handler="showLastFewCircs"
57 label="[% l('Show Last Few Circluations') %]">
59 <eg-grid-action divider="true"></eg-grid-action>
61 handler="showMarkDamaged"
62 label="[% l('Mark Items Damaged') %]">
64 <eg-grid-action divider="true"></eg-grid-action>
66 handler="abortTransit"
67 label="[% l('Cancel Transits') %]">
69 <eg-grid-action divider="true"></eg-grid-action>
71 handler="addCopyAlerts"
72 label="[% l('Add Copy Alerts') %]">
75 handler="manageCopyAlerts"
76 label="[% l('Manage Copy Alerts') %]">
80 <eg-grid-field label="[% l('Balance Owed') %]"
81 path='mbts.balance_owed' comparator="sort_money"></eg-grid-field>
83 <eg-grid-field label="[% l('Barcode') %]" path="copy_barcode">
84 <!-- FIXME: ng-if / ng-disabled not working since the contents
85 are $interpolate'd and not $compile'd.
86 I want to hide / disable the href when there is no acp ID
88 <a href="./cat/item/{{item.acp.id()}}/summary" target="_self">
93 <eg-grid-field label="[% l('Bill #') %]"
94 path='circ.id'></eg-grid-field>
96 <eg-grid-field label="[% l('CN Prefix') %]"
97 path="acn.prefix.label"></eg-grid-field>
99 <eg-grid-field label="[% l('Call Number') %]"
100 path="acn.label"></eg-grid-field>
102 <eg-grid-field label="[% l('CN Suffix') %]"
103 path="acn.suffix.label"></eg-grid-field>
105 <eg-grid-field label="[% l('Due Date') %]"
106 path='circ.due_date' datecontext="circ_lib" dateonlyinterval="duration" datatype="timestamp"></eg-grid-field>
108 <eg-grid-field label="[% l('Family Name') %]"
109 path='au.family_name'></eg-grid-field>
111 <eg-grid-field label="[% l('Location') %]"
112 path='acp.location.name'> </eg-grid-field>
114 <eg-grid-field label="[% l('Remaining Renewals') %]"
115 path='circ.renewal_remaining'></eg-grid-field>
117 <eg-grid-field label="[% l('Title') %]" path="title">
118 <a target="_self" href="[% ctx.base_path %]/staff/cat/catalog/record/{{record.doc_id()}}">
123 <eg-grid-field label="[% l('Author') %]"
124 path="author" hidden></eg-grid-field>
126 <eg-grid-field path="circ.*" parent-idl-class="circ" hidden></eg-grid-field>
127 <eg-grid-field path="acp.*" parent-idl-class="acp" hidden></eg-grid-field>
128 <eg-grid-field path="acn.*" parent-idl-class="acn" hidden></eg-grid-field>
129 <eg-grid-field path="record.*" parent-idl-class="mvr" hidden></eg-grid-field>
130 <eg-grid-field path="mbts.*" parent-idl-class="mbts" hidden></eg-grid-field>
131 <eg-grid-field path="au.*" parent-idl-class="au" hidden></eg-grid-field>
134 <div class="flex-row pad-vert">
135 <div class="flex-cell"></div>
136 <div class="pad-horiz">
137 <button class="btn btn-default"
138 ng-click="print_receipt()">[% l('Print Receipt') %]</button>
140 <div class="checkbox">
142 <input ng-model="trim_list" type="checkbox"/>
143 [% l('Trim List (20 Rows)') %]
146 <div class="pad-horiz"></div>
147 <div class="checkbox">
149 <input ng-model="strict_barcode" type="checkbox"/>
150 [% l('Strict Barcode') %]