Sha256: ea1b98d5479c5d6c81f45d0401541e50e43eeb0ff222516c65a08fbd84570e16

Contents?: true

Size: 1.32 KB

Versions: 4

Compression:

Stored size: 1.32 KB

Contents

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

  @citation @position @citations
  Scenario: Ibid With Multiple Solo Cites In Backref
    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>
      <macro name="author">
        <names variable="author">
          <name form="short" />
        </names>
      </macro>
      <citation>
        <sort>
          <key macro="author" />
        </sort>
        <layout delimiter="; ">
          <choose>
            <if position="ibid">
              <text term="ibid"/>
            </if>
            <else>
              <text macro="author" />
            </else>
          </choose>
        </layout>
      </citation>
    </style>
    """
    And the following input:
    """
    [{"author":[{"family":"Aalto","given":"Alan"}],"id":"ITEM-1","type":"book"},{"author":[{"family":"Álvarez","given":"Ajax"}],"id":"ITEM-2","type":"book"}]
    """
    And I have a citations input
    When I cite all items
    Then the result should be:
    """
    ..[0] Aalto
    ..[1] Álvarez
    ..[2] Álvarez
    >>[3] Ibid.
    """

Version data entries

4 entries across 4 versions & 1 rubygems

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