hydroshare / hydroshare

HydroShare is a collaborative website for better access to data and models in the hydrologic sciences.
https://www.hydroshare.org
BSD 3-Clause "New" or "Revised" License
180 stars 37 forks source link

As a User, I want the ability to export citations for published resources in serveral formats #4505

Open aaraney opened 2 years ago

aaraney commented 2 years ago

Describe the feature you'd like and what it will do

On a published resource's HydroShare page, I want an export citation feature that allows me to export a citation in a specified style (e.g. apa, mla, bibtex). Specifically, I want a drop down near "How to Cite" that allows me to select an output citation format. Once selected, the content below the "How to Cite" subheader should populate with a citation in the specified format.

Why is this feature important?

Everyone has their own system for writing and holding onto citations, this feature would empower users to decide how they would like to consume a resource's citation.

Additional context

In doing other work related to DOIs, I stumbled upon documentation regarding DOI Content Negotiation. In short, there are mechanisms in place that enable passing a specified content mime-type in the Accept header of an http request that dictate the returned citation format. I think this service should likely be the driver of this feature (if it is added). See the documentation for the mime-types accepted. Below is an example:

$ curl -LH "Accept: text/bibliography; style=bibtex" https://doi.org/10.4211/hs.ea5d0091789043e8a8091ae43d314554

 @article{1, url={http://dx.doi.org/10.4211/hs.ea5d0091789043e8a8091ae43d314554}, DOI={10.4211/hs.ea5d0091789043e8a8091ae43d314554}, journal={HydroShare Resources}, publisher={Consortium of Universities for the Advancement of Hydrologic Science, Inc. (CUAHSI)} }

$ curl -LH "Accept: text/bibliography; style=apa" https://doi.org/10.4211/hs.ea5d0091789043e8a8091ae43d314554

CESEP Brine Leakage Control Experiment. (n.d.). HydroShare Resources. https://doi.org/10.4211/hs.ea5d0091789043e8a8091ae43d314554
horsburgh commented 2 years ago

See #4078 and #97

aaraney commented 2 years ago

Thanks for linking the related issues, @horsburgh!

@dtarb's quoted comment from #4078

dtarb commented on Dec 30, 2020 We appreciate the suggestion. It is a good idea. This was actually considered early on #97, but time, effort, money, priorities etc. have so far precluded us being able to do this. Perhaps this time the suggestion is a charm.

To @dtarb's point, the service offered by the aforementioned DOI content negotiators, if relied upon, should make this is a pretty easy lift.

amabdallah commented 1 year ago

Any update on this feature? Thank you! It would save us time to manually enter the HydroShare reference into EndNote.

dtarb commented 1 year ago

@amabdallah this is in our backlog. We are not sure when we will be able to prioritize it.