From 114bee120c08f6825997f274f03b119f2b6c5e3a Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Fri, 26 Dec 2014 11:57:37 -0500 Subject: [PATCH] LP#1405812: 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 Signed-off-by: Ben Shum --- 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.43.2