cioos-siooc / ckan

CKAN is an open-source DMS (data management system) for powering data hubs and data portals. CKAN makes it easy to publish, share and use data. It powers datahub.io, catalog.data.gov and europeandataportal.eu/data/en/dataset among many other sites.
http://ckan.org/
Other
2 stars 4 forks source link

Authors in citation #136

Closed ogsletcax closed 1 year ago

ogsletcax commented 2 years ago

I have been asked if author, owner, coAuthor, principalInvestigator, originator roles only could apprear in the citation

(or ideally to select the parties shown in the citation in the metadata form, but this seems a bit hard to implement)

Do you think it would be ok to do that change?

The first option would require to modify the file: https://github.com/cioos-siooc/ckanext-spatial/blob/1a3ff1a7bd85cb92667734cd4544ce2998b1aa98/ckanext/spatial/model/harvested_metadata.py

Also I see that authors are parsed in two different ways:

https://github.com/cioos-siooc/ckanext-spatial/blob/1a3ff1a7bd85cb92667734cd4544ce2998b1aa98/ckanext/spatial/model/harvested_metadata.py#L1397 (values['citation']['author']) and https://github.com/cioos-siooc/ckanext-spatial/blob/1a3ff1a7bd85cb92667734cd4544ce2998b1aa98/ckanext/spatial/model/harvested_metadata.py#L803 (values['author'])

It is the last one that is used in infer_citation

I'm wondering why authors are parsed in two different ways and why it's values['author'] and not values['citation']['author'] that is used in infer_citation

Do you have an idea?

fostermh commented 2 years ago

in infer_citation, I think value = values['citation'][0] and then later for x in value['author']. This might be an issue with an earlier version of the code?

Would you want to restrict the roles that can populate an author list per dataset, per harvester, or per catalogue? We can add a config setting to ckan or a harvester config pretty easily. I'm not sure how we would implement this if it needed to be per dataset.

fostermh commented 2 years ago

@ogsletcax any more feedback on this? We can definitely set up a config setting for this, just not sure of the best place.

ogsletcax commented 2 years ago

@fostermh Not for now, i prefer to complete the ckan (python3) migration before.

fostermh commented 1 year ago

fixed by allowing contacts to be 'included in citation' or not in the metadata entry form