Skip to content

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

@s-u

Description

@s-u

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions