From d58bfb33e8928edd993d689764ab3084c6ed3d8a 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 --- .../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 bd780cdbe7..78a609ef27 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl @@ -1284,6 +1284,19 @@
+ + + Checked out + Withdrawn + Lost + Damaged + Pending hold + In transit + On hold + Waiting recall + Not for loan + + Availability: @@ -1344,7 +1357,10 @@ - + + + + @@ -1357,16 +1373,6 @@ Not available: - - Checked out - Withdrawn - Lost - Damaged - Pending hold - In transit - On hold - Waiting recall - @@ -1385,12 +1391,7 @@ : - - - - - - + @@ -1409,12 +1410,7 @@ - - - - - - + -- 2.30.2