Dataset Page: Citation Styles Integration - #1017
Conversation
|
|
This reverts commit dec13a7.
This reverts commit 8aeaf9b.
|
|
This reverts commit dec13a7.
This reverts commit 8aeaf9b.
What this PR does / why we need it:
Populate information to the Styled Citation Modal, so user could select a styled citation and copy-paste from the modal

Which issue(s) this PR closes:
Special notes for your reviewer:
cslStyle.json is a static bundled JSON file of 2,595 hardcoded
{slug, label}entriesciteproc did the style conversion in two spieces:
cslStyleFetcher.tsfetches the actual style's CSL XML definition (the rules for how that particular style formats citations) live from cdn.jsdelivr.net/gh/citation-style-language/styles@master/{slug}.csl— this is a different repo/CDN than the static JSON list above, and it's a real network call, cached in memory (styleXmlCache).citeprocEngine.tsis whereciteproc.jsactually does the conversion: it constructs a CSL.Engine fed by that style XML + locale XML + the dataset's CSL-JSON metadata (title, authors, date, etc.), then callsengine.makeBibliography(), which isciteproc.js's own rendering engine applying the style's rules to the JSON data and producing the formatted HTML citation string.Suggestions on how to test this:
screenRecordingStyleCitation.mov
Does this PR introduce a user interface change? If mockups are available, please link/include them here:
Add a copy icon in front of "Cite Dataset"

Is there a release notes or changelog update needed for this change?:
yes
Additional documentation: