<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>We have a requirement for a 'contributors' field in our research
data publications. The idea would be to have a general
contributors field that would look like the authors/creators field
only with a drop down menu containing the contributor types. We
have a list of about 20 contributer types that will be added to
the drop down such as researcher, project member, project leader,
data collector, contact person, etc. </p>
<p>I'm looking for some advice on the best way to approach this to
get this feature and also keep the same features as the normal
author field, including the linking to existing users and the
addition of these contributors to the citeproc citations.</p>
<p>My plan is to create a new definition in the publication schema
(schemas.yml) for 'contributor' which will have the same fields as
author with the addition of an enum containing the contributor
type choices. Then I would add contributor to the properties of
the publication like so:</p>
<div style="color: #d4d4d4;background-color: #1e1e1e;font-family: 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback';font-weight: normal;font-size: 14px;line-height: 19px;white-space: pre;"><div><span style="color: #d4d4d4;"> </span><span style="color: #569cd6;">contributor</span><span style="color: #d4d4d4;">:</span></div><div><span style="color: #d4d4d4;"> </span><span style="color: #569cd6;">type</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">array</span></div><div><span style="color: #d4d4d4;"> </span><span style="color: #569cd6;">minItems</span><span style="color: #d4d4d4;">: </span><span style="color: #b5cea8;">0</span></div><div><span style="color: #d4d4d4;"> </span><span style="color: #569cd6;">items</span><span style="color: #d4d4d4;">:</span></div><div><span style="color: #d4d4d4;"> </span><span style="color: #ce9178;">'$ref'</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">'#/definitions/contributor'</span></div><div><span style="color: #d4d4d4;"> </span><span style="color: #569cd6;">description</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"Contributor"</span></div></div>
<p>Then I would add a new field generator based on author.tt called
'contributor.tt' with the added drop down menu. </p>
<p>This seems like a workable approach but I'm wondering how this
will work with the citeproc citations? Will I have to edit the
citation definition files in citeproc to display the new
contributors field? I was considering just adding the contributor
type enum to the author definition but I don't think this would be
a good approach.</p>
<p>If anyone has any further advice on this I would greatly
appreciate it.</p>
<p>Thanks,</p>
<p>Jonathan</p>
<p>IST Austria<br>
</p>
<p><br>
</p>
<p><br>
</p>
</body>
</html>