Closed eldobbins closed 2 months ago
Options for location include:
I like the idea of providing a downloadable citation as well for people using bibliography files. This would require us to have a prefilled template and the download button would need to update the "accessed on" field for citations. I've drafted up some of the most common citation formats (BibTeX, BibLaTeX, and RIS). We can always add a DOI field later.
BibTeX
@misc{aetr_web_book_2024,
author = {{Alaska Center for Energy and Power}},
title = {{2024 Alaska Electricity Trends Report}},
year = 2024,
url = {https://acep-uaf.github.io/aetr-web-book-2024/},
note = {Accessed on April 16, 2024}
}
BibLaTeX
@online{aetr_web_book_2024,
author = {{Alaska Center for Energy and Power}},
title = {{2024 Alaska Electricity Trends Report}},
year = 2024,
url = {https://acep-uaf.github.io/aetr-web-book-2024/},
urldate = {2024-04-16}
}
RIS
TY - MISC
AU - Alaska Center for Energy and Power
TI - 2024 Alaska Electricity Trends Report
PY - 2024
DA - 2024
UR - https://acep-uaf.github.io/aetr-web-book-2024/
N1 - Accessed on April 16, 2024
Connecting commit to this issue 5d90f943ee316150ac42fc816707f6b575099448. Note that is commit does not include dynamic URL access dates for the downloadable citations.
Rough draft of citations is up on the site. Dynamic "Accessed on today's date" script written for the markdown citation.
Dynamic citations in the downloadable citations are a little trickier. We're asking the frontend to write to file, something that we've had issues with in the past. I'm not sure about feasibility. We could fake it by writing the dynamic date in the filename when downloaded.
I don't think we are there yet. I like the dynamic date in index.qmd, but the files are not updated (as Ian said)
Just came across https://quarto.org/docs/authoring/create-citeable-articles.html#web-articles which seems to describe a better way.
This seems ideal.
On Wed, Apr 17, 2024 at 10:14 AM Liz Dobbins @.***> wrote:
I don't think we are there yet. I like the dynamic date in index.qmd, but the files are not updated (as Ian said)
Just came across https://quarto.org/docs/authoring/create-citeable-articles.html#web-articles which seems to describe a better way.
— Reply to this email directly, view it on GitHub https://github.com/acep-uaf/aetr-web-book-2024/issues/48#issuecomment-2061922405, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJNMYHHMCIMHONJWIU7ONMDY523ZBAVCNFSM6AAAAABGH24AJWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRRHEZDENBQGU . You are receiving this because you commented.Message ID: @.***>
I am trying it. I cannot get it to work. I'm going to try it in my website sandbox.
We have another option: The plain text citation could remain as-is. The .bib and .bibtex files could be built from scratch when the user clicks "download", which would give us a chance to stamp the current date within the file. This would prevent us from messing with frontend/backend separation. I'm pretty sure I can work this all up with a little javascript.
Ok! Download buttons are up! Date auto-generates and inserts into the file. This is still a rough draft, but let me know what you think.
Thank goodness you got it. Using Create Citable Articles was a triple failure
citation:true
to _quarto.yml
(website) adds a citation to every page but uses the title of the page, not the title of the bookindex.qmd
worked, but look at the author! It thought "Alaska" was a first name...code added to the header (front matter)
author:
- name: "Alaska Center for Energy and Power"
url: https://www.uaf.edu/acep/
citation: true
added this to the bottom of the page (div id="quarto-appendix")
@jikaczmarski @eldobbins Could you double check the citation downloads are in the right format and readable? I've never interacted with .bib or .bibtex or .ris files. Just want to double check that everything turned out well.
Based on stuff I put in wiki, these changes are planned.
ELEC
(Zotero chose ELEC
, EndNote uses WEB
)urldate
) needs to be YYYY-MM-DD
and use the current date not the publish or modification date. citations
directory)After these changes are made, I will load these files into Zotero to make sure they work
I made the changes.
date
field and not accessed
field which isn't great but I can live with it.
Dayne suggests:
Liz's points
_citation.qmd
file and also equivalent.md
in the repo that echos that (What's the repo standard)Chicago Manual of Style
Examples from https://www.chicagomanualofstyle.org/tools_citationguide/citation-guide-1.html#cg-website