Sha256: 0d932b0cf861cfb16ec159fba1401eab2c0d5c93fa1190b6dce11f6ac3cbd8a3

Contents?: true

Size: 1.3 KB

Versions: 4

Compression:

Stored size: 1.3 KB

Contents

Feature: disambiguate
  As a CSL cite processor hacker
  I want the test disambiguate_ByCiteGivennameShortFormNoInitializeWith to pass

  @citation @disambiguate @citation-items
  Scenario: By Cite Givenname Short Form No Initialize With
    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 
             disambiguate-add-givenname="true"
             givenname-disambiguation-rule="by-cite">
        <layout delimiter="; ">
          <names variable="author">
            <name form="short" />
          </names>
        </layout>
      </citation>
    </style>
    """
    And the following input:
    """
    [{"author":[{"family":"Roe","given":"Jane","static-ordering":false}],"id":"ITEM-1","type":"book"},{"author":[{"family":"Doe","given":"John","static-ordering":false}],"id":"ITEM-2","type":"book"},{"author":[{"family":"Doe","given":"Aloysius","static-ordering":false}],"id":"ITEM-3","type":"book"}]
    """
    When I cite the following items:
    """
    [[{"id":"ITEM-1"}],[{"id":"ITEM-2"},{"id":"ITEM-3"}]]
    """
    Then the results should be:
      | Roe  |
      | John Doe; Aloysius Doe |

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citeproc-1.0.7 features/disambiguate/ByCiteGivennameShortFormNoInitializeWith.feature
citeproc-1.0.6 features/disambiguate/ByCiteGivennameShortFormNoInitializeWith.feature
citeproc-1.0.5 features/disambiguate/ByCiteGivennameShortFormNoInitializeWith.feature
citeproc-1.0.4 features/disambiguate/ByCiteGivennameShortFormNoInitializeWith.feature