From 0bb50a65784f00d9b47cd31bffc8385c31319216 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Thu, 22 Aug 2013 11:47:12 -0400 Subject: [PATCH] Bug 6594: Schema.org span nesting improvements So, it turns out that the was causing a new "chain" to be invoked, thus nesting the elements for properties within the actually caused the properties to be attached to that new chain rather than the containing object. Therefore, wrap the elements around the elements where applicable. Thanks to Manu Sporny in #rdfa for helping me to sort this out. Signed-off-by: Dan Scott Signed-off-by: Jared Camins-Esakov I tested by validating against the Google rich snippet tool, validator.nu, and linter.structured-data.org. All were satisfied with the microdata markup, and the properties that are set make sense. These patches are only for MARC21 XSLT view, but I think it is worth pushing them even without the NORMARC and UNIMARC markup, so that people can start to test out schema.org microdata in Koha, and refine the implementation. --- .../prog/en/xslt/MARC21slim2OPACDetail.xsl | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl index 24c23d8..56e71eb 100644 --- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl @@ -336,16 +336,14 @@ - - + b - - - + + - + @@ -546,6 +544,7 @@ Subject(s): + @@ -564,7 +563,6 @@ /cgi-bin/koha/opac-search.pl?q=su: - @@ -574,8 +572,8 @@ - + /cgi-bin/koha/opac-authoritiesdetail.pl?authid= -- 1.7.9.5