anystyle icon indicating copy to clipboard operation
anystyle copied to clipboard

Preserve “et al.” when parsing authors

Open defrein opened this issue 5 months ago • 1 comments

Hi! Thank you for this great tool 🙏

I’m parsing this reference:

Hassett L, et al. (2024). Effects of sport or physical recreation for adults with physical or intellectual disabilities: a systematic review with meta-analysis’. British Journal of Sports Medicine, 58(5), 269-277. 10.1136/bjsports-2023-107123

The output JSON is:

[
  {
    "author": [
      {
        "family": "Hassett",
        "given": "L."
      }
    ],
    "title": "Effects of sport or physical recreation for adults with physical or intellectual disabilities: a systematic review with meta-analysis’",
    "volume": "58",
    "type": "article-journal",
    "container-title": "British Journal of Sports Medicine",
    "issue": "5",
    "language": "en",
    "issued": {
      "date-parts": [
        [
          2024
        ]
      ]
    },
    "page": "269–277",
    "DOI": "10.1136/bjsports-2023-107123"
  }
]

But the reference contains "et al." after the first author. I’d like to ask: Is there a way to make Anystyle detect and preserve the “et al.” part in the author list?

defrein avatar Jul 05 '25 08:07 defrein

Hm, I think there's probably a bug when converting to the JSON output. In the internally, there should be an extra author { others: true } -- we'll have to debug why it does not end up in the JSON output.

inukshuk avatar Jul 05 '25 12:07 inukshuk