Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use YML-defined suggested citation in API upload script #32

Open
phargogh opened this issue Feb 28, 2024 · 6 comments
Open

Use YML-defined suggested citation in API upload script #32

phargogh opened this issue Feb 28, 2024 · 6 comments
Labels
enhancement New feature or request on hold We're waiting on something else to finish

Comments

@phargogh
Copy link
Member

The UK Natural History Museum has a suggested citation on their pages (example), which would be a nice feature to add.

@phargogh phargogh added the enhancement New feature or request label Feb 28, 2024
@phargogh
Copy link
Member Author

I wonder if https://github.com/datopian/ckanext-doi is related?

@phargogh
Copy link
Member Author

phargogh commented Mar 1, 2024

So it turns out that ckanext-doi is related, but there's an administratively separate issue of using Stanford's DataCite subscription to pay for it, which will cost on the order of $1000/year for access.

While looking into this , I also started looking into ckanext-attribution, but couldn't immediately get the extension to compile due to issues with spacy. It isn't clear if ckanext-attribution is strictly needed, and there are likely other ways to represent the information we need. #36 for that plugin.

At this time, the clearest, simplest path forwards appears to be through adding a custom field in our custom NatCap plugin (CKAN API docs), so I think that's what I'll do next.

@phargogh
Copy link
Member Author

phargogh commented Mar 6, 2024

It turns out this can be done really easily with ckanext-scheming.

@phargogh
Copy link
Member Author

phargogh commented Mar 6, 2024

Suggested citation field is live!

Next task: figure out how to edit the suggested citation via the API

@phargogh
Copy link
Member Author

phargogh commented Mar 6, 2024

We have now figured out how to add a suggested citation via the api, so we this issue is now on hold until we figure out the MCF side of things. Waiting on natcap/geometamaker#17

@phargogh phargogh added the on hold We're waiting on something else to finish label Mar 6, 2024
@phargogh phargogh changed the title Allow a suggested citation to be defined Use YML-defined suggested citation in API upload script Mar 6, 2024
@phargogh
Copy link
Member Author

phargogh commented Mar 6, 2024

OK well, it turns out that I haven't yet figured out how to actually set the attribute yet when the attribute is defined in ckanext-scheming. And the docs aren't particularly helpful on this front either. Still investigating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request on hold We're waiting on something else to finish
Projects
None yet
Development

No branches or pull requests

1 participant