packages feed

pandoc-citeproc-0.3: tests/biblio2yaml/dates.biblatex

@comment{
    - Dates
    - Not included in tests:
        - malformed dates and date ranges
        - literal dates ("13th century"; not supported by biblatex)
        - seasons (would have to come from parsing the issue field)
        - uncertain dates (use "doubtfuldate" from biblatex-apa?)
        - dates with single-digit day or month (not supported by biblatex)
        - negative dates (not supported by biblatex)
    - Note: biblatex supports years < 1000 but only if padded with leading zeros
    - TODO:
        - either biblio2yaml or, probably better, citeproc should strip leading zeros
         from days and months (CSL can add leading zeros to its output, but not remove
         them when they are in its input data)
}

@article{year-month-old,
    Author = {Author, Al},
    Journal = {Journal},
    Month = aug,
    Title = {Year and Month, bibtex style, supported by biblatex for backwards compatibility},
    Year = {1999}}

@article{year-month-new,
    Author = {Author, Al},
    Journal = {Journal},
    Month = {08},
    Title = {Year and Month, biblatex style; note that biblatex does not have a "day" field},
    Year = {1999}}

@article{dates,
    Author = {Author, Al},
    Date = {2012-12-13},
    Eventdate = {2011-10-03},
    Journal = {Journal},
    Month = may,
    Origdate = {1888-10-01},
    Title = {Dates, default biblatex style; year, month to be ignored if date exists},
    Urldate = {1999-05-23},
    Year = {9999}}

@article{date-ranges-different-years,
    Author = {Author, Al},
    Date = {1999-10-14/2010-01-23},
    Eventdate = {1999-12/2000-01},
    Journal = {Journal},
    Origdate = {1888-01-02/1913-12-13},
    Title = {Date ranges; different years},
    Urldate = {2012-10-12/2013-01-31}}

@article{date-ranges-same-year,
    Author = {Author, Al},
    Date = {1999-10-14/1999-10-15},
    Eventdate = {1999-10/1999-11},
    Journal = {Journal},
    Origdate = {1888-01-02/1888-12-13},
    Title = {Date ranges; same year},
    Urldate = {2012-10-31/2012-11-01}}

@article{date-ranges-open,
    Author = {Author, Al},
    Date = {1999-10-14/},
    Eventdate = {1999-10/},
    Journal = {Journal},
    Origdate = {1888-01-02/},
    Title = {Date ranges, open-ended},
    Urldate = {2012-10-31/}}

@article{dates-very-old,
    Author = {Author, Al},
    Date = {0712-12-13},
    Eventdate = {0311-10-03},
    Journal = {Journal},
    Month = may,
    Origdate = {0088-10-01},
    Title = {Dates, year less than 1000},
    Urldate = {0999-12-14}}

---
references:
- author:
  - family: Author
    given: Al
  title: Year and month, bibtex style, supported by biblatex for backwards compatibility
  id: year-month-old
  issued:
    date-parts:
    - - 1999
      - 8
  type: article-journal
  container-title: Journal
- author:
  - family: Author
    given: Al
  title: "Year and month, biblatex style; note that biblatex does not have a “day”
    field"
  id: year-month-new
  issued:
    date-parts:
    - - 1999
      - 8
  type: article-journal
  container-title: Journal
- event-date:
    date-parts:
    - - 2011
      - 10
      - 3
  accessed:
    date-parts:
    - - 1999
      - 5
      - 23
  author:
  - family: Author
    given: Al
  original-date:
    date-parts:
    - - 1888
      - 10
      - 1
  title: Dates, default biblatex style; year, month to be ignored if date exists
  id: dates
  issued:
    date-parts:
    - - 2012
      - 12
      - 13
  type: article-journal
  container-title: Journal
- event-date:
    date-parts:
    - - 1999
      - 12
    - - 2000
      - 1
  accessed:
    date-parts:
    - - 2012
      - 10
      - 12
    - - 2013
      - 1
      - 31
  author:
  - family: Author
    given: Al
  original-date:
    date-parts:
    - - 1888
      - 1
      - 2
    - - 1913
      - 12
      - 13
  title: Date ranges; different years
  id: date-ranges-different-years
  issued:
    date-parts:
    - - 1999
      - 10
      - 14
    - - 2010
      - 1
      - 23
  type: article-journal
  container-title: Journal
- event-date:
    date-parts:
    - - 1999
      - 10
    - - 1999
      - 11
  accessed:
    date-parts:
    - - 2012
      - 10
      - 31
    - - 2012
      - 11
      - 1
  author:
  - family: Author
    given: Al
  original-date:
    date-parts:
    - - 1888
      - 1
      - 2
    - - 1888
      - 12
      - 13
  title: Date ranges; same year
  id: date-ranges-same-year
  issued:
    date-parts:
    - - 1999
      - 10
      - 14
    - - 1999
      - 10
      - 15
  type: article-journal
  container-title: Journal
- event-date:
    date-parts:
    - - 1999
      - 10
  accessed:
    date-parts:
    - - 2012
      - 10
      - 31
  author:
  - family: Author
    given: Al
  original-date:
    date-parts:
    - - 1888
      - 1
      - 2
  title: Date ranges, open-ended
  id: date-ranges-open
  issued:
    date-parts:
    - - 1999
      - 10
      - 14
  type: article-journal
  container-title: Journal
- event-date:
    date-parts:
    - - 311
      - 10
      - 3
  accessed:
    date-parts:
    - - 999
      - 12
      - 14
  author:
  - family: Author
    given: Al
  original-date:
    date-parts:
    - - 88
      - 10
      - 1
  title: Dates, year less than 1000
  id: dates-very-old
  issued:
    date-parts:
    - - 712
      - 12
      - 13
  type: article-journal
  container-title: Journal
...