-
Notifications
You must be signed in to change notification settings - Fork 14
Description
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
bolognese/lib/bolognese/utils.rb
Line 1193 in 3abb497
| def get_series_information(str) |
This is then used by the citeproc hash (which is then used to generate citaitons) by using
bolognese/lib/bolognese/metadata_utils.rb
Line 135 in fca845f
| 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.