LP#1691563: Prevent "Use of freed value in iteration" error during adjust to zero
[working/Evergreen.git] / Open-ILS / src / templates / staff / cat / item / t_circs_pane.tt2
1 <div class="col-md-6" ng-show="!prev_circ_summary">
2   <div class="alert alert-info">
3     [% l('No Previous Circ Group') %]
4   </div>
5 </div>
6 <div class="col-md-6" ng-show="prev_circ_summary">
7   <div class="flex-row">
8     <div class="flex-cell flex-2 strong-text-2">
9       [% l('Previous Circ Group') %]
10     </div>
11   </div>
12
13   <div class="flex-row">
14     <div class="flex-cell">[% l('Patron') %]</div>
15     <div class="flex-cell well">
16       <a href="./circ/patron/{{prev_circ_usr.id()}}/checkout" 
17         ng-if="prev_circ_usr" target="_self">
18         [% l('[_1], [_2] [_3] : [_4]', 
19         '{{prev_circ_usr.family_name()}}'
20         '{{prev_circ_usr.first_given_name()}}'
21         '{{prev_circ_usr.second_given_name()}}'
22         '{{prev_circ_usr.card().barcode()}}') %]
23       </a>
24       <span ng-show="!prev_circ_usr">
25         [% l('<Aged Circulation>') | html %]
26     </span>
27     </div>
28   </div>
29
30   <div class="flex-row">
31     <div class="flex-cell">[% l('Total Circs') %]</div>
32     <div class="flex-cell well">
33       {{prev_circ_summary.num_circs()}}
34     </div>
35   </div>
36
37   <div class="flex-row">
38     <div class="flex-cell">[% l('Checkout Date') %]</div>
39     <div class="flex-cell well">
40       {{prev_circ_summary.start_time() | date:egDateAndTimeFormat}}
41     </div>
42   </div>
43
44   <div class="flex-row">
45     <div class="flex-cell">[% l('Checkout Workstation') %]</div>
46     <div class="flex-cell well">
47       {{prev_circ_summary.checkout_workstation()}}
48     </div>
49   </div>
50
51   <div class="flex-row">
52     <div class="flex-cell">[% l('Last Renewed On') %]</div>
53     <div class="flex-cell well">
54       {{prev_circ_summary.last_renewal_time() | date:egDateAndTimeFormat}}
55     </div>
56   </div>
57
58   <div class="flex-row">
59     <div class="flex-cell">[% l('Renewal Workstation') %]</div>
60     <div class="flex-cell well">
61       {{prev_circ_summary.last_renewal_workstation()}}
62     </div>
63   </div>
64
65   <div class="flex-row">
66     <div class="flex-cell">[% l('Stop Fines Reason') %]</div>
67     <div class="flex-cell well">
68       {{prev_circ_summary.last_stop_fines()}}
69     </div>
70   </div>
71   <div class="flex-row">
72     <div class="flex-cell">[% l('Stop Fines Time') %]</div>
73     <div class="flex-cell well">
74       {{prev_circ_summary.last_stop_fines_time() | date:egDateAndTimeFormat}}
75     </div>
76   </div>
77   <div class="flex-row">
78     <div class="flex-cell">[% l('Checkin Time') %]</div>
79     <div class="flex-cell well">
80       {{prev_circ_summary.last_checkin_time() | date:egDateAndTimeFormat}}
81     </div>
82   </div>
83   <div class="flex-row">
84     <div class="flex-cell">[% l('Checkin Scan Time') %]</div>
85     <div class="flex-cell well">
86       {{prev_circ_summary.last_checkin_scan_time() | date:egDateAndTimeFormat}}
87     </div>
88   </div>
89   <div class="flex-row">
90     <div class="flex-cell">[% l('Checkin Workstation') %]</div>
91     <div class="flex-cell well">
92       {{prev_circ_summary.last_checkin_workstation()}}
93     </div>
94   </div>
95 </div>
96
97 <div class="col-md-6" ng-show="!circ">
98   <div class="alert alert-info">
99     [% l('No Recent Circ Group') %]
100   </div>
101 </div>
102 <div class="col-md-6" ng-show="circ">
103   <div class="flex-row">
104     <div class="flex-cell flex-2 strong-text-2">
105       [% l('Most Recent Circ Group') %]
106     </div>
107   </div>
108   <div class="flex-row">
109     <div class="flex-cell">[% l('Patron') %]</div>
110     <div class="flex-cell well">
111       <a href="./circ/patron/{{circ.usr().id()}}/checkout" 
112         ng-if="circ" target="_self">
113         [% l('[_1], [_2] [_3] : [_4]', 
114           '{{circ.usr().family_name()}}'
115           '{{circ.usr().first_given_name()}}'
116           '{{circ.usr().second_given_name()}}'
117           '{{circ.usr().card().barcode()}}') %]
118       </a>
119     </div>
120   </div>
121
122   <div class="flex-row">
123     <div class="flex-cell">[% l('Total Circs') %]</div>
124     <div class="flex-cell well">
125       {{circ_summary.num_circs()}}
126     </div>
127   </div>
128
129   <div class="flex-row">
130     <div class="flex-cell">[% l('Checkout Date') %]</div>
131     <div class="flex-cell well">
132       {{circ.xact_start() | date:egDateAndTimeFormat}}
133     </div>
134   </div>
135
136   <div class="flex-row">
137     <div class="flex-cell">[% l('Checkout Workstation') %]</div>
138     <div class="flex-cell well">
139       {{circ.workstation().name()}}
140     </div>
141   </div>
142
143   <div class="flex-row">
144     <div class="flex-cell">[% l('Last Renewed On') %]</div>
145     <div class="flex-cell well">
146       {{circ_summary.last_renewal_time() | date:egDateAndTimeFormat}}
147     </div>
148   </div>
149
150   <div class="flex-row">
151     <div class="flex-cell">[% l('Renewal Workstation') %]</div>
152     <div class="flex-cell well">
153       {{circ_summary.last_renewal_workstation()}}
154     </div>
155   </div>
156
157   <div class="flex-row">
158     <div class="flex-cell">[% l('Stop Fines Reason') %]</div>
159     <div class="flex-cell well">
160       {{circ.stop_fines()}}
161     </div>
162   </div>
163
164   <div class="flex-row">
165     <div class="flex-cell">[% l('Stop Fines Time') %]</div>
166     <div class="flex-cell well">
167       {{circ.stop_fines_time() | date:egDateAndTimeFormat}}
168     </div>
169   </div>
170
171   <div class="flex-row">
172     <div class="flex-cell">[% l('Checkin Time') %]</div>
173     <div class="flex-cell well">
174       {{circ.checkin_time() | date:egDateAndTimeFormat}}
175     </div>
176   </div>
177
178   <div class="flex-row">
179     <div class="flex-cell">[% l('Checkin Scan Time') %]</div>
180     <div class="flex-cell well">
181       {{circ.checkin_scan_time() | date:egDateAndTimeFormat}}
182     </div>
183   </div>
184
185   <div class="flex-row">
186     <div class="flex-cell">[% l('Checkin Workstation') %]</div>
187     <div class="flex-cell well">
188       {{circ.checkin_workstation.name()}}
189     </div>
190   </div>
191 </div>
192