Bugzilla – Attachment 20698 Details for
Bug 6594
Add schema.org microdata
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6594: Move subject keywords schema.org markup into <span> element
Bug-6594-Move-subject-keywords-schemaorg-markup-in.patch (text/plain), 2.34 KB, created by
Chris Cormack
on 2013-08-28 11:07:33 UTC
(
hide
)
Description:
Bug 6594: Move subject keywords schema.org markup into <span> element
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2013-08-28 11:07:33 UTC
Size:
2.34 KB
patch
obsolete
>From ec5f94f745c555d3edeceef8efe30879dc7961ea Mon Sep 17 00:00:00 2001 >From: Dan Scott <dan@coffeecode.net> >Date: Thu, 22 Aug 2013 10:55:13 -0400 >Subject: [PATCH] Bug 6594: Move subject keywords schema.org markup into <span> > element > >Google's rich snippets tool gets confused by the <a property="keywords"> >approach, so stuff another span inside the <a> element to remove >confusion with the href attribute. > >Signed-off-by: Dan Scott <dan@coffeecode.net> >Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> >Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> >--- > koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >index f3bd0f9..a32aea4 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >@@ -546,7 +546,7 @@ > <xsl:if test="marc:datafield[substring(@tag, 1, 1) = '6']"> > <span class="results_summary subjects"><span class="label">Subject(s): </span> > <xsl:for-each select="marc:datafield[substring(@tag, 1, 1) = '6']"> >- <a property="keywords"> >+ <a> > <xsl:choose> > <xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'"> > <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute> >@@ -564,6 +564,7 @@ > <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=su<xsl:value-of select="$SubjectModifier"/>:<xsl:value-of select="$TracingQuotesLeft"/><xsl:value-of select="marc:subfield[@code='a']"/><xsl:value-of select="$TracingQuotesRight"/></xsl:attribute> > </xsl:otherwise> > </xsl:choose> >+ <span property="keywords"> > <xsl:call-template name="chopPunctuation"> > <xsl:with-param name="chopString"> > <xsl:call-template name="subfieldSelect"> >@@ -573,6 +574,7 @@ > </xsl:call-template> > </xsl:with-param> > </xsl:call-template> >+ </span> > </a> > <xsl:if test="marc:subfield[@code=9]"> > <a class='authlink'> >-- >1.8.4.rc2
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 6594
:
20566
|
20567
|
20568
|
20569
|
20697
| 20698 |
20699
|
20700