Lines 6-11
Link Here
|
6 |
[% USE ItemTypes %] |
6 |
[% USE ItemTypes %] |
7 |
[% USE AuthorisedValues %] |
7 |
[% USE AuthorisedValues %] |
8 |
[% USE TablesSettings %] |
8 |
[% USE TablesSettings %] |
|
|
9 |
[% PROCESS 'i18n.inc' %] |
9 |
[% PROCESS 'member-display-address-style.inc' %] |
10 |
[% PROCESS 'member-display-address-style.inc' %] |
10 |
[% SET footerjs = 1 %] |
11 |
[% SET footerjs = 1 %] |
11 |
[% BLOCK display_bormessagepref %] |
12 |
[% BLOCK display_bormessagepref %] |
Lines 217-222
Link Here
|
217 |
</div> |
218 |
</div> |
218 |
[% END %] |
219 |
[% END %] |
219 |
|
220 |
|
|
|
221 |
<!-- Bundle has items missing --> |
222 |
[% IF missing_items %] |
223 |
<div id="bundle_missing_items" class="dialog alert"> |
224 |
<h3>Bundle had missing items</h3> |
225 |
<p>Bundle contents list updated</p> |
226 |
<p><a class="btn btn-default btn-xs" role="button" data-toggle="modal" href="#bundleContentsModal"><i class="fa fa-eye" aria-hidden="true"></i> View updated contents list</a></p> |
227 |
</div> |
228 |
[% END %] |
229 |
|
230 |
<!-- Bundle contained unexpected items --> |
231 |
[% IF unexpected_items %] |
232 |
<div id="bundle_unexpected_items" class="dialog alert"> |
233 |
<h3>Bundle had unexpected items</h3> |
234 |
<p>Please place the following items to one side</p> |
235 |
<ul> |
236 |
[% FOREACH unexpected_item IN unexpected_items %] |
237 |
<li>[% INCLUDE 'biblio-title.inc' biblio=unexpected_item.biblio %] - [% unexpected_item.barcode | html %]</li> |
238 |
[% END %] |
239 |
</ul> |
240 |
</div> |
241 |
[% END %] |
242 |
|
243 |
<!-- Item checked in outside of bundle --> |
244 |
[% IF InBundle %] |
245 |
<div id="" class="dialog alert audio-alert-warning"> |
246 |
<h3>Item belongs in bundle</h3> |
247 |
<p>This item belongs to a bundle: [% INCLUDE 'biblio-title.inc' biblio=InBundle.biblio %] - [% InBundle.barcode | html %]</p> |
248 |
<p><button class="btn btn-default btn-xs bundle_remove" role="button" data-itemnumber="[% itemnumber | uri %]" data-hostnumber="[% InBundle.itemnumber | uri %]"><i class="fa fa-minus"></i> Remove from bundle</button></p> |
249 |
</div> |
250 |
[% END %] |
220 |
|
251 |
|
221 |
[% IF ( errmsgloop ) %] |
252 |
[% IF ( errmsgloop ) %] |
222 |
<div class="dialog alert audio-alert-warning"> |
253 |
<div class="dialog alert audio-alert-warning"> |
Lines 381-386
Link Here
|
381 |
</div> |
412 |
</div> |
382 |
[% END %] |
413 |
[% END %] |
383 |
|
414 |
|
|
|
415 |
[% IF items_bundle_return_confirmation %] |
416 |
<div id="bundle-needsconfirmation-modal" class="modal fade audio-alert-action block"> |
417 |
<div class="modal-dialog modal-wide"> |
418 |
<div class="modal-content"> |
419 |
<form method="post"> |
420 |
<div class="modal-header"> |
421 |
<h3>Please confirm bundle contents</h3> |
422 |
</div> |
423 |
<div class="modal-body"> |
424 |
|
425 |
<table class="table table-condensed table-bordered" id="items-bundle-contents-table"> |
426 |
<thead> |
427 |
<tr> |
428 |
<th>[% t('Title') | html %]</th> |
429 |
<th>[% t('Author') | html %]</th> |
430 |
<th>[% t('Collection code') | html %]</th> |
431 |
<th>[% t('Item type') | html %]</th> |
432 |
<th>[% t('Callnumber') | html %]</th> |
433 |
<th>[% t('Barcode') | html %]</th> |
434 |
<th>[% t('Status') | html %]</th> |
435 |
</tr> |
436 |
</thead> |
437 |
<tbody> |
438 |
[% FOREACH bundle_item IN item.bundle_items %] |
439 |
<tr data-barcode="[% bundle_item.barcode | html %]"> |
440 |
<td>[% INCLUDE 'biblio-title.inc' biblio=bundle_item.biblio link = 1 %]</td> |
441 |
<td>[% bundle_item.biblio.author | html %]</td> |
442 |
<td>[% AuthorisedValues.GetByCode('CCODE', bundle_item.ccode) | html %]</td> |
443 |
<td>[% ItemTypes.GetDescription(bundle_item.itype) | html %]</td> |
444 |
<td>[% bundle_item.itemcallnumber | html %]</td> |
445 |
<td>[% bundle_item.barcode | html %]</td> |
446 |
<td>[% INCLUDE 'item-status.inc' item=bundle_item %]</td> |
447 |
</tr> |
448 |
[% END %] |
449 |
</tbody> |
450 |
</table> |
451 |
|
452 |
<div class="form-group"> |
453 |
<label for="verify-items-bundle-contents-barcodes">Barcodes</label> |
454 |
<textarea autocomplete="off" id="verify-items-bundle-contents-barcodes" name="verify-items-bundle-contents-barcodes" class="form-control"></textarea> |
455 |
<div class="help-block">[% t('Scan all barcodes of items found in the items bundle. If any items are missing, they will be marked as lost') | html %]</div> |
456 |
</div> |
457 |
|
458 |
</div> |
459 |
<div class="modal-footer"> |
460 |
<input type="hidden" name="barcode" value="[% item.barcode | html %]"> |
461 |
<input type="hidden" name="confirm_items_bundle_return" value="1"> |
462 |
[% FOREACH inputloo IN inputloop %] |
463 |
<input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" /> |
464 |
<input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" /> |
465 |
<input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" /> |
466 |
[% END %] |
467 |
<button type="submit" class="btn btn-default"><i class="fa fa-check"></i> [% t('Confirm checkin and mark missing items as lost') | html %]</button> |
468 |
<button type="button" data-dismiss="modal" class="btn btn-default"><i class="fa fa-close"></i> [% t('Cancel') | html %]</button> |
469 |
</div> |
470 |
</form> |
471 |
</div> |
472 |
</div> |
473 |
</div> |
474 |
[% END %] |
475 |
|
384 |
[% IF wrongbranch %] |
476 |
[% IF wrongbranch %] |
385 |
<div id="wrong-branch-modal" class="modal fade audio-alert-action block"> |
477 |
<div id="wrong-branch-modal" class="modal fade audio-alert-action block"> |
386 |
<div class="modal-dialog"> |
478 |
<div class="modal-dialog"> |
Lines 986-991
Link Here
|
986 |
</div> <!-- /.col-sm-12 --> |
1078 |
</div> <!-- /.col-sm-12 --> |
987 |
</div> <!-- /.row --> |
1079 |
</div> <!-- /.row --> |
988 |
|
1080 |
|
|
|
1081 |
[% INCLUDE 'modals/bundle_contents.inc' %] |
1082 |
|
989 |
[% MACRO jsinclude BLOCK %] |
1083 |
[% MACRO jsinclude BLOCK %] |
990 |
[% INCLUDE 'datatables.inc' %] |
1084 |
[% INCLUDE 'datatables.inc' %] |
991 |
[% INCLUDE 'columns_settings.inc' %] |
1085 |
[% INCLUDE 'columns_settings.inc' %] |
Lines 1188-1195
Link Here
|
1188 |
window.open("/cgi-bin/koha/members/printslip.pl?borrowernumber=" + borrowernumber + "&print=checkinslip", "printwindow"); |
1282 |
window.open("/cgi-bin/koha/members/printslip.pl?borrowernumber=" + borrowernumber + "&print=checkinslip", "printwindow"); |
1189 |
}); |
1283 |
}); |
1190 |
|
1284 |
|
|
|
1285 |
// item bundles |
1286 |
$('#verify-items-bundle-contents-barcodes').on('input', function (ev) { |
1287 |
const barcodes = ev.target.value.split('\n').map(function(s) { return s.trim() }); |
1288 |
$('#items-bundle-contents-table tr').each(function () { |
1289 |
const barcode = this.getAttribute('data-barcode'); |
1290 |
if (barcodes.includes(barcode)) { |
1291 |
this.classList.add('ok'); |
1292 |
} else { |
1293 |
this.classList.remove('ok'); |
1294 |
} |
1295 |
}) |
1296 |
}); |
1297 |
|
1298 |
$('.bundle_remove').on('click', function() { |
1299 |
var component_itemnumber = $(this).data('itemnumber'); |
1300 |
var host_itemnumber = $(this).data('hostnumber'); |
1301 |
var alert = $(this).closest('div'); |
1302 |
var unlink_item_url = "/api/v1/items/" + host_itemnumber + "/bundled_items/item/" + component_itemnumber; |
1303 |
$.ajax({ |
1304 |
type: "DELETE", |
1305 |
url: unlink_item_url, |
1306 |
success: function(){ |
1307 |
alert.remove(); |
1308 |
} |
1309 |
}); |
1310 |
}); |
1311 |
|
1312 |
// print modals |
1313 |
$('.modal.printable').on('shown.bs.modal', function() { |
1314 |
$('.modal-dialog', this).addClass('focused'); |
1315 |
$('body').addClass('modalprinter'); |
1316 |
|
1317 |
if ($(this).hasClass('autoprint')) { |
1318 |
window.print(); |
1319 |
} |
1320 |
}).on('hidden.bs.modal', function() { |
1321 |
$('.modal-dialog', this).removeClass('focused'); |
1322 |
$('body').removeClass('modalprinter'); |
1323 |
}); |
1324 |
|
1325 |
$('.printModal').click(function() { |
1326 |
window.print(); |
1327 |
}); |
1191 |
}); |
1328 |
}); |
1192 |
</script> |
1329 |
</script> |
|
|
1330 |
|
1193 |
[% END %] |
1331 |
[% END %] |
1194 |
|
1332 |
|
1195 |
[% INCLUDE 'intranet-bottom.inc' %] |
1333 |
[% INCLUDE 'intranet-bottom.inc' %] |
1196 |
- |
|
|