Sha256: 320a04f3dfa7983a2e0af796f678f484d1ff1445109dbf4264041b20eec81bd9

Contents?: true

Size: 1.5 KB

Versions: 4

Compression:

Stored size: 1.5 KB

Contents

Feature: discretionary
  As a CSL cite processor hacker
  I want the test discretionary_SuppressAuthorSolo to pass

  @citation @discretionary @citation-items
  Scenario: Suppress Author Solo
    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 delimiter="; " prefix="(" suffix=")">
          <group delimiter=" ">
            <names variable="author">
              <name />
              <substitute>
                <text variable="title" />
              </substitute>
            </names>
            <date variable="issued">
              <date-part name="year" />
            </date>
          </group>
        </layout>
      </citation>
    </style>
    """
    And the following input:
    """
    [{"abstract":"An interesting book by an interesting author.","author":[{"family":"Smith","given":"John"}],"id":"ITEM-1","issued":{"date-parts":[["2005"]]},"title":"Book A","type":"book"},{"abstract":"An old contribution to a new field.","author":[{"family":"Jones","given":"Robert"}],"id":"ITEM-2","issued":{"date-parts":[["2000"]]},"title":"Book B","type":"book"}]
    """
    When I cite the following items:
    """
    [[{"id":"ITEM-1","suppress-author":1}],[{"id":"ITEM-2"}]]
    """
    Then the results should be:
      | (2005)              |
      | (Robert Jones 2000) |

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citeproc-1.0.7 features/discretionary/SuppressAuthorSolo.feature
citeproc-1.0.6 features/discretionary/SuppressAuthorSolo.feature
citeproc-1.0.5 features/discretionary/SuppressAuthorSolo.feature
citeproc-1.0.4 features/discretionary/SuppressAuthorSolo.feature