Skip to content
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

Cite-proc does not honor default term for et-al when set on bibliography/citation level #168

Open
3 tasks done
rbran100 opened this issue Aug 23, 2023 · 2 comments
Open
3 tasks done

Comments

@rbran100
Copy link
Contributor

Please follow the general troubleshooting steps first:

  • I read the README and followed the instructions.
  • I am sure that the used CSL metadata follows the CSL schema.
  • I use a valid CSL stylesheet

Bug reports:

When et-al does not have a term specified it does not use the default "et al" in this case it uses NULL, this only applies when the parent et-al element is used.

Used CSL stylesheet:

One Example:
https://github.com/citation-style-language/styles/blob/master/nature.csl

Used CSL metadata

Please replace these lines with your used metadata, for instance:

[
    {
        "author": [
            {
                "family": "Anderson", 
                "given": "John"
            }, 
            {
                "family": "Brown", 
                "given": "John"
            }, 
            {
                "family": "Crown", 
                "given": "John"
            }, 
            {
                "family": "Drown", 
                "given": "John"
            }, 
            {
                "family": "Erown", 
                "given": "John"
            }, 
            {
                "family": "Frown", 
                "given": "John"
            }, 
            {
                "family": "Grown", 
                "given": "John"
            }
        ], 
        "id": "ITEM-2", 
        "type": "book",
        "title": "Two authors writing a book"
    }
]
rbran100 added a commit to rbran100/citeproc-php that referenced this issue Aug 23, 2023
@rbran100
Copy link
Contributor Author

@sebboettg you can see how this ends up null if you follow the path here: https://github.com/rbran100/citeproc-php/blob/168-et-al/src/Rendering/Name/Name.php#L329

@rbran100
Copy link
Contributor Author

Can confirm that this fix has been working for us in production.

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

No branches or pull requests

1 participant