curationexperts / cypripedium

A Hyrax 3 application for the Federal Reserve Bank of Minneapolis
2 stars 3 forks source link

Update citations to use CSL sourced citation formats #578

Closed mark-dce closed 7 months ago

mark-dce commented 7 months ago

This change refactors citations to use style definitions based on the open source Citation Style Language (CSL) project. This allows us to avoid having to override hand-crafted legacy style definitions defined in Hyrax which have generally not been updated for 8 years. It also moves the functionality from view helpers into the work presenter to help better isolate this feature in the codebase.

Most importantly, using shared CSL style definitions allows us to take advantage of a well maintaned repository of open source style definitions from the Citation Style Language - Style Repository

ACKNOWLEDGEMENTS This code was heavily inspired by work by Brad Watson at Emory University Libraries https://github.com/emory-libraries/dlp-lux/pull/552 which was in turn inspired by Tamsin Johnson https://github.com/curationexperts/mahonia/pull/156

REFERENCES