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') %]"/>
26 <div class="col-md-6">
27 <div class="flex-row">
28 <div class="flex-cell"></div>
29 <div class="checkbox pad-horiz">
31 <input type="checkbox" ng-model="renewalArgs.sticky_date"/>
32 [% l('Specific Due Date') %]
35 <!-- FIXME: This needs a time component as well, but type="datetime"
36 is not yet supported by any browsers -->
37 <div><eg-date-input min-date="minDate" out-of-range="outOfRange"
38 ng-model="renewalArgs.due_date"></eg-date-input>
48 items-provider="gridDataProvider"
49 grid-controls="gridControls"
50 persist-key="circ.renew"
51 dateformat="{{$root.egDateAndTimeFormat}}">
54 handler="fetchLastCircPatron"
55 label="[% l('Retrieve Last Patron Who Circulated Item') %]">
58 handler="showLastFewCircs"
59 label="[% l('Show Last Few Circluations') %]">
61 <eg-grid-action divider="true"></eg-grid-action>
63 handler="showMarkDamaged"
64 label="[% l('Mark Items Damaged') %]">
67 handler="showMarkDiscard"
68 label="[% l('Mark Items Discard/Weed') %]">
70 <eg-grid-action divider="true"></eg-grid-action>
72 handler="abortTransit"
73 label="[% l('Cancel Transits') %]">
75 <eg-grid-action divider="true"></eg-grid-action>
77 handler="addCopyAlerts"
78 label="[% l('Add Item Alerts') %]">
81 handler="manageCopyAlerts"
82 label="[% l('Manage Item Alerts') %]">
86 <eg-grid-field label="[% l('Balance Owed') %]"
87 path='mbts.balance_owed' comparator="sort_money"></eg-grid-field>
89 <eg-grid-field label="[% l('Barcode') %]" path="copy_barcode">
90 <!-- FIXME: ng-if / ng-disabled not working since the contents
91 are $interpolate'd and not $compile'd.
92 I want to hide / disable the href when there is no acp ID
94 <a href="./cat/item/{{item.acp.id()}}/summary" target="_self">
99 <eg-grid-field label="[% l('Bill #') %]"
100 path='circ.id'></eg-grid-field>
102 <eg-grid-field label="[% l('CN Prefix') %]"
103 path="acn.prefix.label"></eg-grid-field>
105 <eg-grid-field label="[% l('Call Number') %]"
106 path="acn.label"></eg-grid-field>
108 <eg-grid-field label="[% l('CN Suffix') %]"
109 path="acn.suffix.label"></eg-grid-field>
111 <eg-grid-field label="[% l('Due Date') %]"
112 path='circ.due_date' datecontext="circ_lib" dateonlyinterval="duration" datatype="timestamp"></eg-grid-field>
114 <eg-grid-field label="[% l('Family Name') %]"
115 path='au.family_name'></eg-grid-field>
117 <eg-grid-field label="[% l('Location') %]"
118 path='acp.location.name'> </eg-grid-field>
120 <eg-grid-field label="[% l('Remaining Renewals') %]"
121 path='circ.renewal_remaining'></eg-grid-field>
123 <eg-grid-field label="[% l('Title') %]" path="title">
124 <a href="/eg2/staff/catalog/record/{{record.doc_id()}}">
129 <eg-grid-field label="[% l('Author') %]"
130 path="author" hidden></eg-grid-field>
132 <eg-grid-field path="circ.*" parent-idl-class="circ" hidden></eg-grid-field>
133 <eg-grid-field path="acp.*" parent-idl-class="acp" hidden></eg-grid-field>
134 <eg-grid-field path="acn.*" parent-idl-class="acn" hidden></eg-grid-field>
135 <eg-grid-field path="record.*" parent-idl-class="mvr" hidden></eg-grid-field>
136 <eg-grid-field path="mbts.*" parent-idl-class="mbts" hidden></eg-grid-field>
137 <eg-grid-field path="au.*" parent-idl-class="au" hidden></eg-grid-field>
140 <div class="flex-row pad-vert">
141 <div class="flex-cell"></div>
142 <div class="pad-horiz">
143 <button class="btn btn-default"
144 ng-click="print_receipt()">[% l('Print Receipt') %]</button>
146 <div class="checkbox">
148 <input ng-model="trim_list" type="checkbox"/>
149 [% l('Trim List (20 Rows)') %]
152 <div class="pad-horiz"></div>
153 <div class="checkbox">
155 <input ng-model="strict_barcode" type="checkbox"/>
156 [% l('Strict Barcode') %]