From 19c521d3e8ab775f1c7b8fa70b583477c13e990a Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Fri, 5 Apr 2013 13:21:47 -0400 Subject: [PATCH] Fix schema.org mapping for MusicAlbum, add Map We had set LDR[06] = j to MusicRecording, but that is really meant for individual songs. Use MusicAlbum instead, and per http://schema.org/MusicAlbum, use a new MusicGroup itemtype with a 'byArtist' property for the primary artist rather than the generic 'accountablePerson'. Also map LDR[06] = e to Map, because that seems like a safe bet. Signed-off-by: Dan Scott Signed-off-by: Mike Rylander Conflicts: Open-ILS/src/templates/opac/parts/record/authors.tt2 --- Open-ILS/src/templates/opac/parts/misc_util.tt2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/opac/parts/misc_util.tt2 b/Open-ILS/src/templates/opac/parts/misc_util.tt2 index 689d8d1be0..79ee629e89 100644 --- a/Open-ILS/src/templates/opac/parts/misc_util.tt2 +++ b/Open-ILS/src/templates/opac/parts/misc_util.tt2 @@ -8,7 +8,8 @@ args.schema.itemtype = {}; schema_typemap = {}; schema_typemap.a = 'http://schema.org/Book'; - schema_typemap.j = 'http://schema.org/MusicRecording'; + schema_typemap.e = 'http://schema.org/Map'; + schema_typemap.j = 'http://schema.org/MusicAlbum'; args.isbns = []; FOR isbn IN xml.findnodes('//*[@tag="020"]/*[@code="a"]'); -- 2.43.2