De Montfort University Harvard Style Update help
I have made some corrections to the De Montfort University - Harvard csl (mainly on how editors of books are managed when the item type is Book Section), but I am stuck with this problem:
If an article has no page number it should be treated as an online source and show doi or url, I have made some attempts at testing the variable "page" but didn't achieve anything.
Can somebody help please (my coding skills are very limited)?
Example
when the page number is not available the bibliography should show:
HEUS, T. and JONKER, H.J.J. (2008) Subsiding shells around shallow cumulous clouds. Journal of atmospheric sciences. [Online] 65 (3). Available from: doi:org/10.1175/2007Jas2322.1 [Accessed 28/06/16].
(with either doi or url whatever available)
what it shows at the moment is:
HEUS, T. and JONKER, H.J.J. (2008) Subsiding shells around shallow cumulous clouds. Journal of atmospheric sciences. 65 (3).
If an article has no page number it should be treated as an online source and show doi or url, I have made some attempts at testing the variable "page" but didn't achieve anything.
Can somebody help please (my coding skills are very limited)?
Example
when the page number is not available the bibliography should show:
HEUS, T. and JONKER, H.J.J. (2008) Subsiding shells around shallow cumulous clouds. Journal of atmospheric sciences. [Online] 65 (3). Available from: doi:org/10.1175/2007Jas2322.1 [Accessed 28/06/16].
(with either doi or url whatever available)
what it shows at the moment is:
HEUS, T. and JONKER, H.J.J. (2008) Subsiding shells around shallow cumulous clouds. Journal of atmospheric sciences. 65 (3).
<choose>
<if variable="URL">
<choose>
<if variable="DOI URL" match="any">
<group delimiter=" ">
<group delimiter=": ">
<text term="available at" text-case="capitalize-first"/>
<choose>
<if variable="DOI">
<text variable="DOI" prefix="https://doi.org/"/>
</if>
<else>
<text variable="URL"/>
</else>
</choose>
</group>
<group delimiter=" ">
<text term="accessed" text-case="capitalize-first"/>
<date variable="accessed" form="numeric"/>
</group>
</group>
</if>
</choose>
</if>
</choose>
Untested, but should be right.
Put the whole thing in the macro and call it at the end of the bibliography section.
I just had a go at fixing this. Can you test it and let me know if it fits it better?
https://raw.githubusercontent.com/POBrien333/styles/9d80e5f1cad56b614a5a6e470222dacd974c11df/harvard-de-montfort-university.csl
Thanks again, Pino
4 things:
1- there should be an "[online]" field after the journal title (see example above), same as web pages
2- in a citation in text, with multiple sources, they should be in order of date
3- in a book section item type the book editors names should have the first name initial after the surname as they are for the author
4- all et-al-min should be "4"
Thank you again
Thank to Adamsmith and damnation and after some messing about, I have a version of the CSL that seems to solve most of the problems, could I send it to you or should I generate a pull request in github?
I am not very confident that everything is working fine ( for example it doesn't manage correctly "anonymous" and "no date" in the bibliography), but I don't have any more time to spend on it
https://gist.github.com/pinomaffei/d046a6c372363cc3cff041d1d3d6b3b8
https://www.zotero.org/styles?q=id:de-montfort-university-harvard
Thanks for doing the work on the style. That is reviewed and now on the repo as revised.
Thank you