Skip to content

Support using related_items metadata when generating ciations #124

@richardhallett

Description

@richardhallett

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions