]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2
LP2045292 Color contrast for AngularJS patron bills
[working/Evergreen.git] / Open-ILS / src / templates / staff / cat / item / t_summary_pane.tt2
1 <div class="">
2
3   <div class="label label-danger" ng-show="copy.deleted() == 't'">
4     [% l('This item has been marked as Deleted.') %]
5   </div>
6
7   <div class="flex-row" ng-if="recordId == -1">
8     <div class="flex-cell" ng-if="copy.dummy_title()">[% l('Precat Title') %]</div>
9     <div class="flex-cell well" ng-if="copy.dummy_title()">{{copy.dummy_title()}}</div>
10     
11     <div class="flex-cell" ng-if="copy.dummy_author()">[% l('Precat Author') %]</div>
12     <div class="flex-cell well" ng-if="copy.dummy_author()">{{copy.dummy_author()}}</div>
13   </div>
14
15   <div class="flex-row">
16     <div class="flex-cell">[% l('Barcode') %]</div>
17     <div class="flex-cell well">{{copy.barcode()}}</div>
18
19     <div class="flex-cell">[% l('Circ Library') %]</div>
20     <div class="flex-cell well">{{copy.circ_lib().shortname()}}</div>
21
22     <div class="flex-cell">[% l('Call # Prefix') %]</div>
23     <div class="flex-cell well">
24       {{copy.call_number().prefix().label()}}
25     </div>
26
27     <div class="flex-cell">[% l('Status') %]</div>
28     <div
29       class="flex-cell well"
30       title="[% l('Holdable') %]: {{copy.status().holdable() | boolText}} / [% l('OPAC Visible') %]: {{copy.status().opac_visible() | boolText}}"
31     >{{copy.status().name()}}</div>
32   </div>
33
34   <div class="flex-row">
35     <div class="flex-cell">[% l('Price') %]</div>
36     <div class="flex-cell well">{{copy.price()}}</div>
37
38     <div class="flex-cell">[% l('Owning Library') %]</div>
39     <div class="flex-cell well">{{copy.call_number().owning_lib().shortname()}}</div>
40
41     <div class="flex-cell">[% l('Call #') %]</div>
42     <div class="flex-cell well">{{copy.call_number().label()}}</div>
43
44     <div class="flex-cell">[% l('Due Date') %]</div>
45     <div class="flex-cell well">{{circ.due_date() | egDueDate:egDateAndTimeFormat:circ.circ_lib():circ.duration()}}</div>
46   </div>
47
48   <div class="flex-row">
49         <div class="flex-cell">[% l('Acquisition Cost') %]</div>
50     <div class="flex-cell well">{{copy.cost()}}</div>
51
52     <div class="flex-cell">[% l('Shelving Location') %]</div>
53     <div
54       class="flex-cell well"
55       title="[% l('Holdable') %]: {{copy.location().holdable() | boolText}} / [% l('OPAC Visible') %]: {{copy.location().opac_visible() | boolText}}"
56     >{{copy.location().name()}}</div>
57
58     <div class="flex-cell">[% l('Call # Suffix') %]</div>
59     <div class="flex-cell well">
60       {{copy.call_number().suffix().label()}}
61     </div>
62
63     <div class="flex-cell">[% l('Checkout Date') %]</div>
64     <div class="flex-cell well">{{circ_summary.start_time() | date:egDateAndTimeFormat}}</div>
65   </div>
66
67   <div class="flex-row">
68     <div class="flex-cell">[% l('ISBN') %]</div>
69     <div class="flex-cell well">
70       {{copy.call_number().record().simple_record().isbn() || copy.dummy_isbn()}}
71     </div>
72
73     <div class="flex-cell">[% l('Loan Duration') %]</div>
74     <div class="flex-cell well">
75       <div ng-if="copy.loan_duration() == 1">[% l('Short') %]</div>
76       <div ng-if="copy.loan_duration() == 2">[% l('Normal') %]</div>
77       <div ng-if="copy.loan_duration() == 3">[% l('Long') %]</div>
78     </div>
79
80     <div class="flex-cell">[% l('Renewal Type') %]</div>
81     <div class="flex-cell well">
82       <div ng-if="circ.opac_renewal() == 't'">[% l('OPAC') %]</div>
83       <div ng-if="circ.desk_renewal() == 't'">[% l('Desk') %]</div>
84       <div ng-if="circ.phone_renewal() == 't'">[% l('Phone') %]</div>
85       <div ng-if="circ.auto_renewal() == 't'">[% l('Automatic') %]</div>
86     </div>
87
88     <div class="flex-cell">[% l('Checkout Workstation') %]</div>
89     <div class="flex-cell well">{{circ_summary.checkout_workstation()}}</div>
90   </div>
91
92   <div class="flex-row">
93     <div class="flex-cell">[% l('Date Created') %]</div>
94     <div class="flex-cell well">{{copy.create_date() | date:egDateAndTimeFormat}}</div>
95     <div class="flex-cell">[% l('Fine Level') %]</div>
96     <div class="flex-cell well">
97       <div ng-if="copy.fine_level() == 1">[% l('Low') %]</div>
98       <div ng-if="copy.fine_level() == 2">[% l('Normal') %]</div>
99       <div ng-if="copy.fine_level() == 3">[% l('High') %]</div>
100     </div>
101
102     <div class="flex-cell">
103       [% l('Total Circs') %]
104       <script type="text/ng-template" id="circ-popover.html">
105         <div ng-repeat="circ_count in circ_counts | orderBy:'year'">
106           {{(circ_count.year === -1) ? "[% l('Legacy/Not Dated') %]" : circ_count.year}}: {{circ_count.count}}
107         </div>
108       </script>
109       <button type="button"
110         class="no-border glyphicon glyphicon-info-sign"
111         uib-popover-template="'circ-popover.html'"
112         popover-title="[% l('Annual Circ History') %]"
113         popover-trigger="'outsideClick'"
114         popover-placement="{{circ_popover_placement}}"
115         aria-label="[% l('Annual Circ History') %]"
116         ng-if="circ_counts && circ_counts.length">
117       </button>
118     </div>
119     <div class="flex-cell well">{{total_circs}}</div>
120
121     <div class="flex-cell">[% l('Duration Rule') %]</div>
122     <div class="flex-cell well">{{circ.duration_rule().name()}}</div>
123   </div>
124
125   <div class="flex-row">
126     <div class="flex-cell">[% l('Date Active') %]</div>
127     <div class="flex-cell well">{{copy.active_date() | date:egDateAndTimeFormat}}</div>
128
129     <div class="flex-cell">[% l('Reference') %]</div>
130     <div class="flex-cell well">{{copy.ref()}}</div>
131
132     <div class="flex-cell">[% l('Total Circs - Current Year') %]</div>
133     <div class="flex-cell well">{{total_circs_this_year}}</div>
134
135     <div class="flex-cell">[% l('Recurring Fine Rule') %]</div>
136     <div class="flex-cell well">{{circ.recurring_fine_rule().name()}}</div>
137   </div>
138
139   <div class="flex-row">
140     <div class="flex-cell">[% l('Status Changed') %]</div>
141     <div class="flex-cell well">{{copy.status_changed_time() | date:egDateAndTimeFormat}}</div>
142
143     <div class="flex-cell">[% l('OPAC Visible') %]</div>
144     <div class="flex-cell well">{{copy.opac_visible()}}</div>
145
146     <div class="flex-cell">[% l('Total Circs - Prev Year') %]</div>
147     <div class="flex-cell well">{{total_circs_prev_year}}</div>
148
149     <div class="flex-cell">[% l('Max Fine Rule') %]</div>
150     <div class="flex-cell well">{{circ.max_fine_rule().name()}}</div>
151   </div>
152
153   <div class="flex-row">
154     <div class="flex-cell">[% l('Item ID') %]</div>
155     <div class="flex-cell well">{{copy.id()}}</div>
156
157     <div class="flex-cell">[% l('Holdable') %]</div>
158     <div class="flex-cell well">{{copy.holdable()}}</div>
159
160     <div class="flex-cell">[% l('In-House Uses') %]</div>
161     <div class="flex-cell well">{{copy._inHouseUseCount}}</div>
162
163     <div class="flex-cell">[% l('Checkin Time') %]</div>
164     <div class="flex-cell well">
165       {{circ.checkin_time() || 
166         circ_summary.last_checkin_time() | date:egDateAndTimeFormat}}
167     </div>
168   </div>
169
170   <div class="flex-row">
171     <div class="flex-cell">[% l('Circulate') %]</div>
172     <div class="flex-cell well">{{copy.circulate()}}</div>
173
174     <div class="flex-cell">[% l('Renewal Workstation') %]</div>
175     <div class="flex-cell well">{{circ_summary.last_renewal_workstation()}}</div>
176
177     <div class="flex-cell">[% l('Remaining Renewals') %]</div>
178     <div class="flex-cell well">{{circ.renewal_remaining()}}</div>
179
180     <div class="flex-cell">[% l('Checkin Scan Time') %]</div>
181     <div class="flex-cell well">
182       {{circ.checkin_scan_time() || 
183         circ_summary.last_checkin_scan_time() | date:egDateAndTimeFormat}}
184     </div>
185   </div>
186
187   <div class="flex-row">
188     <div class="flex-cell">[% l('Floating') %]</div>
189     <div class="flex-cell well">{{copy.floating().name()}}</div>
190
191     <div class="flex-cell">[% l('Circ Modifier') %]</div>
192     <div class="flex-cell well">{{copy.circ_modifier().name()}}</div>
193
194     <div class="flex-cell">[% l('Age-based Hold Protection') %]</div>
195     <div class="flex-cell well">{{copy.age_protect().name()}}</div>
196
197     <div class="flex-cell">[% l('Checkin Workstation') %]</div>
198     <div class="flex-cell well">
199       {{circ.checkin_workstation().name() || 
200         circ_summary.last_checkin_workstation().name()}}
201     </div>
202   </div>
203
204   <div class="flex-row">
205     <div class="flex-cell">[% l('Inventory Date') %]</div>
206     <div class="flex-cell well">{{copy.latest_inventory().inventory_date() | date:egDateAndTimeFormat}}</div>
207
208     <div class="flex-cell">[% l('Inventory Workstation') %]</div>
209     <div class="flex-cell well">{{copy.latest_inventory().inventory_workstation().name()}}</div>
210
211     <div class="flex-cell"></div>
212     <div class="flex-cell"></div>
213     <div class="flex-cell"></div>
214     <div class="flex-cell"></div>
215   </div>
216
217   <div class="flex-row">
218     <div class="flex-cell">[% l('Item Alerts') %]</div>
219     <div class="flex-cell" id="item-status-alert-msg">
220       <button class="btn btn-default" ng-click="addCopyAlerts(copy.id())" >[% l('Add') %]</button>
221       <button class="btn btn-default" ng-disabled="!copy_alert_count" ng-click="manageCopyAlerts(copy.id())" >[% l('Manage') %]</button>
222     </div>
223     <!-- hack to adjust positioning -->
224     <div class="flex-cell"></div>
225     <div class="flex-cell"></div>
226     <div class="flex-cell"></div>
227     <div class="flex-cell"></div>
228     <div class="flex-cell"></div>
229     <div class="flex-cell"></div>
230   </div>
231
232 </div>