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 <dscott@laurentian.ca>
Signed-off-by: Ben Shum <bshum@biblio.org>
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 = ' <span class="rdetail-author-div"' _ iprop _ ' resource="' _ contrib_ref _ '"><a href="' _ url _ '"><span resource="' _ contrib_ref _ '">';
IF iprop; authtml = authtml _ '<span property="name">'; END;