From 9871a02b26bea775b03090d65e633a260ea10baf Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Wed, 19 Apr 2023 13:52:16 +0000 Subject: [PATCH] Bug 30352: Allow translation of Not for loan in OPAC XSLT results Note: Test plan below can be followed in English. If you would like to see the vernacular results, you need to update PO files and translate 'Not for loan', and update templates (xslt files) accordingly. The bootstrap PO does not yet include that string without %s suffix in the current codebase. Test plan: [1] Apply this patch and make the following change in MARC21slim2OPACResults.xsl, line 1207. Change: Not for loan to: NOT for loan Important: Change text inside, not the attribute! Restart all. [2] Pick a biblio, add some items with different statuses: Checked out, Damaged, Not for loan, Staff collection. [3] Make it appear in a OPAC results display (not detail). [4] You should see the different statuses, including NOT for loan. The uppercase NOT serves to prove that the string has been translated. Also verify that you see Staff collection as-is. [5] Bonus: Toggle with values in Reference_NFL_Statuses to move results from Reference section to Not available section v.v. [6] Revert the change from step 1. Sign off :) Signed-off-by: Marcel de Rooy Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 8d7e3cec32dffa5f96de696f8707bf8e015c49d2) Signed-off-by: Martin Renvoize --- .../en/xslt/MARC21slim2OPACResults.xsl | 42 +++++++++---------- 1 file changed, 19 insertions(+), 23 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl index 36026bdc0d..733d9e1722 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl @@ -1249,6 +1249,19 @@
+ + + Checked out + Withdrawn + Lost + Damaged + Pending hold + In transit + On hold + Waiting recall + Not for loan + + Availability: @@ -1309,7 +1322,10 @@ - + + + + @@ -1322,16 +1338,6 @@ Not available: - - Checked out - Withdrawn - Lost - Damaged - Pending hold - In transit - On hold - Waiting recall - @@ -1350,12 +1356,7 @@ : - - - - - - + @@ -1374,12 +1375,7 @@ - - - - - - + -- 2.39.2