From 0642ebe13aa75d36445d9b007c6169f52fa0de79 Mon Sep 17 00:00:00 2001 From: Janusz Kaczmarek Date: Tue, 1 Apr 2025 19:40:28 +0000 Subject: [PATCH] Bug 39517: Make LDR/6-7 = 'am' be interpreted by MARC21slim2OPACDetail.xsl as 'Book' instead of more generic 'Text' Currently, in OPAC, MARC21slim2OPACDetail.xsl assigns to LDR/6-7 = 'am' a label 'Text' (materialTypeLabel), which is then used in defining variable schemaOrgType and also for display. The variable schemaOrgType would be set to 'Book' if materialTypeLabel was 'Book', but with the current xslt code never will be. Instead schemaOrgType will be set to a generic type CreativeWork for 'am'. materialTypeLabel is also used for display purposes as the label next to the material type icon (when DisplayOPACiconsXSLT enabled). Test plan: ========== 1. Make sure that DisplayOPACiconsXSLT is on. 2. In OPAC open any book record (e.g. in standard ktd - sn:1). 3. Note "Material type: [icon] Text" info below author line. 4. Apply the patch ; restart_all 5. Verify that you get "Material type: [icon] Book" info below author line. --- .../opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl index b5b07f3ee8..347422938d 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl @@ -77,7 +77,8 @@ Set - Text + Text + Book Continuing resource -- 2.39.5