Bug 31071: Regression: date due removed from staff search results

This patch corrects a regression caused by Bug 28321, which
inadvertently removed the date due from output of item information in
each search result.

To test, apply the patch and perform a catalog search which will return
some results which are checked out and some which aren't. Confirm that
the checked out items show the date due correctly.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Emmanuel Bétemps <e.betemps@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 25d31a7581)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Owen Leonard 2022-07-12 14:45:13 +00:00 committed by Lucas Gass
parent 8e879be095
commit 5780a82e94
2 changed files with 11 additions and 0 deletions

View file

@ -4645,6 +4645,10 @@ div .suggestion_note {
display:inline-block;
white-space:nowrap
}
.item-date-due {
display: block;
}
}
#camera, #output {

View file

@ -628,6 +628,13 @@
[% END %]
<span class="item_count">[% items_loo.count | html %]</span>
</div> <!-- /.result_item_details -->
[% IF status_count == "onloancount" %]
<span class="item-date-due">
Due: [% items_loo.due_date | $KohaDates %]
</span>
[% END %]
[% IF item_level_itypes && items_loo.description %]
<span class="item-itype-desc">[% items_loo.description | html %]</span>
[% END %]