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">×</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>
10 <div class="modal-body">
12 <div class="col-md-2">
13 <label class="checkbox-inline">
14 <input type="checkbox" ng-model="barcode_items">[% l('Barcode Items') %]
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') %]
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') %]
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') %]
35 <div class="col-md-12"><hr/></div>
39 <div class="col-md-3">
40 <b>[% l('Library : Distribution/Stream') %]</b>
42 <dl class="dl-horizontal"><dt>[% l('Notes') %]</dt></dl>
44 <div class="col-md-1">
45 <b>[% l('Issuance') %]</b>
47 <div class="col-md-1">
48 <b>[% l('Shelving location') %]</b>
50 <div class="col-md-1">
51 <b>[% l('Call number') %]</b>
53 <div class="col-md-2">
54 <b>[% l('Circulation modifier') %]</b>
56 <div class="col-md-1">
57 <b>[% l('Barcode') %]</b>
59 <div class="col-md-1">
60 <b ng-show="!bind">[% l('Receive') %]</b>
61 <b ng-show="bind">[% l('Include') %]</b>
63 <div class="col-md-1">
64 <b>[% l('Routing List') %]</b>
69 <div class="col-md-4"></div>
70 <div class="col-md-1">
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>
78 <div class="col-md-1">
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>
86 <div class="col-md-1">
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>
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>
101 <div class="col-md-12"><hr/></div>
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>
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>
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>
128 <div class="col-md-1">
129 {{item.issuance().label()}}
131 <div class="col-md-1">
133 ng-disabled="!item._receive || bind_or_none($index)"
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>
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>
147 <div class="col-md-1">
149 ng-disabled="!item._receive || bind_or_none($index)"
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>
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') %]
164 <div class="col-md-1">
165 <input type="checkbox" ng-model="item._receive"/>
167 <div class="col-md-1">
168 <input type="checkbox" ng-disabled="!item._receive || cannot_print($index)" ng-model="item._print_routing_list"/>
174 <div class="modal-footer">
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>