[% IF ( SEARCH_RESULT.items_count ) %]
[% IF MaxSearchResultsItemsPerRecordStatusCheck && SEARCH_RESULT.items_count > MaxSearchResultsItemsPerRecordStatusCheck %]
[% END %]
[% tnx('{count} item', '{count} items', SEARCH_RESULT.items_count, {count = SEARCH_RESULT.items_count}) | html %][% IF ( SEARCH_RESULT.availablecount ) %], [% SEARCH_RESULT.availablecount | html %] available:[% ELSE %], None available[% END %]
[% IF MaxSearchResultsItemsPerRecordStatusCheck && SEARCH_RESULT.items_count > MaxSearchResultsItemsPerRecordStatusCheck %]
[% END %]
[% BLOCK search_result_items %]
[% IF status_count == "onloancount" %]
[% IF SEARCH_RESULT.${status_count} > 0 %]
[% SEARCH_RESULT.${status_count} | html %] checked out:
[% END %]
[% ELSIF status_count == "othercount" %]
[% IF SEARCH_RESULT.${status_count} > 0 %]
[% SEARCH_RESULT.${status_count} | html %] unavailable:
[% END %]
[% END %]
[% IF SEARCH_RESULT.${items_loop}.size > 0 %]
[% FOREACH items_loo IN SEARCH_RESULT.${items_loop} %]
[% IF item_level_itypes && !noItemTypeImages && items_loo.imageurl %]
-
[% ELSE %]
-
[% END %]
[% IF ( items_loo.branchname ) %]
[% items_loo.branchname | html %]
[% END %]
[% IF ( items_loo.location ) %]
[% items_loo.location | html %]
[% END %]
•
[% IF ( items_loo.itemcallnumber ) %]
[% items_loo.itemcallnumber | html %]
[% END %]
[% IF ( items_loo.withdrawn ) %]
([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => items_loo.withdrawn ) | html %])
[% END %]
[% IF ( items_loo.itemlost ) %]
([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => items_loo.itemlost ) | html %])
[% END %]
[% IF ( items_loo.damaged ) %]
([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => items_loo.damaged ) | html %])
[% END %]
[% IF ( items_loo.intransit ) %]
(In transit)
[% END %]
[% IF ( items_loo.onhold ) %]
(On hold)
[% END %]
[% IF ( items_loo.notforloan ) %]
[% items_loo.notforloan | html %]
[% END %]
[% items_loo.count | html %]
[% IF item_level_itypes && items_loo.description %]
[% items_loo.description | html %]
[% END %]
[% END # /FOREACH other_items_loo %]
[% END # /IF SEARCH_RESULT.${items_loop}.size %]
[% END # /BLOCK search_result_items %]
[% PROCESS search_result_items status_count="availablecount" items_loop="available_items_loop" %]
[% PROCESS search_result_items status_count="onloancount" items_loop="onloan_items_loop" %]
[% PROCESS search_result_items status_count="othercount" items_loop="other_items_loop" %]
[% ELSE # /IF ( SEARCH_RESULT.items_count ) %]
[% IF ( SEARCH_RESULT.ALTERNATEHOLDINGS.count ) %]
Other holdings:
[% FOREACH ALTERNATEHOLDING IN SEARCH_RESULT.ALTERNATEHOLDINGS %]
- [% ALTERNATEHOLDING.holding | html %]
[% END %]
[% ELSE %]
No items
[% END %]
[% END # /IF ( SEARCH_RESULT.items_count ) %]