From 3732a7f7629a3ca5be60465b9daf4f641448efcc Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Sun, 25 Aug 2013 00:39:46 -0400 Subject: [PATCH] Schema.org: improve MusicGroup vs. Person parsing Take a stricter approach to defining MusicGroups instead of Persons for the main authors of MusicAlbums. Music groups are generally catalogued as a 110 or 710 tag, and this avoids defining birthDates and deathDates for groups (which, however valid that might be in the real world, is not valid for schema.org). Signed-off-by: Dan Scott Signed-off-by: Ben Shum --- Open-ILS/src/templates/opac/parts/record/authors.tt2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/opac/parts/record/authors.tt2 b/Open-ILS/src/templates/opac/parts/record/authors.tt2 index d2adff065d..005b48a0f1 100644 --- a/Open-ILS/src/templates/opac/parts/record/authors.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/authors.tt2 @@ -67,7 +67,7 @@ BLOCK build_author_links; # schema.org changes IF type == 'author'; - IF args.schema.itemtype && args.schema.itemtype.match('MusicAlbum'); + IF tag.substr(1,2) == '10' && args.schema.itemtype && args.schema.itemtype.match('MusicAlbum'); iprop = ' itemtype="http://schema.org/MusicGroup" itemscope itemprop="byArtist"'; ELSIF tag.substr(1,2) == '00'; iprop = ' itemtype="http://schema.org/Person" itemscope itemprop="author"'; -- 2.43.2