-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement container tracking feature from CSL-M #96
Comments
@bwiernik, @bdarcus what do you think about those as enhancements for vanilla csl? |
This is used for collapsing of parallel citations in legal items, right? |
(parallel citations are supported via these attributes.) For reference: use case is here. From the csl-m specification:
With this, you can cite individual chapters from a legal commentary in the notes, but have only the legal commentary as a whole in the bibliography, i.e., not the individual chapters. The other attributes implement certain test, e.g. whether a container has been seen already. |
Ah yes, we'd hoped to add something like this. Annual Reviews and many German styles need it. Didn't realize that CSL-M had implemented |
I don't have a link to previous discussion at hand, but the question was whether we wanted to match containers based on matching field content or require some sort of related item structure. I am in favor of matching field content |
A related item structure would clearly more powerful and precise, but also more difficult to implement. |
Yes, unfortunately related items would bubble up into GUI work and changes to library management. If you were going to do related item structure, you would do it like For the field matching, Frank's implementation simply makes a "container id" out of the fields There is, however, nothing stopping you from doing both ideas, starting with the easy one (field matching). Later, you could have the presence of a |
German legal commentaries often simply bear the commented law’s official title with "commentary" appended as their title, so that on itself would not be enough to properly distinguish works, and One thing that just recently came to my mind are looseleaf commentaries. In fact, commentary type 4 from #92 is probably the digital variant of a traditional looseleaf commentary. These do not have an |
Could you take a look at how commentaries are handled in the CSL-M specification (https://citeproc-js.readthedocs.io/en/latest/csl-m/index.html#legal-commentary-extension) and in the Jurism/Indigo Book collaboration (https://juris-m.github.io/indigobook/) and see if what you are describing is consistent with what's happening there? |
Sure. CSL-M holds CSL-M does not specify how the “container” is inferred from the bibliography entries, unless I have overlooked something. This looks like a flaw to me and explains @cormacrelf’s question to me. Biblatex deals with this rather pragmatically: the user is required to specify the container as a separate entry with it’s own ID and reference it’s ID in a special field named If I read the CSL-M specification correctly, the virtual “container” entry does not get passed in itself as a separate entry through the CSL processor. Instead, the chapters themselves are passed. It is not clear to me if a single random example is passed from all the collapsed entries, simply the first one, or all of them. In the latter case it would be required to suppress any output for all but a single entry, because otherwise the collapsing effect would not be achieved. It may be that this is what the <choose>
<if type="legal_commentary">
<choose>
<if container-multiple="true">
<text value="I am a collapsed entry"/>
</if>
</choose>
</if>
</choose> would this print If instead Biblatex’s approach with a separate container entry in the bibliography database is followed, it would make sense to simply and only pass that entry through the CSL processor and suppress the to-be-collapsed individual entries entirely.
I am afraid that the Indigo Book does not contain any reference to legal commentaries. This is not surprising, because this kind of literature is specifically European, if not German, and it is not used in the US, which is the Indigo Book’s primary target if I read the foreword correctly. In case law tradition (i.e. everywhere the British Empire left its footprint, which is a considerable part of the world and probably all countries speaking English) this kind of literature does not make much sense anyway, since it is specifically about guiding the professional’s work with the text of the law as adopted by parliament. Specifically, the Indigo Book’s rule 28.5 deals with editors and the fourth example includes one. This is fine in itself, but rule 28 does not concern itself with what happens if different works by different authors from the same book are cited. Rule 28 in this case will yield two entirely independent citations, which conflicts with how it would have to be cited in a German publication. Even in a footnote-only citation style it is recommended to give the full details only once in these cases, though there does not appear to be a rigid enforcement of this. |
With a good year gone by, is there any progress on this matter? Do you need more information from me? |
Unfortunately, there has been no progress, but now I had thought a bit about the problem and I wanted to ask your opinion about making use of a "crossref" field, which citeproc-el already can handle in biblatex input thanks to the parsebib library, and could simply transfer to an analogous CSL field. It would make the implementation way easier, I think. |
Am Mittwoch, dem 25. Januar 2023 schrieb András Simonyi:
Unfortunately, there has been no progress, but now I had thought a bit
about the problem and I wanted to ask your opinion of making use of a
"crossref" field, which citeproc-el already can handle in biblatex
input thanks to the parsebib library, and could simply transfer it as
a CSL field. It would make the implementation way easier, I think.
Using an explicit “crossref” field appears fine to me. I am already
doing that internally in my .bib databases anyway to keep things clean.
-quintus
…--
Dipl.-Jur. M. Gülker | https://mg.guelker.eu | PGP: Siehe Webseite
Passau, Deutschland | ***@***.*** | O<
|
I have elevated this to CSL itself as I think it is a worthwhile addition even outside of the law discipline: citation-style-language/schema#436 |
I'm looking into implementing this now, at least partially. An issue which I'm not clear about is the role of |
A disturbing thing about |
Would you like to schedule a video chat session to think through these implementation and logic challenges together? |
Dear Andras,
as a followup to #92 (comment) I would like to ask if it is possible to implement from CSL-M the container tracking feature, that is,
track-containers
,consolidate-containers
,first-container-reference-note-number
,position="container-subsequent"
,container-multiple
,container-subsequent
. As discussed in the linked issue, this comes in quite handy for certain kinds of work.This feature is, as far as I can tell from the CSL-M spec, not incompatible with ordinary CSL, but just an extension, so implementing it should not conflict with the code for normal CSL processing.
-quintus
The text was updated successfully, but these errors were encountered: