From: Dan Scott Date: Sun, 25 Aug 2013 04:39:46 +0000 (-0400) Subject: Schema.org: improve MusicGroup vs. Person parsing X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3732a7f7629a3ca5be60465b9daf4f641448efcc;p=evergreen%2Fpines.git 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 --- 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"';