[librecat-dev] creating new 'contributors' field

Jonathan NORRIS jnorris at ist.ac.at
Tue Jun 26 10:49:24 CEST 2018


Hello,

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.

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.

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:

contributor:
type: array
minItems: 0
items:
'$ref': '#/definitions/contributor'
description: "Contributor"

Then I would add a new field generator based on author.tt called 
'contributor.tt' with the added drop down menu.

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.

If anyone has any further advice on this I would greatly appreciate it.

Thanks,

Jonathan

IST Austria



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-bielefeld.de/mailman2/unibi/public/librecat-dev/attachments/20180626/5a74347d/attachment.html>


More information about the librecat-dev mailing list