Generate Bibliography sorted by Item Types

Is this possible? Is it complicated? I just want to generate a bibliography that spits out the list of items under headings for each type e.g. journal article, report, book etc. I use AGLC style.
  • Hi Scholarhobbit,

    AGLC output will already categorise your sources into the AGLC item types, you just need to type the category headings in yourself.

    Are you finding your sources aren't sorted correctly? Which AGLC style are you using? 3 or 4?
  • But if you want further sorting by item type, AGLC already has the basic structure in place, you just need to expand it. So in the current AGLC, you find
    <macro name="sort-type">
    <choose>
    <if type="book chapter paper-conference article-magazine article-newspaper article-journal report speech" match="any">
    <text value="1"/>
    </if>
    <else-if type="legal_case">
    <text value="2"/>
    <text variable="title"/>
    </else-if>
    <else-if type="bill legislation" match="any">
    <text value="3"/>
    <choose>
    <if type="legislation">
    <text variable="title"/>
    </if>
    </choose>
    </else-if>
    <else-if type="manuscript">
    <!--
    Manuscript here as a stand-in for Treaty. Not perfect
    -->
    <text value="4"/>
    </else-if>
    <else>
    <text value="5"/>
    </else>
    </choose>
    </macro>


    I think the logic is pretty self explanatory, e.g. if you want to sort first books then reports you'd do
    <if type="book" match="any">
    <text value="1"/>
    </if>
    <else-if type="report">
    <text value="2"/>
    </else-if>

    And then continue along those lines. General instructions here:
    https://www.zotero.org/support/dev/citation_styles/style_editing_step-by-step
Sign In or Register to comment.