Sha256: dc9e92ed4b1fb323d16e8d3b96b08e8d7f9c9d7e6c209de478094a816f59e4ee

Contents?: true

Size: 908 Bytes

Versions: 4

Compression:

Stored size: 908 Bytes

Contents

Feature: punctuation
  As a CSL cite processor hacker
  I want the test punctuation_DateStripPeriods to pass

  @citation @punctuation
  Scenario: Date Strip Periods
    Given the following style:
    """
    <style 
          xmlns="http://purl.org/net/xbiblio/csl"
          class="note"
          version="1.0">
      <info>
        <id />
        <title />
        <updated>2009-08-10T04:49:00+09:00</updated>
      </info>
      <citation>
        <layout>
          <date variable="issued">
            <date-part name="month" form="short" suffix=" " strip-periods="true"/>
    		<date-part name="year" form="long"/>
          </date>
        </layout>
      </citation>
    </style>
    """
    And the following input:
    """
    [{"id":"ITEM-1","issued":{"date-parts":[["1965","6","1"]]},"type":"book"}]
    """
    When I cite all items
    Then the result should be:
    """
    Jun 1965
    """

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citeproc-1.0.7 features/punctuation/DateStripPeriods.feature
citeproc-1.0.6 features/punctuation/DateStripPeriods.feature
citeproc-1.0.5 features/punctuation/DateStripPeriods.feature
citeproc-1.0.4 features/punctuation/DateStripPeriods.feature