A few changes to my customised style
Hi,
Apologies, but I am very inexperienced with editing styles, so need your help to incorporate the following changes into my style (I don't know how to send you the entire csl code sheet, but it is a slightly amended version of the "Harvard - University of West London" style):
- I would like to have a separate bibliography (all types of texts), and a separate filmography (only films) - how do I separate only one type for the bibliography?
- The bibliography displays the DOI number for journal articles, which I want to be omitted (I found a discussion thread on this one, but would like to make sure the code mentioned there fits well into my style sheet).
- The bibliography displays the "series" field for books, which I want to be omitted.
- The bibliography does not mention "conference paper" for conference papers, which I would like to add
- In the body of the text, books that are edited collections are cited with "(eds.)", which I would like to omit (this is when I am citing the book in general, or its introduction, NOT a contributor's chapter)
Many thanks and apologies for the long list. Any help on any point is greatly appreciated.
Apologies, but I am very inexperienced with editing styles, so need your help to incorporate the following changes into my style (I don't know how to send you the entire csl code sheet, but it is a slightly amended version of the "Harvard - University of West London" style):
- I would like to have a separate bibliography (all types of texts), and a separate filmography (only films) - how do I separate only one type for the bibliography?
- The bibliography displays the DOI number for journal articles, which I want to be omitted (I found a discussion thread on this one, but would like to make sure the code mentioned there fits well into my style sheet).
- The bibliography displays the "series" field for books, which I want to be omitted.
- The bibliography does not mention "conference paper" for conference papers, which I would like to add
- In the body of the text, books that are edited collections are cited with "(eds.)", which I would like to omit (this is when I am citing the book in general, or its introduction, NOT a contributor's chapter)
Many thanks and apologies for the long list. Any help on any point is greatly appreciated.
For conference paper, you'd do something like
<choose>
-<if type="paper-conference">
<text value="conference paper"/>
</if>
</choose>
The series is "collection-title".
This thread has a discussion about how to sort by item type:
https://forums.zotero.org/discussion/16531/sort-bibliography-by-reference-type
I found the editor one here, but it only affects the bibliography, not in-text citations (which I want to remove the "ed" from:
How can I post a piece of code here, so it doesn't keep disappearing from the comment window?
I want to implement the DOI removal code you suggest on this site:
https://forums.zotero.org/discussion/4884/doi-reference-in-apa-style/p1
But I cannot see it. All codes are blanked out. It is not an issue of my browser, as I tried with others.
Nothing I can do about that. Removing DOIs (which you really shouldn't do: a DOI is the single most useful piece of information you can include in a citation) is pretty simple, though: you just remove the line that includes variable="DOI"
Can I remove this entire macro to prevent series title and number in the bibliography, without messing up anything:
<macro name="collection">
<group delimiter=" ">
<text variable="collection-title"/>
<text variable="collection-number"/>
</group>
</macro>
Also from the following code, can I remove the line "label form="short" prefix=" (" suffix=")" without messing up anything (in order to omit the "ed" in in-text citations:
<macro name="editor-short">
<names variable="editor">
<name form="short"/>
<et-al font-style="italic"/>
<label form="short" prefix=" (" suffix=")"/>
</names>
</macro>
Regarding DOI, this is the bit:
<macro name="location">
<choose>
<if variable="DOI">
<text variable="DOI" prefix="doi:"/>
</if>
<else-if variable="URL">
<text variable="URL"/>
</else-if>
</choose>
</macro>
Do I change it to this?
<macro name="location">
<choose>
<if variable="URL">
<text variable="URL"/>
</else-if>
</choose>
</macro>
Many thanks for your help.
<text macro="collection"/>
2. Yes, that's fine
3. Much simpler and the same to just do
<macro name="location">
<text variable="URL"/>
</macro>
Change
prefix="doi:"
to
prefix="http://doi.org/"
@adamsmith:
Thanks a lot for confirming. Where do I insert this code:
<choose>
<if type="paper-conference">
<text value="conference paper"/>
</if>
</choose>