add "page-prefix" to in bibliography (American Psychological Association 6th edition)
I was trying to modify the Style „American Psychological Association 6th edition“ so that the page-numbers of an article in the bibliography will be shown as „P. XX-XX / S. XX-XX“ or „Page XX-XX / Seite XX-XX“ for English and German respectively. At the moment the style only gives me the numbers without the „page-prefix“.
I could't change that with the visual editor, that's why I'm asking for help here.
I could't change that with the visual editor, that's why I'm asking for help here.
<label variable="page" text-case="capitalize-first"/>
(with form="short" if you want the abbreviated version). You can get that with the visual editor by clicking on the plus sign to add a node, move it in the right place on the left, and elect label --> variable = page with the respective settings for form and text-case.
I have changed
<if type="article-journal article-magazine" match="any">
<group prefix=", " delimiter=", ">
<group>
<text variable="volume" font-style="italic"/>
<text variable="issue" prefix="(" suffix=")"/>
</group>
<text variable="page"/>
</group>
</if>
to
<if type="article-journal article-magazine" match="any">
<group prefix=", " delimiter=", ">
<group>
<text variable="volume" font-style="italic"/>
<text variable="issue" prefix="(" suffix=")"/>
</group>
<label variable="page"/>
<text variable="page"/>
</group>
</if>
Which end up in the bibliography with a comma after the "pages":
... Seiten, 118–130.
I would prefer to have it as: Seiten 118–130.
I changed delimiter=", " to delimiter=" " but that didn't seen to have any effect.
Avoiding the problem that also volume/issue wouldn't be separated by a comma any more I tried to understand and change the code a bit:
<if type="article-journal article-magazine" match="any">
<group prefix=", " delimiter=" ">
<group delimiter=", ">
<text variable="volume" font-style="italic"/>
<text variable="issue" prefix="(" suffix=") "/>
</group>
<group delimiter=" ">
<label variable="page"/>
<text variable="page"/>
</group>
</group>
</if>
It seems to work for me so far, however I'm not sure if it contains any flaws that would cause problems later on.
APA:
2(3), 123-456
Your first version
2(3) Seite, 123-456
Your 2nd version
2, (3) Seite 123-456
What I assume you want:
2(3), Seite 123-456
Which would be (e.g.)
<if type="article-journal article-magazine" match="any">
<group prefix=", " delimiter=", ">
<group>
<text variable="volume" font-style="italic"/>
<text variable="issue" prefix="(" suffix=") "/>
</group>
<group delimiter=" ">
<label variable="page"/>
<text variable="page"/>
</group>
</group>
</if>
By the way I have two more questions:
1. How to I post code in the forum like you've than that here.
2. Is there a way with some kind of editor where I can change the code and simultaneously see how the bibliography and in-text citation changes. The code editor at http://editor.citationstyles.org/codeEditor/ does that, but only for two references. It would be more useful if I could define several of my different references (articles, books, compilations, laws, etc.). It's quite exhausting to also import the changed style in Zotero and see how the code changes end up in the bibliography.
2. Yes: I use https://www.zotero.org/support/dev/citation_styles/reference_test_pane pretty much exclusively.
(It is possible to add other items to the visual editor, too, so if you're attached to the visual interface I can tell you how, but it's a little cluncky since it was only ever intended as an advanced option).