Sha256: 8b11d25be76bbd5bebe5a0d726f15ebbd7041b2b64132adf69b9a1c9cdc7be6c

Contents?: true

Size: 1.53 KB

Versions: 4

Compression:

Stored size: 1.53 KB

Contents

Feature: collapse
  As a CSL cite processor hacker
  I want the test collapse_CitationNumberRangesWithAffixesGrouped to pass

  @citation @collapse @citations
  Scenario: Citation Number Ranges With Affixes Grouped
    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="citation-locator">
        <group delimiter=" ">
          <choose>
            <if locator="page">
              <label variable="locator" form="short"/>
            </if>
            <else>
              <label variable="locator" form="short" text-case="capitalize-first"/>
            </else>
          </choose>
          <text variable="locator"/>
        </group>
      </macro>
      <citation 
             collapse="citation-number">
        <layout delimiter="," font-weight="bold" prefix="(" suffix=")">
          <group prefix="[" suffix="]" delimiter=", ">
            <text variable="citation-number"/>
            <text macro="citation-locator"/>
          </group>
        </layout>
      </citation>
    </style>
    """
    And the following input:
    """
    [{"id":"ITEM-1","title":"Paper 1","type":"book"},{"id":"ITEM-2","title":"Paper 2","type":"book"},{"id":"ITEM-3","title":"Paper 3","type":"book"}]
    """
    And I have a citations input
    When I cite all items
    Then the result should be:
    """
    >>[0] <b>([1]–[3])</b>
    """

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citeproc-1.0.7 features/collapse/CitationNumberRangesWithAffixesGrouped.feature
citeproc-1.0.6 features/collapse/CitationNumberRangesWithAffixesGrouped.feature
citeproc-1.0.5 features/collapse/CitationNumberRangesWithAffixesGrouped.feature
citeproc-1.0.4 features/collapse/CitationNumberRangesWithAffixesGrouped.feature