|
Lines 594-669
Link Here
|
| 594 |
<span class="blocker inaccurate-item-statuses" title="Item statuses may be inaccurate. Please view the record details for accurate item statuses"> |
594 |
<span class="blocker inaccurate-item-statuses" title="Item statuses may be inaccurate. Please view the record details for accurate item statuses"> |
| 595 |
[% END %] |
595 |
[% END %] |
| 596 |
|
596 |
|
| 597 |
[% tnx('{count} item', '{count} items', SEARCH_RESULT.items_count, {count = SEARCH_RESULT.items_count}) | html %][% IF ( SEARCH_RESULT.availablecount ) %], [% SEARCH_RESULT.availablecount | html %] <span>available:</span>[% ELSE %], <span>None available</span>[% END %] |
597 |
[% tnx('{count} item', '{count} items', SEARCH_RESULT.items_count, {count = SEARCH_RESULT.items_count}) | html %] |
| 598 |
|
598 |
|
| 599 |
[% IF MaxSearchResultsItemsPerRecordStatusCheck && SEARCH_RESULT.items_count > MaxSearchResultsItemsPerRecordStatusCheck %] |
599 |
[% IF MaxSearchResultsItemsPerRecordStatusCheck && SEARCH_RESULT.items_count > MaxSearchResultsItemsPerRecordStatusCheck %] |
| 600 |
</span> |
600 |
</span> |
| 601 |
[% END %] |
601 |
[% END %] |
| 602 |
</div> <!-- /.results_available_count --> |
602 |
</div> <!-- /.results_available_count --> |
| 603 |
|
603 |
|
|
|
604 |
[% IF SEARCH_RESULT.availablecount %] |
| 605 |
<h4 class="results_available">[% SEARCH_RESULT.availablecount | html %] Available</h4> |
| 606 |
[% END %] |
| 604 |
[% BLOCK search_result_items %] |
607 |
[% BLOCK search_result_items %] |
| 605 |
[% IF status_count == "onloancount" %] |
608 |
[% IF status_count == "onloancount" %] |
| 606 |
[% IF SEARCH_RESULT.${status_count} > 0 %] |
609 |
[% IF SEARCH_RESULT.${status_count} > 0 %] |
| 607 |
<div class="results_checkedout">[% SEARCH_RESULT.${status_count} | html %] checked out:</div> |
610 |
<h4 class="results_checkedout">[% SEARCH_RESULT.${status_count} | html %] Checked out</h4> |
| 608 |
[% END %] |
611 |
[% END %] |
| 609 |
[% ELSIF status_count == "othercount" %] |
612 |
[% ELSIF status_count == "othercount" %] |
| 610 |
[% IF SEARCH_RESULT.${status_count} > 0 %] |
613 |
[% IF SEARCH_RESULT.${status_count} > 0 %] |
| 611 |
<div class="results_unavailable">[% SEARCH_RESULT.${status_count} | html %] unavailable:</div> |
614 |
<h4 class="results_unavailable">[% SEARCH_RESULT.${status_count} | html %] Unavailable</h4> |
| 612 |
[% END %] |
615 |
[% END %] |
| 613 |
[% END %] |
616 |
[% END %] |
| 614 |
[% IF SEARCH_RESULT.${items_loop}.size > 0 %] |
617 |
[% IF SEARCH_RESULT.${items_loop}.size > 0 %] |
| 615 |
<ul class="[% items_loop | html %]_items"> |
618 |
<table class="table table-sm [% items_loop | html %]_items"> |
| 616 |
[% FOREACH items_loo IN SEARCH_RESULT.${items_loop} %] |
619 |
[% FOREACH items_loo IN SEARCH_RESULT.${items_loop} %] |
| 617 |
[% IF item_level_itypes && !noItemTypeImages && items_loo.imageurl %] |
620 |
<tr class="[% IF items_loo.branchname %][% items_loo.branchname | html %][% END %]"> |
| 618 |
<li class="result_itype_image"> |
621 |
<td class="branchname"> |
| 619 |
<img src="[% items_loo.imageurl | html %]" title="[% items_loo.description | html %]" alt="[% items_loo.description | html %]" /> |
622 |
[% IF ( items_loo.branchname ) %][% items_loo.branchname | html %][% END %] |
| 620 |
[% ELSE %] |
623 |
</td> |
| 621 |
<li> |
624 |
<td class="shelvingloc"> |
| 622 |
[% END %] |
625 |
[% IF ( items_loo.location ) %][% items_loo.location | html %][% END %] |
| 623 |
[% IF ( items_loo.branchname ) %] |
|
|
| 624 |
[% items_loo.branchname | html %] |
| 625 |
[% END %] |
| 626 |
[% IF ( items_loo.location ) %] |
| 627 |
<span class="shelvingloc">[% items_loo.location | html %]</span> |
| 628 |
[% END %] |
| 629 |
|
| 630 |
[% IF ( items_loo.itemcallnumber ) %] |
626 |
[% IF ( items_loo.itemcallnumber ) %] |
| 631 |
<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&q=%22[% items_loo.itemcallnumber |uri %]%22">[% items_loo.itemcallnumber | html %]</a> |
627 |
<div> |
|
|
628 |
<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&q=%22[% items_loo.itemcallnumber |uri %]%22">[% items_loo.itemcallnumber | html %]</a> |
| 629 |
</div> |
| 632 |
[% END %] |
630 |
[% END %] |
| 633 |
<div class="result_item_details"> |
631 |
</td> |
|
|
632 |
<td> |
| 634 |
[% IF ( items_loo.withdrawn ) %] |
633 |
[% IF ( items_loo.withdrawn ) %] |
| 635 |
([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => items_loo.withdrawn ) | html %]) |
634 |
[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => items_loo.withdrawn ) | html %] |
| 636 |
[% END %] |
635 |
[% END %] |
| 637 |
[% IF ( items_loo.itemlost ) %] |
636 |
[% IF ( items_loo.itemlost ) %] |
| 638 |
([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => items_loo.itemlost ) | html %]) |
637 |
[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => items_loo.itemlost ) | html %] |
| 639 |
[% END %] |
638 |
[% END %] |
| 640 |
[% IF ( items_loo.damaged ) %] |
639 |
[% IF ( items_loo.damaged ) %] |
| 641 |
([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => items_loo.damaged ) | html %]) |
640 |
[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => items_loo.damaged ) | html %] |
| 642 |
[% END %] |
641 |
[% END %] |
| 643 |
[% IF ( items_loo.intransit ) %] |
642 |
[% IF ( items_loo.intransit ) %] |
| 644 |
(<span>In transit</span>) |
643 |
<span>In transit</span> |
| 645 |
[% END %] |
644 |
[% END %] |
| 646 |
[% IF ( items_loo.onhold ) %] |
645 |
[% IF ( items_loo.onhold ) %] |
| 647 |
(<span>On hold</span>) |
646 |
<span>On hold</span> |
| 648 |
[% END %] |
647 |
[% END %] |
| 649 |
[% IF ( items_loo.notforloan ) %] |
648 |
[% IF ( items_loo.notforloan ) %] |
| 650 |
[% items_loo.notforloan | html %] |
649 |
[% items_loo.notforloan | html %] |
| 651 |
[% END %] |
650 |
[% END %] |
|
|
651 |
[% IF status_count == "onloancount" %] |
| 652 |
Due: [% items_loo.due_date | $KohaDates %] |
| 653 |
[% END %] |
| 654 |
[% IF ( !items_loo.withdrawn && !items_loo.itemlost && !items_loo.damaged && !items_loo.intransit && !items_loo.onhold && !items_loo.notforloan && status_count != 'onloancount') %] |
| 655 |
Available |
| 656 |
[% END %] |
| 652 |
<span class="item_count">[% items_loo.count | html %]</span> |
657 |
<span class="item_count">[% items_loo.count | html %]</span> |
| 653 |
</div> <!-- /.result_item_details --> |
658 |
</td> <!-- /.result_item_details --> |
| 654 |
|
659 |
|
| 655 |
[% IF status_count == "onloancount" %] |
|
|
| 656 |
<span class="item-date-due"> |
| 657 |
Due: [% items_loo.due_date | $KohaDates %] |
| 658 |
</span> |
| 659 |
[% END %] |
| 660 |
|
660 |
|
| 661 |
[% IF item_level_itypes && items_loo.description %] |
661 |
[% IF item_level_itypes && items_loo.description %] |
| 662 |
<span class="item-itype-desc itypetext">[% items_loo.description | html %]</span> |
662 |
<td class="item-itype-desc itypetext">[% items_loo.description | html %]</td> |
| 663 |
[% END %] |
663 |
[% END %] |
| 664 |
</li> |
664 |
</tr> |
| 665 |
[% END # /FOREACH other_items_loo %] |
665 |
[% END # /FOREACH other_items_loo %] |
| 666 |
</ul> <!-- /.[% items_loop | html %]_items --> |
666 |
</table> <!-- /.[% items_loop | html %]_items --> |
| 667 |
[% END # /IF SEARCH_RESULT.${items_loop}.size %] |
667 |
[% END # /IF SEARCH_RESULT.${items_loop}.size %] |
| 668 |
[% END # /BLOCK search_result_items %] |
668 |
[% END # /BLOCK search_result_items %] |
| 669 |
|
669 |
|
| 670 |
- |
|
|