From ea70b0b48bb07b40e8ef9a65daeec9a043c9d29a Mon Sep 17 00:00:00 2001 From: Michael Skarupianski Date: Wed, 30 Apr 2025 11:16:44 +0200 Subject: [PATCH] Bug 39528: Remove schema.org "Product" type from OPAC record pages OPAC record detail pages include https://schema.org microdata information in the HTML page markup, such as CreativeWork. It incorrectly includes the "Product" type - this is not needed and is also rejected by some search engines, for example ... vocab="http://schema.org/" typeof="CreativeWork Product" ... (Koha maps schema.org to the RDFa Lite syntax https://www.w3.org/TR/rdfa-lite/) Test plan: 1. Look at HTML source of a details page for a record in the OPAC. 2. Search for schema.org 3. Note that it there are two typeof entries: .. vocab="http://schema.org/" typeof="CreativeWork Product" ... 4. Apply the patch. 5. Refresh the page and look at the HTML source again. 6. Note that the "Product" schema.org type is removed: .. vocab="http://schema.org/" typeof="CreativeWork" ... 7. Sign off. Sponsored-by: Karlsruhe Institute of Technology (KIT) Signed-off-by: David Nind --- koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 2 +- 1 file changed, 1 insertion(+), 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 b4c0c2165e..431ead5ec1 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl @@ -115,7 +115,7 @@ http://schema.org/ - Product + #record -- 2.39.5