Skip to content

Commit ffa46d4

Browse files
feat: update citation formats with author, full title, and DOI, add BibTeX and RIS options, and regenerate PDF.
1 parent ed08d10 commit ffa46d4

2 files changed

Lines changed: 25 additions & 7 deletions

File tree

‎public/yourselftoscience.pdf‎

17.8 KB
Binary file not shown.

‎scripts/updatePdfPage.js‎

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -416,19 +416,37 @@ try {
416416
page-break-inside: avoid;
417417
`;
418418

419-
const apa = `Yourself to Science. (${year}). <em>Building the world’s simplest way for anyone to contribute to science — starting now</em>. Retrieved from ${siteUrl}`;
420-
const mla = `"Yourself to Science." <em>Yourself to Science</em>, ${year}, ${siteUrl}.`;
421-
const chicago = `Yourself to Science. "Building the world’s simplest way for anyone to contribute to science — starting now." Accessed ${date}. ${siteUrl}.`;
419+
const title = "Yourself to Science™: A Comprehensive Open-Source List of Services for Contributing to Science with Your Data, Genome, Body, and More";
420+
const doiUrl = `https://doi.org/${latestDoi}`;
421+
422+
const apa = `Marcolongo, M. (${year}). <em>${title}</em>. Yourself to Science™. ${siteUrl}. ${doiUrl}`;
423+
const mla = `Marcolongo, Mario. "${title}" <em>Yourself to Science™</em>, ${year}, ${siteUrl}, ${doiUrl}.`;
424+
const chicago = `Marcolongo, Mario. ${year}. "${title}" Yourself to Science™. Accessed ${date}. ${siteUrl}. ${doiUrl}.`;
425+
const bibtex = `@misc{Marcolongo_${year}_YourselfToScience,
426+
author = {Marcolongo, Mario},
427+
title = {${title}},
428+
year = {${year}},
429+
publisher = {Yourself to Science™},
430+
journal = {yourselftoscience.org},
431+
howpublished = {\\url{${siteUrl}}},
432+
doi = {${latestDoi}}
433+
}`;
434+
const ris = `TY - GEN
435+
AU - Marcolongo, Mario
436+
PY - ${year}
437+
TI - ${title}
438+
UR - ${siteUrl}
439+
PB - Yourself to Science™
440+
DO - ${latestDoi}
441+
ER -`;
422442

423443
div.innerHTML = `
424444
<h3 style="font-size: 14pt; font-weight: bold; margin-bottom: 15px;">How to Cite This Page</h3>
425-
<div style="margin-bottom: 15px;">
426-
<strong>Recommended:</strong><br>
427-
Yourself to Science. (${year}). Building the world’s simplest way for anyone to contribute to science — starting now. Retrieved from ${siteUrl}. DOI: ${latestDoi}
428-
</div>
429445
<div style="margin-bottom: 10px;"><strong>APA:</strong><br>${apa}</div>
430446
<div style="margin-bottom: 10px;"><strong>MLA:</strong><br>${mla}</div>
431447
<div style="margin-bottom: 10px;"><strong>Chicago:</strong><br>${chicago}</div>
448+
<div style="margin-bottom: 10px;"><strong>BibTeX:</strong><br><pre style="margin: 5px 0; font-size: 9pt; white-space: pre-wrap;">${bibtex}</pre></div>
449+
<div style="margin-bottom: 10px;"><strong>RIS (for Zotero/EndNote):</strong><br><pre style="margin: 5px 0; font-size: 9pt; white-space: pre-wrap;">${ris}</pre></div>
432450
`;
433451
document.body.appendChild(div);
434452
};

0 commit comments

Comments
 (0)