Remove p. and pp. from Australian Archaeology style: Help with coding
Hello,
I'm trying to change the locator (label) from "p." and "pp." to ":" so that in-text citations appear like this: (Smith 2021:15–20) , at the moment they appear like this: (Smith 2021, pp. 15–20).
Code is as follows:
I'm trying to change the locator (label) from "p." and "pp." to ":" so that in-text citations appear like this: (Smith 2021:15–20) , at the moment they appear like this: (Smith 2021, pp. 15–20).
Code is as follows:
</info>
<locale xml:lang="en">
<terms>
<term name="editor" form="short">
<single>ed.</single>
<multiple>eds</multiple>
</term>
</terms>
</locale>
<macro name="container-contributors">
<choose>
<if type="chapter paper-conference" match="any">
<text term="in" text-case="capitalize-first" font-style="normal" suffix=" "/>
<names variable="editor translator" delimiter=", ">
<name and="text" initialize-with="."/>
<label form="short" prefix=" (" suffix=")"/>
</names>
</if>
</choose>
</macro>
<macro name="secondary-contributors">
<choose>
<if type="chapter paper-conference" match="none">
<names variable="editor translator" delimiter=", " prefix=" (" suffix=")">
<name and="text" initialize-with=". " delimiter=", "/>
<label form="short" prefix=", "/>
</names>
</if>
</choose>
</macro>
<macro name="author">
<names variable="author">
<name and="text" initialize-with="." name-as-sort-order="first"/>
<label prefix=": "/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<text variable="title"/>
</substitute>
</names>
</macro>
<macro name="author-short">
<names variable="author">
<name form="short" and="text" delimiter=", " initialize-with=". "/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text variable="title" form="short" font-style="italic"/>
</if>
<else>
<text variable="title" form="short" quotes="true"/>
</else>
</choose>
</substitute>
</names>
</macro>
<macro name="access">
<choose>
<if type="webpage post post-weblog" match="any">
<group delimiter=" ">
<text term="retrieved" text-case="capitalize-first"/>
<date form="text" variable="accessed"/>
<text variable="URL" prefix="< " suffix=" >"/>
</group>
</if>
</choose>
</macro>
<macro name="publisher">
<group delimiter=", ">
<choose>
<if type="article-journal article-magazine" match="none">
<text variable="genre"/>
<text variable="publisher-place"/>
<text variable="publisher"/>
</if>
</choose>
</group>
</macro>
<macro name="issued">
<choose>
<if variable="issued">
<group prefix=" ">
<date variable="issued">
<date-part name="year"/>
</date>
<choose>
<if type="article-journal bill book chapter graphic legal_case legislation motion_picture paper-conference report song" match="none">
<date variable="issued">
<date-part prefix=", " name="month"/>
<date-part prefix=" " name="day"/>
</date>
</if>
</choose>
</group>
</if>
<else>
<text prefix=" (" term="no date" suffix=")." form="short"/>
</else>
</choose>
</macro>
<macro name="issued-year">
<choose>
<if variable="issued">
<date variable="issued">
<date-part name="year"/>
</date>
</if>
<else>
<text term="no date" form="short"/>
</else>
</choose>
</macro>
<macro name="edition">
<choose>
<if type="bill book chapter graphic legal_case legislation motion_picture paper-conference report song" match="any">
<choose>
<if is-numeric="edition">
<number variable="edition" form="long-ordinal" text-case="capitalize-first"/>
<text term="edition" form="long" prefix=" " suffix="."/>
</if>
<else>
<text variable="edition" suffix="."/>
</else>
</choose>
</if>
</choose>
</macro>
<macro name="locators">
<choose>
<if type="article-journal article-magazine article-newspaper" match="any">
<group delimiter=" ">
<text variable="container-title" font-style="italic" prefix=". "/>
<group delimiter=":">
<group>
<text variable="volume" prefix=" "/>
<text variable="issue" prefix="(" suffix=")"/>
</group>
<text variable="page"/>
</group>
</group>
</if>
<else-if type="bill book chapter graphic legal_case legislation motion_picture paper-conference report song" match="any">
<group delimiter=". ">
<group delimiter=", " prefix=". ">
<text macro="container-contributors"/>
<group>
<label variable="page" form="short"/>
<text variable="page"/>
</group>
<text macro="secondary-contributors"/>
</group>
<text variable="container-title" font-style="italic"/>
</group>
</else-if>
<else-if type="webpage post post-weblog" match="any">
<text variable="container-title"/>
</else-if>
</choose>
</macro>
<macro name="citation-locator">
<group>
<label strip-periods="true" font-variant="normal" vertical-align="baseline" variable="locator" form="symbol"/>
<text variable="locator" prefix=" "/>
</group>
</macro>
<macro name="title">
<choose>
<if type="book" match="any">
<text variable="title" font-style="italic"/>
</if>
<else>
<text variable="title"/>
</else>
</choose>
</macro>
<citation et-al-min="3" et-al-use-first="1" disambiguate-add-year-suffix="true" collapse="year">
<sort>
<key variable="issued"/>
<key macro="author"/>
</sort>
<layout prefix="(" suffix=")" delimiter=", ">
<group delimiter=", ">
<group delimiter=" ">
<text macro="author-short"/>
<text macro="issued-year"/>
</group>
<text macro="citation-locator"/>
</group>
</layout>
</citation>
<bibliography hanging-indent="true" entry-spacing="0" line-spacing="2">
<sort>
<key macro="author"/>
<key variable="issued"/>
</sort>
<layout suffix=".">
<text macro="author"/>
<text macro="issued" suffix=" "/>
<text macro="title"/>
<text macro="locators"/>
<group delimiter=". " prefix=". ">
<text macro="edition"/>
<text macro="publisher"/>
<text macro="access"/>
</group>
</layout>
</bibliography>
</style>
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
Upgrade Storage
(also, always better to put large chunks of code on pastebin/similar, rather than a wall of code here. Easier for us to test things out and also give exact line numbers. ;) )
<layout prefix="(" suffix=")" delimiter=", "><group delimiter=", ">
to
<layout prefix="(" suffix=")" delimiter=", "><group delimiter=":">