Sha256: f1ef927672de5f30c1b9e549b4973fda24fe3ee2e6d08c4b344212e9298f48ea

Contents?: true

Size: 1.31 KB

Versions: 4

Compression:

Stored size: 1.31 KB

Contents

Feature: sort
  As a CSL cite processor hacker
  I want the test sort_CitationSecondaryKey to pass

  @citation @sort @citations
  Scenario: Citation Secondary Key
    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 variable="issued" sort="ascending"/>
          <key macro="author" sort="ascending"/>
        </sort>
        <layout delimiter="; ">
          <group delimiter=" ">
            <text macro="author" />
            <date variable="issued" form="text" date-parts="year"/>
          </group>
        </layout>
      </citation>
    </style>
    """
    And the following input:
    """
    [{"author":[{"family":"Roe","given":"Jane"}],"id":"ITEM-1","issued":{"date-parts":[[1995]]},"type":"book"},{"author":[{"family":"Doe","given":"John"}],"id":"ITEM-2","issued":{"date-parts":[[1995]]},"type":"book"}]
    """
    And I have a citations input
    When I cite all items
    Then the result should be:
    """
    >>[0] Doe 1995; Roe 1995
    """

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citeproc-1.0.7 features/sort/CitationSecondaryKey.feature
citeproc-1.0.6 features/sort/CitationSecondaryKey.feature
citeproc-1.0.5 features/sort/CitationSecondaryKey.feature
citeproc-1.0.4 features/sort/CitationSecondaryKey.feature