plk / biblatex-apa

APA style for BibLaTeX
90 stars 48 forks source link

organization for @online? #124

Closed moewew closed 3 years ago

moewew commented 4 years ago

Inspired by https://tex.stackexchange.com/q/559479/35864

Looking at https://apastyle.apa.org/style-grammar-guidelines/references/examples/webpage-website-references it appears that some @online references have an additional organization in the 'source element', e.g.

U.S. Census Bureau. (n.d.). U.S. and world population clock. U.S. Department of Commerce. Retrieved January 9, 2020, from https://www.census.gov/popclock/

Currently, there doesn't appear to be a natural way to reproduce this output with biblatex-apa.

In analogy to standard biblatex, I'd suggest enabling the organization field for @online.

\listfiles
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[american]{babel}
\usepackage[autostyle=true]{csquotes}
\usepackage[style=apa, backend=biber]{biblatex}

\begin{filecontents}{\jobname.bib}
@online{popclock,
  author    = {{U.S. Census Bureau}},
  title     = {{U.S.} and World Population Clock},
  url       = {https://www.census.gov/popclock/},
  urldate   = {2020-01-09},
  organization = {U.S. Department of Commerce},
}
\end{filecontents}
\addbibresource{\jobname.bib}

\begin{document}
\autocite{popclock}.

\printbibliography
\end{document}
plk commented 4 years ago

This does currently work as this is one of the reference entries (APA 10.16 Example 114) but only EPRINT was being considered for that position. I have added ORGANIZATION too as it is more natural for this case.