Lines 345-452
Link Here
|
345 |
[% IF bibitemloo.itemholdable %] |
345 |
[% IF bibitemloo.itemholdable %] |
346 |
<table class="copiesrow table table-bordered table-striped" id="copiesrow_[% bibitemloo.biblionumber | html %]"> |
346 |
<table class="copiesrow table table-bordered table-striped" id="copiesrow_[% bibitemloo.biblionumber | html %]"> |
347 |
<caption>Select a specific item:</caption> |
347 |
<caption>Select a specific item:</caption> |
348 |
<tr> |
348 |
<thead> |
349 |
<th>Copy number</th> |
349 |
<tr> |
350 |
[% IF ( item_level_itypes ) %] |
350 |
<th>Copy number</th> |
351 |
<th>Item type</th> |
|
|
352 |
[% END %] |
353 |
<th>Barcode</th> |
354 |
[% UNLESS ( singleBranchMode ) %] |
355 |
<th>Home library</th> |
356 |
<th>Last location</th> |
357 |
[% END %] |
358 |
[% IF ( itemdata_ccode ) %] |
359 |
<th>Collection</th> |
360 |
[% END %] |
361 |
<th>Call number</th> |
362 |
[% IF ( itemdata_enumchron ) %] |
363 |
<th>Vol info</th> |
364 |
[% END %] |
365 |
<th>Information</th> |
366 |
</tr> |
367 |
|
368 |
[% FOREACH itemLoo IN bibitemloo.itemLoop %] |
369 |
<tr class="[% itemLoo.backgroundcolor | html %]"> |
370 |
<td class="copynumber"> |
371 |
[% IF ( itemLoo.available ) %] |
372 |
<input type="radio" class="checkitem checkitem_[% bibitemloo.biblionumber | html %]" name="checkitem_[% bibitemloo.biblionumber | html %]" value="[% itemLoo.itemnumber | html %]" /> |
373 |
[% ELSE %] |
374 |
<input disabled="disabled" type="radio" aria-label="Cannot be put on hold" class="checkitem" name="checkitem" value="[% itemLoo.itemnumber | html %]" |
375 |
style="display:none;" /> |
376 |
<i class="fa fa-remove danger" aria-hidden="true" title="Cannot be put on hold"></i> |
377 |
[% END %] |
378 |
|
379 |
[% IF ( itemLoo.copynumber ) %] |
380 |
[% itemLoo.copynumber | html %] |
381 |
[% END %] |
382 |
</td> |
383 |
|
384 |
[% IF ( item_level_itypes ) %] |
351 |
[% IF ( item_level_itypes ) %] |
385 |
<td class="itype"> |
352 |
<th>Item type</th> |
386 |
[% UNLESS ( Koha.Preference('OpacNoItemTypeImages') ) %] |
|
|
387 |
[% IF ( itemLoo.imageurl ) %] |
388 |
<img src="[% itemLoo.imageurl | html %]" alt="" /> |
389 |
[% END %] |
390 |
[% END %] |
391 |
[% itemLoo.translated_description | html %] |
392 |
</td> |
393 |
[% END %] |
353 |
[% END %] |
394 |
|
354 |
<th>Barcode</th> |
395 |
<td class="barcode">[% itemLoo.barcode | html %]</td> |
|
|
396 |
[% UNLESS ( singleBranchMode ) %] |
355 |
[% UNLESS ( singleBranchMode ) %] |
397 |
<td class="homebranch">[% Branches.GetName( itemLoo.homeBranchName ) | html %]</td> |
356 |
<th>Home library</th> |
398 |
<td class="holdingbranch">[% Branches.GetName( itemLoo.holdingBranchName ) | html %]</td> |
357 |
<th>Last location</th> |
399 |
[% END %] |
358 |
[% END %] |
400 |
[% IF ( itemdata_ccode ) %] |
359 |
[% IF ( itemdata_ccode ) %] |
401 |
<td class="ccode"> [% IF ( itemLoo.ccode ) %][% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => itemLoo.ccode, opac => 1 ) | html %][% END %]</td> |
360 |
<th>Collection</th> |
402 |
[% END %] |
361 |
[% END %] |
403 |
<td class="call_no">[% itemLoo.callNumber | html %]</td> |
362 |
<th>Call number</th> |
404 |
[% IF ( itemdata_enumchron ) %] |
363 |
[% IF ( itemdata_enumchron ) %] |
405 |
<td class="vol_info">[% itemLoo.enumchron | html %]</td> |
364 |
<th>Vol info</th> |
406 |
[% END %] |
365 |
[% END %] |
407 |
<td class="information"> |
366 |
<th>Information</th> |
408 |
[% IF ( itemLoo.dateDue ) %] |
367 |
</tr> |
409 |
<span class="checkedout">Due [% itemLoo.dateDue | html %]</span> |
368 |
</thead> |
410 |
[% ELSIF ( itemLoo.transfertwhen ) %] |
369 |
<tbody> |
411 |
<span class="intransit">In transit from [% Branches.GetName( itemLoo.transfertfrom ) | html %] to [% Branches.GetName( itemLoo.transfertto ) | html %] since [% itemLoo.transfertwhen | html %]</span> |
370 |
[% FOREACH itemLoo IN bibitemloo.itemLoop %] |
412 |
[% END %] |
371 |
<tr class="[% itemLoo.backgroundcolor | html %]"> |
|
|
372 |
<td class="copynumber" data-order="[% itemLoo.copynumber | html %]"> |
373 |
[% IF ( itemLoo.available ) %] |
374 |
<input type="radio" class="checkitem checkitem_[% bibitemloo.biblionumber | html %]" name="checkitem_[% bibitemloo.biblionumber | html %]" value="[% itemLoo.itemnumber | html %]" /> |
375 |
[% ELSE %] |
376 |
<input disabled="disabled" type="radio" aria-label="Cannot be put on hold" class="checkitem" name="checkitem" value="[% itemLoo.itemnumber | html %]" |
377 |
style="display:none;" /> |
378 |
<i class="fa fa-remove danger" aria-hidden="true" title="Cannot be put on hold"></i> |
379 |
[% END %] |
380 |
|
381 |
[% IF ( itemLoo.copynumber ) %] |
382 |
[% itemLoo.copynumber | html %] |
383 |
[% END %] |
384 |
</td> |
413 |
|
385 |
|
414 |
[% IF ( itemLoo.message ) %] |
386 |
[% IF ( item_level_itypes ) %] |
415 |
<span class="lost">Unavailable (lost or missing)</span> |
387 |
<td class="itype"> |
|
|
388 |
[% UNLESS ( Koha.Preference('OpacNoItemTypeImages') ) %] |
389 |
[% IF ( itemLoo.imageurl ) %] |
390 |
<img src="[% itemLoo.imageurl | html %]" alt="" /> |
391 |
[% END %] |
392 |
[% END %] |
393 |
[% itemLoo.translated_description | html %] |
394 |
</td> |
416 |
[% END %] |
395 |
[% END %] |
417 |
|
396 |
|
418 |
[% IF ( itemLoo.notforloan ) %] |
397 |
<td class="barcode">[% itemLoo.barcode | html %]</td> |
419 |
<span class="notforloan">Not for loan ([% itemLoo.notforloanvalue | html %])</span> |
398 |
[% UNLESS ( singleBranchMode ) %] |
|
|
399 |
<td class="homebranch">[% Branches.GetName( itemLoo.homeBranchName ) | html %]</td> |
400 |
<td class="holdingbranch">[% Branches.GetName( itemLoo.holdingBranchName ) | html %]</td> |
401 |
[% END %] |
402 |
[% IF ( itemdata_ccode ) %] |
403 |
<td class="ccode"> [% IF ( itemLoo.ccode ) %][% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => itemLoo.ccode, opac => 1 ) | html %][% END %]</td> |
404 |
[% END %] |
405 |
<td class="call_no">[% itemLoo.callNumber | html %]</td> |
406 |
[% IF ( itemdata_enumchron ) %] |
407 |
<td class="vol_info">[% itemLoo.enumchron | html %]</td> |
420 |
[% END %] |
408 |
[% END %] |
|
|
409 |
<td class="information"> |
410 |
[% IF ( itemLoo.dateDue ) %] |
411 |
<span class="checkedout">Due [% itemLoo.dateDue | html %]</span> |
412 |
[% ELSIF ( itemLoo.transfertwhen ) %] |
413 |
<span class="intransit">In transit from [% Branches.GetName( itemLoo.transfertfrom ) | html %] to [% Branches.GetName( itemLoo.transfertto ) | html %] since [% itemLoo.transfertwhen | html %]</span> |
414 |
[% END %] |
421 |
|
415 |
|
422 |
[% IF ( itemLoo.reservedate ) %] |
416 |
[% IF ( itemLoo.message ) %] |
423 |
<span class="waiting"> |
417 |
<span class="lost">Unavailable (lost or missing)</span> |
424 |
[% IF ( itemLoo.waitingdate ) %] |
418 |
[% END %] |
425 |
Waiting |
419 |
|
426 |
[% ELSE %] |
420 |
[% IF ( itemLoo.notforloan ) %] |
427 |
On hold |
421 |
<span class="notforloan">Not for loan ([% itemLoo.notforloanvalue | html %])</span> |
428 |
[% END %] |
422 |
[% END %] |
429 |
for patron |
423 |
|
430 |
[% IF ( itemLoo.waitingdate ) %] |
424 |
[% IF ( itemLoo.reservedate ) %] |
431 |
at |
425 |
<span class="waiting"> |
432 |
[% ELSE %] |
426 |
[% IF ( itemLoo.waitingdate ) %] |
433 |
expected at |
427 |
Waiting |
434 |
[% END %] |
428 |
[% ELSE %] |
435 |
[% itemLoo.ExpectedAtLibrary | html %] since |
429 |
On hold |
436 |
[% IF ( itemLoo.waitingdate ) %] |
|
|
437 |
[% itemLoo.waitingdate | $KohaDates %] |
438 |
[% ELSE %] |
439 |
[% IF ( itemLoo.reservedate ) %] |
440 |
[% itemLoo.reservedate | html %] |
441 |
[% END %] |
430 |
[% END %] |
442 |
[% END %]. |
431 |
for patron |
443 |
</span> |
432 |
[% IF ( itemLoo.waitingdate ) %] |
444 |
[% ELSE %] |
433 |
at |
445 |
<span class="notonhold">Not on hold</span> |
434 |
[% ELSE %] |
446 |
[% END # / IF ( itemLoo.reservedate )%] |
435 |
expected at |
447 |
</td> |
436 |
[% END %] |
448 |
</tr> |
437 |
[% itemLoo.ExpectedAtLibrary | html %] since |
449 |
[% END # / FOREACH itemLoo IN bibitemloo.itemLoop%] |
438 |
[% IF ( itemLoo.waitingdate ) %] |
|
|
439 |
[% itemLoo.waitingdate | $KohaDates %] |
440 |
[% ELSE %] |
441 |
[% IF ( itemLoo.reservedate ) %] |
442 |
[% itemLoo.reservedate | html %] |
443 |
[% END %] |
444 |
[% END %]. |
445 |
</span> |
446 |
[% ELSE %] |
447 |
<span class="notonhold">Not on hold</span> |
448 |
[% END # / IF ( itemLoo.reservedate )%] |
449 |
</td> |
450 |
</tr> |
451 |
[% END # / FOREACH itemLoo IN bibitemloo.itemLoop%] |
452 |
</tbody> |
450 |
</table> <!-- / #copiesrow_[% bibitemloo.biblionumber | html %] --> |
453 |
</table> <!-- / #copiesrow_[% bibitemloo.biblionumber | html %] --> |
451 |
[% END # / IF ( bibitemloo.itemholdable )%] |
454 |
[% END # / IF ( bibitemloo.itemholdable )%] |
452 |
</div> <!-- / #hold-options-[% bibitemloo.biblionumber | html %] --> |
455 |
</div> <!-- / #hold-options-[% bibitemloo.biblionumber | html %] --> |
Lines 468-473
Link Here
|
468 |
[% INCLUDE 'opac-bottom.inc' %] |
471 |
[% INCLUDE 'opac-bottom.inc' %] |
469 |
[% BLOCK jsinclude %] |
472 |
[% BLOCK jsinclude %] |
470 |
[% INCLUDE 'calendar.inc' %] |
473 |
[% INCLUDE 'calendar.inc' %] |
|
|
474 |
[% INCLUDE 'datatables.inc' %] |
471 |
<script> |
475 |
<script> |
472 |
// <![CDATA[ |
476 |
// <![CDATA[ |
473 |
var MSG_NO_ITEM_SELECTED = _("Expecting a specific item selection."); |
477 |
var MSG_NO_ITEM_SELECTED = _("Expecting a specific item selection."); |
Lines 704-709
Link Here
|
704 |
[% END %] |
708 |
[% END %] |
705 |
[% END %] |
709 |
[% END %] |
706 |
|
710 |
|
|
|
711 |
$(".copiesrow").each(function(){ |
712 |
$(this).DataTable({ |
713 |
dom: "t" |
714 |
}); |
715 |
}); |
707 |
}); |
716 |
}); |
708 |
// ]]> |
717 |
// ]]> |
709 |
</script> |
718 |
</script> |
710 |
- |
|
|