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