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
<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
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>
I will take a look at hte ALL style, thanks for that reference.