openalexPro/openalexConvert: openalexConvert 0.0.5
Description
First release since v0.0.3, so this covers 0.0.4 and 0.0.5. Both concern DOI correctness and the tests that guard it. Full detail in NEWS.md.
Require openalexPro (>= 0.11.0) — 0.0.4
.normalize_doi() delegates to openalexPro::extract_doi(normalize = TRUE),
but the dependency carried no version floor. Before openalexPro 0.11.0
that function silently truncated DOIs containing <, >, [ or ],
returning a shorter string that still looked like a valid DOI — no warning,
no NA:
10.1175/1520-0450(1963)002<0713:ooasds>2.0.co;2 -> 10.1175/1520-0450(1963)002
Roughly 0.38% of real DOIs are affected (SICI-style, common in older journal content), so installing against an older openalexPro produced quietly corrupted CSL-JSON.
The comparison fixtures had been recorded while that bug was live, so they
expected the truncated form. They were regenerated, after verifying that
every difference was DOI-related: 6 CSL fields and 187 .bib lines, each a
DOI value, a doi = line, or the trailing comma above a newly added field.
Tests no longer compare pandoc's exact output — 0.0.5
The 0.0.4 regeneration fixed the DOI values but baked one machine's pandoc formatting into the fixtures, and every r-universe check then failed:
actual (r-universe): year = {0000}
expected (fixture): year = {0000},
doi = {10.1163/9789004190351_002}
r-universe builds with pandoc 3.9, which omits doi = {...} for these
entry types; the fixtures came from pandoc 3.12, which writes it. Same
input, same code.
Those comparisons were guarded by skip_on_ci() — honoured by GitHub
Actions, ignored by r-universe, which does not set CI.
Byte-comparing pandoc's output tests pandoc, not this package. The tests now
compare what csljson_convert_pandoc() is responsible for — that every
record in comes out:
| format | compared on |
|---|---|
| BibTeX / BibLaTeX | citation keys |
| LaTeX | OpenAlex ids carried in \bibitem |
| Markdown | structural only — citations render as author-year text, so no ids survive |
All five skip_on_ci() guards are gone with them, so these now run on every
platform instead of being skipped on CI.
Requires
openalexPro (>= 0.11.0).
Files
openalexPro/openalexConvert-v0.0.5.zip
Additional details
Related works
- Is supplement to
- Software: https://github.com/openalexPro/openalexConvert/tree/v0.0.5 (URL)
Software
- Repository URL
- https://github.com/openalexPro/openalexConvert