From fa8eb2d07859c010bfc6a4e6037607105ff59075 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 --- .../bootstrap/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 1b6ea2c..3288d77 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 9854e9d..1c9e8e1 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 + + + -- 1.8.3.2