Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Journal (site) title is incorrectly prepended to the article title in cititations. #504

Open
s-u opened this issue Jan 3, 2024 · 0 comments

Comments

@s-u
Copy link

s-u commented Jan 3, 2024

Articles have the journal (site) title prepended unconditionally in the Citation section, i.e. title = "The R Journal: Some Article" although it should be correctly title= "SomeArticle", e.g.

For attribution, please cite this work as

Zeng & Breheny, "The R Journal: The biglasso Package: A Memory- and Computation-Efficient Solver
for Lasso Model Fitting with Big Data in R", The R Journal, 2021

BibTeX citation

@article{RJ-2021-001,
  author = {Zeng, Yaohui and Breheny, Patrick},
  title = {The R Journal: The biglasso Package: A Memory- and Computation-Efficient Solver for Lasso Model Fitting with Big Data in R},
  journal = {The R Journal}, [...]
 

This comes from

distill/R/metadata.R

Lines 870 to 876 in d88adca

qualified_title <- function(site_config, metadata) {
if (!is.null(site_config$title) && !identical(site_config$title, metadata$title)) {
sprintf("%s: %s", site_config$title, metadata$title)
} else {
metadata$title
}
}
and there seems no way to disable it.

I would argue that it is never desirable to have the site title prepended as it is never the title for citation purposes (that's what the journal entry is for) and hence I'd call it a bug, but at the very least there should be a way to disable this behavior. Quick fix is to remove the above, but it is also possible that qualified_title() is used incorrectly in the citation context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant