]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/staff/serials/t_batch_receive.tt2
LP#1538691: More changes to terminology
[Evergreen.git] / Open-ILS / src / templates / staff / serials / t_batch_receive.tt2
1 <form name="batch_receive_form" ng-submit="ok(items)" role="form">
2 <div class="modal-header">
3     <button type="button" class="close" ng-click="cancel()" 
4         aria-hidden="true">&times;</button>
5     <h4 ng-show="force_bind && items.length >  1" class="modal-title">{{ title || "[% l('Bind items') %]" }}</h4>
6     <h4 ng-show="force_bind && items.length <= 1" class="modal-title">{{ title || "[% l('Barcode item') %]" }}</h4>
7     <h4 ng-show="!force_bind" class="modal-title">{{ title || "[% l('Receive items') %]" }}</h4>
8 </div>
9
10 <div class="modal-body">
11   <div class="row">
12     <div class="col-md-2">
13       <label class="checkbox-inline">
14         <input type="checkbox" ng-model="barcode_items">[% l('Barcode Items') %]
15       </label>
16     </div>
17     <div class="col-md-2">
18       <label class="checkbox-inline">
19         <input type="checkbox" ng-disabled="!barcode_items" ng-model="auto_barcodes">[% l('Auto-Barcode') %]
20       </label>
21     </div>
22     <div class="col-md-2">
23       <label class="checkbox-inline">
24         <input type="checkbox" ng-disabled="" ng-model="print_routing_lists">[% l('Print routing lists') %]
25       </label>
26     </div>
27     <div class="col-md-2">
28       <label class="checkbox-inline" ng-show="items.length > 1">
29         <input type="checkbox" ng-disabled="force_bind" ng-model="bind">[% l('Bind') %]
30       </label>
31     </div>
32   </div>
33
34   <div class="row">
35     <div class="col-md-12"><hr/></div>
36   </div>
37
38   <div class="row">
39     <div class="col-md-3">
40       <b>[% l('Library : Distribution/Stream') %]</b>
41       <br/>
42       <dl class="dl-horizontal"><dt>[% l('Notes') %]</dt></dl>
43     </div>
44     <div class="col-md-1">
45       <b>[% l('Issuance') %]</b>
46     </div>
47     <div class="col-md-1">
48       <b>[% l('Shelving location') %]</b>
49     </div>
50     <div class="col-md-1">
51       <b>[% l('Call number') %]</b>
52     </div>
53     <div class="col-md-2">
54       <b>[% l('Circulation modifier') %]</b>
55     </div>
56     <div class="col-md-1">
57       <b>[% l('Barcode') %]</b>
58     </div>
59     <div class="col-md-1">
60       <b ng-show="!bind">[% l('Receive') %]</b>
61       <b ng-show="bind">[% l('Include') %]</b>
62     </div>
63     <div class="col-md-1">
64       <b>[% l('Routing List') %]</b>
65     </div>
66   </div>
67
68   <div class="row">
69     <div class="col-md-4"></div>
70     <div class="col-md-1">
71       <select
72         class="form-control"
73         ng-model="selected_copy_location"
74         ng-options="l.id as l.name for l in acpl_list | orderBy:'name'">
75         <option value="">[% l('Template default') %]</option>
76       </select>
77     </div>
78     <div class="col-md-1">
79       <select
80         class="form-control"
81         ng-model="selected_call_number"
82         ng-options="l as fullCNLabel(l) for l in acn_list | orderBy:'label_sortkey'">
83         <option value="">[% l('Default') %]</option>
84       </select>
85     </div>
86     <div class="col-md-1">
87       <select
88         class="form-control"
89         ng-model="selected_circ_mod"
90         ng-options="l.code as l.name for l in ccm_list | orderBy:'name'">
91         <option value="">[% l('Template default') %]</option>
92       </select>
93     </div>
94     <div class="col-md-4"></div>
95     <div class="col-md-1">
96       <div class="btn btn-primary" ng-click="apply_template_overrides()">[% l('Apply') %]</div>
97     </div>
98   </div>
99
100   <div class="row">
101     <div class="col-md-12"><hr/></div>
102   </div>
103
104   <div class="row" ng-repeat="item in items">
105     <div class="col-md-3">
106       {{item.stream().distribution().holding_lib().name()}}: {{item.stream().distribution().label()}}/{{item.stream().routing_label()}}
107       <dl class="dl-horizontal">
108         <div ng-repeat="note in item.stream().distribution().subscription().notes()">
109           <div ng-show="note.alert() == 't'">
110             <dt>{{note.title()}}</dt>
111             <dd>{{note.value()}}</dd>
112           </div>
113         </div>
114         <div ng-repeat="note in item.stream().distribution().notes()">
115           <div ng-show="note.alert() == 't'">
116             <dt>{{note.title()}}</dt>
117             <dd>{{note.value()}}</dd>
118           </div>
119         </div>
120         <div ng-repeat="note in item.notes()">
121           <div ng-show="note.alert() == 't'">
122             <dt>{{note.title()}}</dt>
123             <dd>{{note.value()}}</dd>
124           </div>
125         </div>
126       <dl>
127     </div>
128     <div class="col-md-1">
129       {{item.issuance().label()}}
130     </div>
131     <div class="col-md-1">
132       <select
133         ng-disabled="!item._receive || bind_or_none($index)"
134         class="form-control"
135         ng-model="item._copy_location"
136         ng-options="l.id as l.name for l in acpl_list | orderBy:'name'">
137         <option value="">[% l('Template default') %]</option>
138       </select>
139     </div>
140     <div class="col-md-1">
141       <eg-basic-combo-box eg-disabled="!item._receive || bind_or_none($index)" list="acnp_labels" selected="item._cn_prefix" placeholder="[% l('Prefix') %]"></eg-basic-combo-box>
142       <input ng-disabled="!item._receive || bind_or_none($index)" class="form-control" placeholder="[% l('Label') %]"
143              ng-required="item._receive && !bind_or_none($index)" ng-model="item._call_number" type="text"/>
144       <eg-basic-combo-box eg-disabled="!item._receive || bind_or_none($index)" list="acns_labels" selected="item._cn_suffix" placeholder="[% l('Suffix') %]"></eg-basic-combo-box>
145       <br/>
146     </div>
147     <div class="col-md-1">
148       <select
149         ng-disabled="!item._receive || bind_or_none($index)"
150         class="form-control"
151         ng-model="item._circ_mod"
152         ng-options="l.code as l.name for l in ccm_list | orderBy:'name'">
153         <option value="">[% l('Template default') %]</option>
154       </select>
155     </div>
156     <div class="col-md-2">
157       <input ng-disabled="!item._receive || bind_or_none($index) || (barcode_items && !item.stream().distribution().receive_unit_template())" class="form-control" focus-me="$first"
158              ng-model="item._barcode" type="text" id="item_barcode_{{$index}}"
159              ng-required="item._receive && !bind_or_none($index)" eg-enter="focus_next_barcode($index)"/>
160       <div class="alert alert-warning" ng-show="barcode_items && !item.stream().distribution().receive_unit_template()">
161         [% l('Receiving template not set; needed to barcode while receiving') %]
162       </div>
163     </div>
164     <div class="col-md-1">
165       <input type="checkbox" ng-model="item._receive"/>
166     </div>
167     <div class="col-md-1">
168       <input type="checkbox" ng-disabled="!item._receive || cannot_print($index)" ng-model="item._print_routing_list"/>
169     </div>
170   </div>
171
172 </div>
173
174 <div class="modal-footer">
175   <div class="row">
176     <div class="col-md-8"></div>
177     <div class="col-md-4">
178       <input type="submit" class="btn btn-primary" ng-disabled="batch_receive_form.$error.required.length" value='{{ save_label || "[% l('Save') %]" }}'></input>
179       <button class="btn btn-warning" ng-click="cancel()">[% l('Cancel') %]</button>
180     </div>
181   </div>
182 </div>
183 </form>