`singletitle`/`uniquetitle`/`uniquework` only ignore entries whose `options` field contains the literal token `skipbib`; `skipbib=true` and `dataonly` still count
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
Research direction
The check lives in process_workuniqueness in lib/Biber.pm, which currently matches the literal string skipbib in the raw options field. Replace it with a lookup of the processed skipbib option via Biber::Config->getblxoption, then reproduce with the six-entry test.bib and the authoryear singletitle=true document from the issue. Done when entries a, c and e all get \true{singletitle}, and the t/ test suite still passes.
Written by the indexing model from the issue text.
Description
🤖 This issue was identified by Claude Opus 5.5, and the text below is entirely written by Claude Opus 5.5
process_workuniqueness leaves entries that are not in the bibliography out of the work-uniqueness counts, but it recognises them by looking for the exact string skipbib in the raw options field. (The check was added for #496, and related-entry clones work.) Equivalent spellings are missed:
@book{a, author={Smith, John}, title={T1}, year={2000}}
@book{b, author={Smith, John}, title={T2}, year={2001}, options={skipbib}}
@book{c, author={Jones, Bob}, title={T3}, year={2000}}
@book{d, author={Jones, Bob}, title={T4}, year={2001}, options={skipbib=true}}
@book{e, author={Brown, Al}, title={T5}, year={2000}}
@book{f, author={Brown, Al}, title={T6}, year={2001}, options={dataonly}}
\documentclass{article}
\usepackage[style=authoryear,singletitle=true]{biblatex}
\addbibresource{test.bib}
\begin{document}
\cite{a,b,c,d,e,f}
\printbibliography
\end{document}
biber 2.22 and current dev (79a1edc) give \true{singletitle} to a only. c and e are in exactly the same situation (one bibliography work by the author, plus one entry that is not printed), but d (skipbib=true) and f (dataonly, which implies skipbib) are counted, so c and e lose singletitle. The same check guards uniquetitle, uniquebaretitle and uniquework.
Suggested fix
Use the processed per-entry option instead of the raw field. This also covers set members, which get skipbib from process_sets:
--- a/lib/Biber.pm
+++ b/lib/Biber.pm
@@ -2199,11 +2199,10 @@
# ignore settings from inheritance data?
my $ignore = Biber::Config->get_uniq_ignore($citekey);
- # If this is a data clone with skipbib set, don't record uniqueness info
- if (my $options = $be->get_field('options')) {
- if (grep {$_ eq 'skipbib'} $options->@*) {
- return;
- }
+ # Entries not in the bibliography (skipbib in any form, dataonly, set members)
+ # don't take part in work uniqueness
+ if (Biber::Config->getblxoption($secnum, 'skipbib', undef, $citekey)) {
+ return;
}
# singletitle
With this change a, c and e all get \true{singletitle}. All tests in t/ pass on dev (79a1edc) with this patch, applied together with the others I'm filing alongside it.
- Dominant language
- TeX
- Stars
- 396
- Forks
- 40
- Avg merge
- 8h 3m
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from plk/biber
-
Difficulty 2/5 1-3 hours Newbie friendliness 60/100
-
`--output-fieldcase=Upper` (any non-lowercase spelling) and an invalid `output_fieldcase` in `biber.conf` crash biberPossibly taken @plk claimed this 1 day ago. OpenBug fixedindev
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
`presort` values are used as a regex: `presort = {a(b}` crashes biber, and `|`, `+`, `?` give the wrong `sortinit`Possibly taken @plk claimed this 1 day ago. OpenBug fixedindev
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Range length wrong when an abbreviated range end contains a 0 (`pages = {315-20}` gives `\range{pages}{11}`)Possibly taken @plk claimed this 8 days ago. OpenBug fixedindev
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
biber hangs forever when a name list contains an empty name (e.g. `author = {Doe, Jane and ,}`)Possibly taken @plk claimed this 8 days ago. OpenBug fixedindev
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
a2aproject/a2a-java#1275 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
darktable-org/darktable#22939 ·
Maintainers usually reply within 1 day
-
ready-for-agent
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
LucasSantana-Dev/Lucky#2951 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
status: waiting-for-triage type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
spring-projects/spring-integration#11654 ·
Maintainers usually reply within 1 day