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
This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
Upgrade Storage
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.