Lines 391-397
Link Here
|
391 |
<td class="cover"> |
391 |
<td class="cover"> |
392 |
<div class="bookcoverimg"> |
392 |
<div class="bookcoverimg"> |
393 |
<div class="cover-slider"> |
393 |
<div class="cover-slider"> |
394 |
[% FOREACH image IN item.cover_images %] |
394 |
[% FOREACH image IN item.object.cover_images %] |
395 |
<div class="cover-image local-coverimg"> |
395 |
<div class="cover-image local-coverimg"> |
396 |
<a href="/cgi-bin/koha/catalogue/image.pl?itemnumber=[% image.itemnumber | uri %]&imagenumber=[% image.imagenumber | uri %]" title="Local cover image"> |
396 |
<a href="/cgi-bin/koha/catalogue/image.pl?itemnumber=[% image.itemnumber | uri %]&imagenumber=[% image.imagenumber | uri %]" title="Local cover image"> |
397 |
<img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image.imagenumber | uri %]" alt="Local cover image" data-link="/cgi-bin/koha/catalogue/imageviewer.pl?itemnumber=[% item.itemnumber | uri %]&imagenumber=[% image.imagenumber | uri %]" /> |
397 |
<img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=[% image.imagenumber | uri %]" alt="Local cover image" data-link="/cgi-bin/koha/catalogue/imageviewer.pl?itemnumber=[% item.itemnumber | uri %]&imagenumber=[% image.imagenumber | uri %]" /> |
Lines 416-437
Link Here
|
416 |
<td class="homebranch"> |
416 |
<td class="homebranch"> |
417 |
<span class="homebranchdesc">[% Branches.GetName(item.homebranch) | html %]</span> |
417 |
<span class="homebranchdesc">[% Branches.GetName(item.homebranch) | html %]</span> |
418 |
<span class="shelvingloc"> |
418 |
<span class="shelvingloc"> |
419 |
<!-- |
419 |
[%# If permanent location is defined, show description or code and |
420 |
If permanent location is defined, show description or code and display current location in parentheses. If not, display current location. |
420 |
display current location in parentheses. If not, display current location. |
421 |
Note that permanent location is a code, and location may be an authval. |
421 |
Note that permanent location is a code, and location may be an authval. |
422 |
--> |
422 |
%] |
423 |
[% IF item.permanent_location %] |
423 |
[% IF item.permanent_location %] |
424 |
[% SET permloc_authval = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.permanent_location ) %] |
424 |
[% SET permloc_authval = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.permanent_location ) %] |
425 |
[% permloc_authval | html %] |
425 |
[% permloc_authval | html %] |
426 |
[% IF item.location AND item.location != permloc_authval AND item.location != item.permanent_location %] |
426 |
[% SET item_locatoin = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) %] |
427 |
([% item.location | html %]) |
427 |
[% IF item_location AND item_location != permloc_authval AND item.location != item.permanent_location %] |
|
|
428 |
([% item_location | html %]) |
428 |
[% END %] |
429 |
[% END %] |
429 |
[% ELSE %] |
430 |
[% ELSE %] |
430 |
[% item.location | html %] |
431 |
[% item_location | html %] |
431 |
[% END %] |
432 |
[% END %] |
432 |
</span> |
433 |
</span> |
433 |
</td> |
434 |
</td> |
434 |
[% IF ( itemdata_ccode ) %]<td>[% item.ccode | html %]</td>[% END %] |
435 |
[% IF ( itemdata_ccode ) %]<td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => item.ccode ) | html %]</td>[% END %] |
435 |
[% IF Koha.Preference('EnableItemGroups') %]<td class="item_group">[% item.object.item_group.description | html %]</td>[% END %] |
436 |
[% IF Koha.Preference('EnableItemGroups') %]<td class="item_group">[% item.object.item_group.description | html %]</td>[% END %] |
436 |
<td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %]</td> |
437 |
<td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %]</td> |
437 |
[% IF ( volinfo ) %] |
438 |
[% IF ( volinfo ) %] |
Lines 462-523
Note that permanent location is a code, and location may be an authval.
Link Here
|
462 |
[% END %] |
463 |
[% END %] |
463 |
<td class="status"> |
464 |
<td class="status"> |
464 |
|
465 |
|
465 |
[% IF item.checkout %] |
466 |
[% IF item.object.checkout %] |
466 |
[% IF item.checkout.onsite_checkout %] |
467 |
[% IF item.checkout.onsite_checkout %] |
467 |
<span>Currently in local use |
468 |
<span>Currently in local use |
468 |
[% ELSE %] |
469 |
[% ELSE %] |
469 |
<span class="datedue">Checked out |
470 |
<span class="datedue">Checked out |
470 |
[% END %] |
471 |
[% END %] |
471 |
[% UNLESS ( item.not_same_branch) %] |
472 |
[% IF item.can_be_edited %] |
472 |
[% IF item.checkout.onsite_checkout %] |
473 |
[% IF item.object.checkout.onsite_checkout %] |
473 |
by |
474 |
by |
474 |
[% ELSE %] |
475 |
[% ELSE %] |
475 |
to |
476 |
to |
476 |
[% END %] |
477 |
[% END %] |
477 |
[% INCLUDE 'patron-title.inc' patron=item.checkout.patron hide_patron_infos_if_needed=1 %] |
478 |
[% INCLUDE 'patron-title.inc' patron=item.checkout.patron hide_patron_infos_if_needed=1 %] |
478 |
[% END %] |
479 |
[% END %] |
479 |
: due [% item.checkout.date_due | $KohaDates as_due_date => 1 %] |
480 |
: due [% item.object.checkout.date_due | $KohaDates as_due_date => 1 %] |
480 |
</span> |
481 |
</span> |
481 |
[% ELSIF ( item.transfer ) %] |
482 |
[% ELSIF ( transfer = item.object.get_transfer ) %] |
482 |
[% IF (item.transfer.datesent) %] |
483 |
[% IF (transfer.datesent) %] |
483 |
<span class="intransit">In transit from [% Branches.GetName( item.transfer.frombranch ) | html %] to [% Branches.GetName( item.transfer.tobranch ) | html %] since [% item.transfer.datesent | $KohaDates %]</span> |
484 |
<span class="intransit">In transit from [% Branches.GetName( transfer.frombranch ) | html %] to [% Branches.GetName( transfer.tobranch ) | html %] since [% transfer.datesent | $KohaDates %]</span> |
484 |
[% ELSE %] |
485 |
[% ELSE %] |
485 |
<span class="transitrequested">Transit pending from [% Branches.GetName( item.transfer.frombranch ) | html %] to [% Branches.GetName( item.transfer.tobranch ) | html %] since [% item.transfer.daterequested | $KohaDates %]</span> |
486 |
<span class="transitrequested">Transit pending from [% Branches.GetName( transfer.frombranch ) | html %] to [% Branches.GetName( transfer.tobranch ) | html %] since [% item.transfer.daterequested | $KohaDates %]</span> |
486 |
|
487 |
|
487 |
[% END %] |
488 |
[% END %] |
488 |
[% END %] |
489 |
[% END %] |
489 |
|
490 |
|
490 |
[% IF ( item.itemlost ) %] |
491 |
[% IF ( item.itemlost ) %] |
|
|
492 |
[% SET itemlost_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => item.itemlost ) %] |
491 |
[% IF itemlostloop %] |
493 |
[% IF itemlostloop %] |
492 |
[% FOREACH itemlostloo IN itemlostloop %] |
494 |
<span class="lost">[% itemlost_description | html %]</span> |
493 |
[% IF itemlostloo.authorised_value == item.itemlost %] |
|
|
494 |
<span class="lost">[% itemlostloo.lib | html %]</span> |
495 |
[% END %] |
496 |
[% END %] |
497 |
[% ELSE %] |
495 |
[% ELSE %] |
498 |
<span class="lost">Unavailable (lost or missing)</span> |
496 |
<span class="lost">Unavailable (lost or missing)</span> |
499 |
[% END %] |
497 |
[% END %] |
500 |
[% END %] |
498 |
[% END %] |
501 |
|
499 |
|
502 |
[% IF ( item.withdrawn ) %] |
500 |
[% IF ( item.withdrawn ) %] |
503 |
[% IF itemwithdrawnloop %] |
501 |
[% SET withdrawn_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %] |
504 |
[% FOREACH itemwithdrawnloo IN itemwithdrawnloop %] |
502 |
[% IF withdrawn_description %] |
505 |
[% IF itemwithdrawnloo.authorised_value == item.withdrawn %] |
503 |
<span class="wdn">[% withdrawn_description | html %]</span> |
506 |
<span class="wdn">[% itemwithdrawnloo.lib | html %]</span> |
|
|
507 |
[% END %] |
508 |
[% END %] |
509 |
[% ELSE %] |
504 |
[% ELSE %] |
510 |
<span class="wdn">Withdrawn</span> |
505 |
<span class="wdn">Withdrawn</span> |
511 |
[% END %] |
506 |
[% END %] |
512 |
[% END %] |
507 |
[% END %] |
513 |
|
508 |
|
514 |
[% IF ( item.damaged ) %] |
509 |
[% IF ( item.damaged ) %] |
515 |
[% IF itemdamagedloop %] |
510 |
[% SET damaged_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => item.damaged ) %] |
516 |
[% FOREACH itemdamagedloo IN itemdamagedloop %] |
511 |
[% IF damaged_description %] |
517 |
[% IF itemdamagedloo.authorised_value == item.damaged %] |
512 |
<span class="dmg">[% damaged_description | html %]</span> |
518 |
<span class="dmg">[% itemdamagedloo.lib | html %]</span> |
|
|
519 |
[% END %] |
520 |
[% END %] |
521 |
[% ELSE %] |
513 |
[% ELSE %] |
522 |
<span class="dmg">Damaged</span> |
514 |
<span class="dmg">Damaged</span> |
523 |
[% END %] |
515 |
[% END %] |
Lines 545-557
Note that permanent location is a code, and location may be an authval.
Link Here
|
545 |
[% END %] |
537 |
[% END %] |
546 |
[% END %] |
538 |
[% END %] |
547 |
|
539 |
|
548 |
[% SET recall = item.recall %] |
540 |
[% IF Koha.Preference('UseRecalls') %] |
549 |
[% IF recall %] |
541 |
[% SET recall = item.object.recall %] |
550 |
[% IF recall.waiting_date %] |
542 |
[% IF recall %] |
551 |
<span>Waiting at [% Branches.GetName( recall.pickup_library_id ) | html %] since [% recall.waiting_date | $KohaDates %]</span> |
543 |
[% IF recall.waiting_date %] |
552 |
[% ELSE %] |
544 |
<span>Waiting at [% Branches.GetName( recall.pickup_library_id ) | html %] since [% recall.waiting_date | $KohaDates %]</span> |
553 |
[% patron_link = BLOCK %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.patron_id | uri %]">[% recall.patron.firstname | html %] [% recall.patron.surname | html %] ([% recall.patron.cardnumber | html %])</a>[% END %] |
545 |
[% ELSE %] |
554 |
<span>recalled by [% patron_link| $raw %] on [% recall.created_date | $KohaDates %]</span> |
546 |
[% patron_link = BLOCK %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% recall.patron_id | uri %]">[% recall.patron.firstname | html %] [% recall.patron.surname | html %] ([% recall.patron.cardnumber | html %])</a>[% END %] |
|
|
547 |
<span>recalled by [% patron_link| $raw %] on [% recall.created_date | $KohaDates %]</span> |
548 |
[% END %] |
555 |
[% END %] |
549 |
[% END %] |
556 |
[% END %] |
550 |
[% END %] |
557 |
|
551 |
|
Lines 588-594
Note that permanent location is a code, and location may be an authval.
Link Here
|
588 |
[% END %] |
582 |
[% END %] |
589 |
[% END %] |
583 |
[% END %] |
590 |
[% IF ( itemdata_copynumber ) %] |
584 |
[% IF ( itemdata_copynumber ) %] |
591 |
<td class="copynumber">[% item.copynumber | html %]</td> |
585 |
<td class="copynumber">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.copynumber', authorised_value => item.copynumber ) | html %]</td> |
592 |
[% END %] |
586 |
[% END %] |
593 |
[% IF ( itemdata_stocknumber ) %] |
587 |
[% IF ( itemdata_stocknumber ) %] |
594 |
<td class="stocknumber">[% item.stocknumber | html %]</td> |
588 |
<td class="stocknumber">[% item.stocknumber | html %]</td> |
Lines 597-603
Note that permanent location is a code, and location may be an authval.
Link Here
|
597 |
<td class="materials"> [% item.materials | html %] </td> |
591 |
<td class="materials"> [% item.materials | html %] </td> |
598 |
[% END %] |
592 |
[% END %] |
599 |
[% IF ( itemdata_itemnotes ) %] |
593 |
[% IF ( itemdata_itemnotes ) %] |
600 |
<td><div class="itemnotes">[% item.itemnotes | $raw %]</div></td> |
594 |
<td><div class="itemnotes">[% item.object.itemnotes.replace('\n','<br />') | $raw %]</div></td> |
601 |
[% END %] |
595 |
[% END %] |
602 |
[% IF itemdata_nonpublicnotes %] |
596 |
[% IF itemdata_nonpublicnotes %] |
603 |
<td class="nonpublicnote">[% item.itemnotes_nonpublic | html %]</td> |
597 |
<td class="nonpublicnote">[% item.itemnotes_nonpublic | html %]</td> |
604 |
- |
|
|