Schema.org authors: relate properties to the right context
authorDan Scott <dscott@laurentian.ca>
Sun, 25 Aug 2013 04:41:37 +0000 (00:41 -0400)
committerBen Shum <bshum@biblio.org>
Mon, 26 Aug 2013 16:16:53 +0000 (12:16 -0400)
commitad0da8c8fed4699e8a881d0e1e85cba1742e64bf
tree3f9c0ec10d3a3149dc3bc6f22ca38d4d2fdf92fb
parent21bc07079d265b90c5e0a780718810ac3b384b4d
Schema.org authors: relate properties to the right context

While the approach of using the existing <a href> to launch a new search
based on the author name was workable, it may have been confusing for
schema.org processors such as Google Rich Snippets who expected that URI
to identify a resource for the author, not a set of search results.

Using @resource / @about attribute pairing, and wrapping the whole type
in an extra <span> element, enables us to avoid associating the
properties within the <a href> with the implicitly chained type.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/templates/opac/parts/record/authors.tt2