From fa68cda549a14fa0286c07035faa6bfa5654b536 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. Signed-off-by: Chris Cormack FWIW I agree with Jared, it is essentially a no-op in terms of what the user sees, so is safe. Signed-off-by: Galen Charlton --- .../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 a32aea4685..5b536299b8 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= -- 2.39.5