Lines 556-562
Link Here
|
556 |
<td> |
556 |
<td> |
557 |
<div class="availability"> |
557 |
<div class="availability"> |
558 |
[% IF ( SEARCH_RESULT.items_count ) %] |
558 |
[% IF ( SEARCH_RESULT.items_count ) %] |
559 |
<strong> |
559 |
<div class="results_available_count"> |
560 |
[% IF MaxSearchResultsItemsPerRecordStatusCheck && SEARCH_RESULT.items_count > MaxSearchResultsItemsPerRecordStatusCheck %] |
560 |
[% IF MaxSearchResultsItemsPerRecordStatusCheck && SEARCH_RESULT.items_count > MaxSearchResultsItemsPerRecordStatusCheck %] |
561 |
<span class="blocker inaccurate-item-statuses" title="Item statuses may be inaccurate. Please view the record details for accurate item statuses"> |
561 |
<span class="blocker inaccurate-item-statuses" title="Item statuses may be inaccurate. Please view the record details for accurate item statuses"> |
562 |
[% END %] |
562 |
[% END %] |
Lines 566-673
Link Here
|
566 |
[% IF MaxSearchResultsItemsPerRecordStatusCheck && SEARCH_RESULT.items_count > MaxSearchResultsItemsPerRecordStatusCheck %] |
566 |
[% IF MaxSearchResultsItemsPerRecordStatusCheck && SEARCH_RESULT.items_count > MaxSearchResultsItemsPerRecordStatusCheck %] |
567 |
</span> |
567 |
</span> |
568 |
[% END %] |
568 |
[% END %] |
569 |
</strong> |
569 |
</div> <!-- /.results_available_count --> |
570 |
|
570 |
|
571 |
[% IF ( SEARCH_RESULT.availablecount ) %] |
571 |
[% BLOCK search_result_items %] |
572 |
<ul> |
572 |
[% IF status_count == "onloancount" %] |
573 |
[% FOREACH available_items_loo IN SEARCH_RESULT.available_items_loop %] |
573 |
[% IF SEARCH_RESULT.${status_count} > 0 %] |
574 |
[% IF item_level_itypes && !noItemTypeImages && available_items_loo.imageurl %] |
574 |
<div class="results_checkedout">[% SEARCH_RESULT.${status_count} | html %] checked out:</div> |
575 |
<li style="list-style: none; list-style-type: none;"> |
|
|
576 |
<img src="[% available_items_loo.imageurl | html %]" title="[% available_items_loo.description | html %]" alt="[% available_items_loo.description | html %]" /> |
577 |
[% ELSE %] |
578 |
<li> |
579 |
[% END %] |
580 |
[% IF ( available_items_loo.branchname ) %] |
581 |
[% available_items_loo.branchname | html %] |
582 |
[% END %] |
583 |
[% IF ( available_items_loo.location ) %] |
584 |
<span class="shelvingloc">[% available_items_loo.location | html %]</span> |
585 |
[% END %] |
586 |
[% IF ( available_items_loo.itemcallnumber ) %] |
587 |
[<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&q=%22[% available_items_loo.itemcallnumber |uri %]%22">[% available_items_loo.itemcallnumber | html %]</a>] |
588 |
[% END %] |
589 |
([% available_items_loo.count | html %]) |
590 |
[% IF item_level_itypes && available_items_loo.description %] |
591 |
<br/>[% available_items_loo.description | html %] |
592 |
[% END %] |
593 |
</li> |
594 |
[% END # /FOREACH available_items_loo %] |
595 |
</ul> |
596 |
[% END # /IF SEARCH_RESULT.availablecount %] |
597 |
|
598 |
[% IF ( SEARCH_RESULT.onloancount ) %] |
599 |
<span class="status">[% SEARCH_RESULT.onloancount | html %] on loan:</span> |
600 |
<ul> |
601 |
[% FOREACH onloan_items_loo IN SEARCH_RESULT.onloan_items_loop %] |
602 |
[% IF item_level_itypes && !noItemTypeImages && onloan_items_loo.imageurl %] |
603 |
<li style="list-style: none; list-style-type: none;"> |
604 |
<img src="[% onloan_items_loo.imageurl | html %]" title="[% onloan_items_loo.description | html %]" alt="[% onloan_items_loo.description | html %]" /> |
605 |
[% ELSE %] |
606 |
<li> |
607 |
[% END %] |
608 |
[% IF ( onloan_items_loo.branchname ) %] |
609 |
[% onloan_items_loo.branchname | html %] |
610 |
[% END %] |
611 |
[% IF ( onloan_items_loo.location ) %] |
612 |
<span class="shelvingloc">[% onloan_items_loo.location | html %]</span> |
613 |
[% END %] |
614 |
[% IF ( onloan_items_loo.itemcallnumber ) %] |
615 |
[<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&q=%22[% onloan_items_loo.itemcallnumber |uri %]%22">[% onloan_items_loo.itemcallnumber | html %]</a>] |
616 |
[% END %] |
617 |
([% onloan_items_loo.count | html %][% IF ( onloan_items_loo.longoverdue ) %], [% onloan_items_loo.longoverdue | html %] long overdue[% END %]) date due: [% onloan_items_loo.due_date | $KohaDates %] |
618 |
[% IF item_level_itypes && onloan_items_loo.description %] |
619 |
<br/>[% onloan_items_loo.description | html %] |
620 |
[% END %] |
575 |
[% END %] |
621 |
</li> |
576 |
[% ELSIF status_count == "othercount" %] |
622 |
[% END # /FOREACH onloan_items_loo %] |
577 |
[% IF SEARCH_RESULT.${status_count} > 0 %] |
623 |
</ul> |
578 |
<div class="results_unavailable">[% SEARCH_RESULT.${status_count} | html %] unavailable:</div> |
624 |
[% END # IF SEARCH_RESULT.onloancount %] |
579 |
[% END %] |
|
|
580 |
[% END %] |
581 |
[% IF SEARCH_RESULT.${items_loop}.size > 0 %] |
582 |
<ul class="[% items_loop | html %]_items"> |
583 |
[% FOREACH items_loo IN SEARCH_RESULT.${items_loop} %] |
584 |
[% IF item_level_itypes && !noItemTypeImages && items_loo.imageurl %] |
585 |
<li class="result_itype_image"> |
586 |
<img src="[% items_loo.imageurl | html %]" title="[% items_loo.description | html %]" alt="[% items_loo.description | html %]" /> |
587 |
[% ELSE %] |
588 |
<li> |
589 |
[% END %] |
590 |
[% IF ( items_loo.branchname ) %] |
591 |
[% items_loo.branchname | html %] |
592 |
[% END %] |
593 |
[% IF ( items_loo.location ) %] |
594 |
<span class="shelvingloc">[% items_loo.location | html %]</span> |
595 |
[% END %] |
596 |
|
597 |
• |
598 |
[% IF ( items_loo.itemcallnumber ) %] |
599 |
<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&q=%22[% items_loo.itemcallnumber |uri %]%22">[% items_loo.itemcallnumber | html %]</a> |
600 |
[% END %] |
601 |
<div class="result_item_details"> |
602 |
[% IF ( items_loo.withdrawn ) %] |
603 |
([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => items_loo.withdrawn ) | html %]) |
604 |
[% END %] |
605 |
[% IF ( items_loo.itemlost ) %] |
606 |
([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => items_loo.itemlost ) | html %]) |
607 |
[% END %] |
608 |
[% IF ( items_loo.damaged ) %] |
609 |
([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => items_loo.damaged ) | html %]) |
610 |
[% END %] |
611 |
[% IF ( items_loo.intransit ) %] |
612 |
(In transit) |
613 |
[% END %] |
614 |
[% IF ( items_loo.onhold ) %] |
615 |
(On hold) |
616 |
[% END %] |
617 |
[% IF ( items_loo.notforloan ) %] |
618 |
[% items_loo.notforloan | html %] |
619 |
[% END %] |
620 |
<span class="item_count">[% items_loo.count | html %]</span> |
621 |
</div> <!-- /.result_item_details --> |
622 |
[% IF item_level_itypes && items_loo.description %] |
623 |
<span class="item-itype-desc">[% items_loo.description | html %]</span> |
624 |
[% END %] |
625 |
</li> |
626 |
[% END # /FOREACH other_items_loo %] |
627 |
</ul> <!-- /.[% items_loop | html %]_items --> |
628 |
[% END # /IF SEARCH_RESULT.${items_loop}.size %] |
629 |
[% END # /BLOCK search_result_items %] |
630 |
|
631 |
[% PROCESS search_result_items status_count="availablecount" items_loop="available_items_loop" %] |
632 |
|
633 |
[% PROCESS search_result_items status_count="onloancount" items_loop="onloan_items_loop" %] |
634 |
|
635 |
[% PROCESS search_result_items status_count="othercount" items_loop="other_items_loop" %] |
625 |
|
636 |
|
626 |
[% IF ( SEARCH_RESULT.othercount ) %] |
|
|
627 |
<span class="unavailable">[% SEARCH_RESULT.othercount | html %] unavailable:</span> |
628 |
<ul> |
629 |
[% FOREACH other_items_loo IN SEARCH_RESULT.other_items_loop %] |
630 |
[% IF item_level_itypes && !noItemTypeImages && other_items_loo.imageurl %] |
631 |
<li style="list-style: none; list-style-type: none;"> |
632 |
<img src="[% other_items_loo.imageurl | html %]" title="[% other_items_loo.description | html %]" alt="[% other_items_loo.description | html %]" /> |
633 |
[% ELSE %] |
634 |
<li> |
635 |
[% END %] |
636 |
[% IF ( other_items_loo.branchname ) %] |
637 |
[% other_items_loo.branchname | html %] |
638 |
[% END %] |
639 |
[% IF ( other_items_loo.location ) %] |
640 |
<span class="shelvingloc">[% other_items_loo.location | html %]</span> |
641 |
[% END %] |
642 |
[% IF ( other_items_loo.itemcallnumber ) %] |
643 |
[<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&q=%22[% other_items_loo.itemcallnumber |uri %]%22">[% other_items_loo.itemcallnumber | html %]</a>] |
644 |
[% END %] |
645 |
[% IF ( other_items_loo.withdrawn ) %] |
646 |
([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => other_items_loo.withdrawn ) | html %]) |
647 |
[% END %] |
648 |
[% IF ( other_items_loo.itemlost ) %] |
649 |
([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => other_items_loo.itemlost ) | html %]) |
650 |
[% END %] |
651 |
[% IF ( other_items_loo.damaged ) %] |
652 |
([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => other_items_loo.damaged ) | html %]) |
653 |
[% END %] |
654 |
[% IF ( other_items_loo.intransit ) %] |
655 |
(In transit) |
656 |
[% END %] |
657 |
[% IF ( other_items_loo.onhold ) %] |
658 |
(On hold) |
659 |
[% END %] |
660 |
[% IF ( other_items_loo.notforloan ) %] |
661 |
[% other_items_loo.notforloan | html %] |
662 |
[% END %] |
663 |
([% other_items_loo.count | html %]) |
664 |
[% IF item_level_itypes && other_items_loo.description %] |
665 |
<br/>[% other_items_loo.description | html %] |
666 |
[% END %] |
667 |
</li> |
668 |
[% END # /FOREACH other_items_loo %] |
669 |
</ul> |
670 |
[% END # /IF SEARCH_RESULT.othercount %] |
671 |
|
637 |
|
672 |
[% ELSE # /IF ( SEARCH_RESULT.items_count ) %] |
638 |
[% ELSE # /IF ( SEARCH_RESULT.items_count ) %] |
673 |
|
639 |
|