Sha256: 2c142a7d428d78a4c1720bf6163edefd93cfeca409d7a9c4dadae1848d4b6a41

Contents?: true

Size: 1.35 KB

Versions: 4

Compression:

Stored size: 1.35 KB

Contents

Feature: substitute
  As a CSL cite processor hacker
  I want the test substitute_RepeatedNamesOk to pass

  @citation @substitute
  Scenario: Repeated Names Ok
    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>
          <group delimiter=", ">
            <names variable="author">
              <name />
              <substitute>
                <names variable="editor"/>
              </substitute>
            </names>
            <names variable="author">
              <name />
              <substitute>
                <names variable="editor"/>
              </substitute>
            </names>
            <names variable="editor">
              <name />
              <substitute>
                <names variable="author"/>
              </substitute>
            </names>
          </group>
        </layout>
      </citation>
    </style>
    """
    And the following input:
    """
    [{"author":[{"family":"Ry","given":"Ma"}],"editor":[{"family":"Kontrari","given":"Kwite"}],"id":"ITEM-1","type":"book"}]
    """
    When I cite all items
    Then the result should be:
    """
    Ma Ry, Ma Ry, Kwite Kontrari
    """

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citeproc-1.0.7 features/substitute/RepeatedNamesOk.feature
citeproc-1.0.6 features/substitute/RepeatedNamesOk.feature
citeproc-1.0.5 features/substitute/RepeatedNamesOk.feature
citeproc-1.0.4 features/substitute/RepeatedNamesOk.feature