Sha256: a7403ec8408ac317883595c70f7458073e7ac0a4643c75d786c3cb730187311d

Contents?: true

Size: 1.9 KB

Versions: 4

Compression:

Stored size: 1.9 KB

Contents

Feature: integration
  As a CSL cite processor hacker
  I want the test integration_SimpleIbid to pass

  @citation @integration @citations
  Scenario: Simple Ibid
    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 delimiter="; " prefix="(" suffix=")">
          <choose>
            <if position="first">
              <names variable="author">
                <name form="short"/>
              </names>
              <group prefix=" ">
                <label variable="locator" form="short" suffix=" "/>
                <text variable="locator"/>
              </group>
            </if>
            <else-if position="ibid-with-locator">
              <text value="ibid-with-locator"/>
            </else-if>
            <else-if position="ibid">
              <text term="ibid"/>
            </else-if>
            <else-if position="subsequent">
              <text value="subsequent"/>
            </else-if>
            <else>
              <text value="huh?"/>
            </else>
          </choose>
        </layout>
      </citation>
    </style>
    """
    And the following input:
    """
    [{"author":[{"family":"Doe","given":"John","static-ordering":false}],"id":"ITEM-1","type":"book"},{"author":[{"family":"Roe","given":"Jane","static-ordering":false}],"id":"ITEM-2","type":"book"},{"author":[{"family":"Noakes","given":"John","static-ordering":false}],"id":"ITEM-3","type":"book"},{"author":[{"family":"Snoakes","given":"Richard","static-ordering":false}],"id":"ITEM-4","type":"book"}]
    """
    And I have a citations input
    When I cite all items
    Then the result should be:
    """
    ..[0] (Doe p. 12; Roe p. 23)
    >>[1] (Noakes p. 34; ibid.; Snoakes p. 45)
    """

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citeproc-1.0.7 features/integration/SimpleIbid.feature
citeproc-1.0.6 features/integration/SimpleIbid.feature
citeproc-1.0.5 features/integration/SimpleIbid.feature
citeproc-1.0.4 features/integration/SimpleIbid.feature