CSL: allow dropping items from bibliography?
This is one of those not-sure-why-we've-not-hit-this-before issues.
The style discussed in this thread omits some item types from the bibliography. I assume that's by intention, and it has me wondering whether the citation processor shouldn't just silently omit such references in that case. You would still get an unsightly "no reference" blob in the body of the document, where the reference absolutely must appear in all cases, so little would be lost.
The style discussed in this thread omits some item types from the bibliography. I assume that's by intention, and it has me wondering whether the citation processor shouldn't just silently omit such references in that case. You would still get an unsightly "no reference" blob in the body of the document, where the reference absolutely must appear in all cases, so little would be lost.
@Rintze -- any concerns?
What would be the criteria for suppressing a bibliographic entry? The absence of any rendering elements within cs:layout for the item (apart from cs:choose)? Or the absence of any printed variable content (apart from automatic generated variables such as "citation-number". And what would happen if you'd switch to a numeric style? Would the in-text citation not get a value assigned for "citation-number" if there is no corresponding bibliographic entry? Should the CSL processor print a warning in that case? I also assume that people might actually want to combine "author-date" type personal communication entries with an otherwise numeric style, which would need changes in all numeric styles to support this. And how would sorting and collapsing work in in-text citations that combine a set of regular numeric cites with one or more of these "author-date" type personal communication cites?
citeproc-js
, now available in the Propachi plugins:- Skip empty entries instead of printing the ugly placeholder, in non-numeric styles only
- Slightly improve the formatting of the ugly placeholder, when it appears in the bibliography of a numeric style.
Let's see how it goes ...