From: Dan Scott Date: Fri, 26 Dec 2014 16:57:37 +0000 (-0500) Subject: LP#1405812: Relate contributors to the id.loc.gov relator vocab X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=114bee120c08f6825997f274f03b119f2b6c5e3a;p=evergreen%2Fmasslnc.git 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 --- 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;