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

Support using related_items metadata when generating ciations #124

Open
richardhallett opened this issue Aug 22, 2021 · 0 comments
Open

Comments

@richardhallett
Copy link
Contributor

richardhallett commented Aug 22, 2021

Description

When generating a citaiton that contains related_items metadata, this should support retrieving information from the new related_items as part of DataCite metadata 4.3

i.e. using volume/issue

e.g.

bolognese -t citation https://doi.org/10.48558/0QK4-ZZ97

Should produce something like:

Youn , A., & Forti , M. (2019). Big Gift, Big Impact. Stanford Social Innovation Review, 17(2),B10. https://doi.org/10.48558/0QK4-ZZ97

Implementation

This is currently using the container metadata, which technically doesnt exist in the metadata and was a workaround to support extra data by parsing descriptions with a descriptionType of "SeriesInformation".

series_information = Array.wrap(meta.dig("descriptions", "description")).find { |r| r["descriptionType"] == "SeriesInformation" }.to_h.fetch("__content__", nil)

And parsed with

def get_series_information(str)

This is then used by the citeproc hash (which is then used to generate citaitons) by using

def citeproc_hsh

So roughly this would need to change to support also getting information primarily from related_items, however we should probably backward support the "Container" metadata if it exists.

Front logo Front conversations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant