Bugzilla – Attachment 182452 Details for
Bug 39528
Get rid of schema.org type "Product"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39528: Remove schema.org "Product" type from OPAC record pages
Bug-39528-Remove-schemaorg-Product-type-from-OPAC-.patch (text/plain), 2.17 KB, created by
Jonathan Druart
on 2025-05-14 14:41:22 UTC
(
hide
)
Description:
Bug 39528: Remove schema.org "Product" type from OPAC record pages
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-05-14 14:41:22 UTC
Size:
2.17 KB
patch
obsolete
>From 2c25cb9ab3ab3509bf8a8147355e245446f04c6d Mon Sep 17 00:00:00 2001 >From: Michael Skarupianski <michael.skarupianski@gmail.com> >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 <david@davidnind.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > 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 b4c0c2165ee..431ead5ec10 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 @@ > <xsl:element name="div"> > <xsl:attribute name="class"><xsl:value-of select="'record'" /></xsl:attribute> > <xsl:attribute name="vocab">http://schema.org/</xsl:attribute> >- <xsl:attribute name="typeof"><xsl:value-of select='$schemaOrgType' /> Product</xsl:attribute> >+ <xsl:attribute name="typeof"><xsl:value-of select='$schemaOrgType' /></xsl:attribute> > <xsl:attribute name="resource">#record</xsl:attribute> > > <!-- Title Statement --> >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39528
:
181710
|
181826
| 182452