From 94893aa8345e16c2a504219e05c86a5621790351 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Fri, 26 Dec 2014 11:57:37 -0500 Subject: [PATCH] LP1405812: Relate contributors to the id.loc.gov relator vocab If we have relator codes (subfield 4), then we can specify the nature of the contribution being played much more accurately for machines than just schema:contributor by including the relator code as a second value of the @property. Signed-off-by: Dan Scott --- Open-ILS/src/templates/opac/parts/record/authors.tt2 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/templates/opac/parts/record/authors.tt2 b/Open-ILS/src/templates/opac/parts/record/authors.tt2 index 51fbe8febc..735b3ef1df 100644 --- a/Open-ILS/src/templates/opac/parts/record/authors.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/authors.tt2 @@ -105,10 +105,14 @@ BLOCK build_author_links; END; ELSIF type == 'added'; IF tag.substr(1,2) == '00'; - iprop = ' typeof="Person" property="contributor"'; + iprop = ' typeof="Person" property="contributor'; ELSE; - iprop = ' typeof="Organization" property="contributor"'; + iprop = ' typeof="Organization" property="contributor'; END; + IF relcode; + iprop = iprop _ ' http://id.loc.gov/vocabulary/relators/' _ relcode; + END; + iprop = iprop _ '"'; END; authtml = ' '; IF iprop; authtml = authtml _ ''; END; -- 2.11.0