CSL style request: APA7 bibliography modified by item type and item type written as sub-section
Hello,
I checked the documentation related to CSL style requests and couldn' t find a way to do want I want.
I would like my APA7 bibliography modified so items are grouped by item type, and, that the item type appears as a section title (formatted as bold for example).
Such as:
Academic article
Author, date
...
Newspaper article
Author, date
...
Webpage
Author date
...
And so on.
Expected output here - except I would delete the double dots ":" https://nsc.libguides.com/c.php?g=1023669&p=7909555
Looking for some help, thank you
I checked the documentation related to CSL style requests and couldn' t find a way to do want I want.
I would like my APA7 bibliography modified so items are grouped by item type, and, that the item type appears as a section title (formatted as bold for example).
Such as:
Academic article
Author, date
...
Newspaper article
Author, date
...
Webpage
Author date
...
And so on.
Expected output here - except I would delete the double dots ":" https://nsc.libguides.com/c.php?g=1023669&p=7909555
Looking for some help, thank you
To get type sorting, add this macro:
<macro name="type-sort">
<choose>
<if type="post-weblog webpage" match="any">
<text value="2"/>
</if>
<else>
<text value="1"/>
</else>
</choose>
</macro>
and adapt as needed.
And then add
<key macro="type-sort"/>
to the bibliography's sort section at the top.See how this is done here: view-source:https://www.zotero.org/styles/steinbeis-hochschule-school-of-management-and-innovation?source=1
Editing guidelines: https://www.zotero.org/support/dev/citation_styles/style_editing_step-by-step