Sha256: 48689aebd9973e7967909072201060cbe65c94a89c5a8dce80ae9c69c4df9b0d
Contents?: true
Size: 1.62 KB
Versions: 4
Compression:
Stored size: 1.62 KB
Contents
Feature: variables As a CSL cite processor hacker I want the test variables_TitleShortOnAbbrevWithTitleCondition to pass @citation @variables @citations Scenario: Title Short On Abbrev With Title Condition 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> <choose> <if variable="title-short"> <group delimiter=" "> <text variable="title"/> <group> <text value="has title-short"/> </group> </group> </if> <else> <group delimiter=" "> <text variable="title"/> <group> <text value="does not have title-short"/> </group> </group> </else> </choose> </layout> </citation> </style> """ And the following input: """ [{"id":"ITEM-1","title":"My Long Title 1","type":"book"},{"id":"ITEM-2","title":"My Long Title 2","type":"book"},{"id":"ITEM-3","type":"book"}] """ And the following abbreviations: """ {"default":{"title":{"My Long Title 1":"My Short Title"}}} """ And I have a citations input When I cite all items Then the result should be: """ ..[0] My Long Title 1 has title-short ..[1] My Long Title 2 does not have title-short >>[2] does not have title-short """
Version data entries
4 entries across 4 versions & 1 rubygems