Skip to content

config: fix citation styles for Vancouver and Chicago with csl 1.0.2 - #3524

Merged
tmorrell merged 1 commit into
inveniosoftware:masterfrom
ptamarit:fix-citation-styles-vancouver-chicago
Jul 24, 2026
Merged

config: fix citation styles for Vancouver and Chicago with csl 1.0.2#3524
tmorrell merged 1 commit into
inveniosoftware:masterfrom
ptamarit:fix-citation-styles-vancouver-chicago

Conversation

@ptamarit

@ptamarit ptamarit commented Jul 24, 2026

Copy link
Copy Markdown
Member

Related PRs:

Two of the default citations styles are broken with csl 1.0.2:

On a side note, somebody contacted us last month on Zenodo support, asking us to add support for NLM. When I told them that Vancouver and NLM was the same thing, they responded:

The Vancouver citation style is indeed similar [...]. I found a few key differences:

  1. Vancouver style truncates the author list. It lists the first 6 and adds "et al." for the remaining authors. NLM style lists all authors.
  2. The Vancouver style on Zenodo appears to list the names as First Name Last Name, but both Vancouver and NLM style list the Last name first, followed by the First and Middle Initials. Maybe this is a limitation of Zenodo being unable to distinguish first names from last names? I'm citing software like https://zenodo.org/records/18880164
  3. Vancouver style hides DOI, but NLM adds DOI as "doi: xx/xx" at or near the end.

There might be other differences regarding citation dates and tags in square brackets, but the above three were the ones that I changed from Vancouver to get NLM (or close enough to NLM) when citing resources on Zenodo. It would be great to add an NLM option with at least those changes!

Comment thread invenio_app_rdm/config.py
("modern-language-association", _("MLA")),
("vancouver", _("Vancouver")),
("chicago-fullnote-bibliography", _("Chicago")),
("nlm-citation-sequence", _("Vancouver")),

@ptamarit ptamarit Jul 24, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if the label should be changed to "NLM" (see description in PR).

@ptamarit ptamarit changed the title config: fix citation styles for Vancouver and Chicago config: fix citation styles for Vancouver and Chicago (csl 1.0.2) Jul 24, 2026
@ptamarit
ptamarit force-pushed the fix-citation-styles-vancouver-chicago branch from 978ac93 to 2fb5f1e Compare July 24, 2026 12:14
@ptamarit ptamarit changed the title config: fix citation styles for Vancouver and Chicago (csl 1.0.2) config: fix citation styles for Vancouver and Chicago with csl 1.0.2 Jul 24, 2026

@slint slint left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but summoning @tmorrell to have a 2nd look.

@tmorrell tmorrell left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! We've customized to different styles so I didn't notice the changes.

@tmorrell
tmorrell merged commit 400d729 into inveniosoftware:master Jul 24, 2026
4 checks passed
@ptamarit
ptamarit deleted the fix-citation-styles-vancouver-chicago branch July 27, 2026 08:16
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

Successfully merging this pull request may close these issues.

3 participants