CSL type/genre variable

help - must be missing something i can not get either

<text variable="type" /> or

<text variable="genre" />

to produce anything in my citation? the

<if type="book"> tests work just fine, and i'm just wanting to include that information in the citation, ie that the item is a "book" or "webpage".

TIA
  • edited July 8, 2009
    You might want to take a look at the "ALL - display all fields in a debug view" style in the Style Repository.

    The "genre" variable is only available for a select number of item types, and doesn't represent what you're looking for. "type" isn't a standard type of variable, and you can't output it like that. So you need to make a test for each item type, e.g.:

    <choose>
    <if type="article">
    <text value="article"/>
    </if>
    <else-if type="book">
    <text value="book"/>
    </else-if>
    ...
    </choose>
  • thanks, that is what i resorted to. Basically looking to get a more "nuanced" document type, since so many types (from the interfaces PullDown) get mapped to "Article" (particularly Presentation that is of interest to one of our company's groups).

    I will take a look at hte ALL style, thanks for that reference.
Sign In or Register to comment.