Problem/Motivation

When using a CSL that shows the Date Published field, Bibcite appends AD to the 4-digit year, even though the CSL specification says that AD is only added to 2-digit years (and BC is appended to negative years). https://docs.citationstyles.org/en/stable/specification.html#ad-and-bc

Steps to reproduce

  1. In a site with Bibcite entities enabled, create a reference with Date Published filled in. My example was a Journal Article.
  2. Make sure you are displaying citations with a CSL that shows Date Published. I used Chicago Manual of Style 16th ed., which puts Date Published in parentheses before the Year of Publication.
  3. Create a citation list. A view with the "Reference: Citation" field will work. Make sure the CSL from step 2 is used.
  4. Observe that the Date Published appends AD to the year. Example: John Smith. (05/2021AD) 2021. "Awesome Journal Article…"

Proposed resolution

Bibcite should not display AD after 4-digit years. Bonus for appending AD to two-digit years and adding BC support. I don't think there are many journal articles published earlier than 100AD, but other reference types could benefit from this feature.

CommentFileSizeAuthor
#3 3265671-3.patch552 bytesa_khalipau

Comments

notmike created an issue. See original summary.

tlwatson’s picture

+1. Not only this, but in Chicago style, the date shouldn't be there at all for most reference types - see documentation.

a_khalipau’s picture

Status: Active » Needs review
StatusFileSize
new552 bytes

The source of the issue is a CslReferenceNormalizer::extractDate method. It does not parse data parts correctly.

  • xopoc authored 3eef107d on 2.0.x
    Issue #3265671 by xopoc, notmike: Date Published appends AD (anno domini...

  • AardWolf committed 7e1b5029 on 3.0.x authored by xopoc
    Issue #3265671 by xopoc, notmike: Date Published appends AD (anno domini...

hxdef credited AardWolf.

hxdef’s picture

Status: Needs review » Fixed

Thank you very much for your work! Added this to the module

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.