From e25683c7ef7306daaf4ff5269028b0a2fa805f9c Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 24 Aug 2020 15:05:23 +0200 Subject: [PATCH] Bug 21260: Remove item details from reallynotforloan block Content-Type: text/plain; charset=utf-8 No need to display itemcallnumbers and branch info for items that are ('really') not available. We only show a status and a count for the reallynotforloan ('ordered') categories (not per branch). This simplifies the code too. We use the preceding-sibling axis to loop over the unique substatuses. Test plan: [1] Pick a biblio with an available item A, an item B with notforloan 1, an item C with notforloan 2 and two damaged items. Include it in a OPAC search. You should see: Available: A. Reference: B, C. Not-available: Damaged(2). [2] Edit item C (notforloan 2). Change to notforloan -1. Search again. You should see: Available: A. Reference: B. Not-available: On order(1), Damaged(2). Signed-off-by: Marcel de Rooy --- .../bootstrap/en/xslt/MARC21slim2OPACResults.xsl | 27 ++++++---------------- 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl index 1e7754439c..9878634d42 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl @@ -1354,26 +1354,13 @@ - - - - ItemSummary - - - - - - - - - Call number: - - - - ( - - ) - . , + + + + ( + + ) + . , -- 2.11.0