From 3bc1021deb851db8965e9ac3a8ff89aba71f6acc Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Tue, 18 Feb 2014 13:29:35 -0500 Subject: [PATCH] Bug 11786: Improve RDFa structured data schema.org mappings This patch updates both the prog and bootstrap themes to provide better schema.org mappings for catalogue elements in the following ways: * More granular author attributes (one "author" property per author in records with multiple contributors; wrap in a Person or Organization type instead of using a simple literal value) * Use "byArtist" instead of "author" for music recordings to respect schema.org preferences * Use alternateName instead of alternativeHeadline, as the former is a better parallel to the "name" property Signed-off-by: Dan Scott Signed-off-by: Chris Cormack Only covers MARC21, but that is no reason not to move it forward Signed-off-by: Katrin Fischer Passes all tests. Looked at the source code of a few records in both prog and bootstrap and took a look at the properties using http://www.google.com/webmasters/tools/richsnippets. Signed-off-by: Galen Charlton --- .../en/xslt/MARC21slim2OPACDetail.xsl | 35 +++++++++++++++---- .../prog/en/xslt/MARC21slim2OPACDetail.xsl | 35 +++++++++++++++---- 2 files changed, 58 insertions(+), 12 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl index 1b6ea2c0f3..3288d7738f 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl @@ -112,7 +112,7 @@ -

+

245 abhfgknps @@ -159,10 +159,11 @@ -
by +
by +
@@ -473,7 +474,7 @@ Other title: - + @@ -491,7 +492,7 @@ Title translated: - + @@ -507,7 +508,7 @@ - + 130,240 adfklmor @@ -520,7 +521,7 @@ Uniform titles: - + @@ -987,6 +988,7 @@ + ; @@ -1008,11 +1010,32 @@ /cgi-bin/koha/opac-search.pl?q=au:"" + + + + + byArtist + author + + + contributor + + + + + MusicGroup + Person + + + Organization + + + diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl index 9854e9d960..1c9e8e153f 100644 --- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl @@ -112,7 +112,7 @@ -

+

245 abhfgknps @@ -159,10 +159,11 @@ -
by +
by +
@@ -473,7 +474,7 @@ Other title: - + @@ -491,7 +492,7 @@ Title translated: - + @@ -507,7 +508,7 @@ - + 130,240 adfklmor @@ -520,7 +521,7 @@ Uniform titles: - + @@ -987,6 +988,7 @@ + ; @@ -1008,11 +1010,32 @@ /cgi-bin/koha/opac-search.pl?q=au:"" + + + + + byArtist + author + + + contributor + + + + + MusicGroup + Person + + + Organization + + + -- 2.39.5