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