Sha256: 29583cceafcf422028d83bd9c7891acb999b8411bdbec94f7a8490f6605d5ee0

Contents?: true

Size: 1.91 KB

Versions: 4

Compression:

Stored size: 1.91 KB

Contents

Feature: position
  As a CSL cite processor hacker
  I want the test position_IfIbidWithLocatorIsTrueThenIbidIsTrue to pass

  @citation @position @citation-items
  Scenario: If Ibid With Locator Is True Then Ibid Is True
    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 suffix=".">
          <choose>
            <if position="first">
              <group delimiter=" ">
                <names variable="author">
                  <name form="short" />
                </names>
                <text quotes="true" variable="title" />
                <date prefix="(" suffix=")" variable="issued">
                  <date-part name="year" />
                </date>
              </group>
            </if>
            <else-if position="ibid">
              <text term="ibid" />
            </else-if>
            <else-if position="ibid-with-locator">
              <text term="ibid" />
              <label form="short" prefix=" " strip-periods="false" variable="locator" />
              <text prefix=" " variable="locator" />
            </else-if>
            <else>
              <text value="WTF?"/>
            </else>
          </choose>
        </layout>
      </citation>
    </style>
    """
    And the following input:
    """
    [{"author":[{"family":"Appleton","given":"Victor","static-ordering":false}],"id":"ITEM-1","issued":{"date-parts":[["1910"]]},"title":"Tom Swift and His Electric Runabout","type":"book"}]
    """
    When I cite the following items:
    """
    [[{"id":"ITEM-1","position":0}],[{"id":"ITEM-1","label":"page","locator":"23","position":3}]]
    """
    Then the results should be:
      | Appleton “Tom Swift and His Electric Runabout” (1910). |
      | Ibid. |

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citeproc-1.0.7 features/position/IfIbidWithLocatorIsTrueThenIbidIsTrue.feature
citeproc-1.0.6 features/position/IfIbidWithLocatorIsTrueThenIbidIsTrue.feature
citeproc-1.0.5 features/position/IfIbidWithLocatorIsTrueThenIbidIsTrue.feature
citeproc-1.0.4 features/position/IfIbidWithLocatorIsTrueThenIbidIsTrue.feature