.csl style problems
Hi,
I'm having a few issues.
My editors names for an encyclopedia entry are being listed as
Lastname, Firstname and Lastname, Firstname
rather than
Firstname Lastname and Firstname Lastname
Also I fixed it so that the year would be bracketed followed by a comma for a journal
article:Author [surname, forename]: ‘Title of the article in single inverted commas’, Journal Name in Italics, volume number, (year), page(s) [just the numbers].
EXAMPLE
Leaver, Robin A.: ‘Bach’s Understanding and Use of the Epistles and Gospels of the Church Year’, BACH, vi/4 (1975), 4–13.
But that messes up my encyclopedia entries which end up with double brackets.
Farren, Grainne: ‘Hugh Buckley’, The Encyclopaedia of Music in Ireland, eds. White, Harry and Boydell, Barra (University College Dublin Press, (2013), )p. 135.
I sort of understand that I need to insert at some point an if clause - that is - if the article type is article journal then put brackets on the date - but I really don't get it to be honest. And haven't for some time now!
Could you help please?
The .csl file is here:
https://gist.github.com/Damianeire/bf6bdecc42be6edbe6ae
Thanks,
Damian
I'm having a few issues.
My editors names for an encyclopedia entry are being listed as
Lastname, Firstname and Lastname, Firstname
rather than
Firstname Lastname and Firstname Lastname
Also I fixed it so that the year would be bracketed followed by a comma for a journal
article:Author [surname, forename]: ‘Title of the article in single inverted commas’, Journal Name in Italics, volume number, (year), page(s) [just the numbers].
EXAMPLE
Leaver, Robin A.: ‘Bach’s Understanding and Use of the Epistles and Gospels of the Church Year’, BACH, vi/4 (1975), 4–13.
But that messes up my encyclopedia entries which end up with double brackets.
Farren, Grainne: ‘Hugh Buckley’, The Encyclopaedia of Music in Ireland, eds. White, Harry and Boydell, Barra (University College Dublin Press, (2013), )p. 135.
I sort of understand that I need to insert at some point an if clause - that is - if the article type is article journal then put brackets on the date - but I really don't get it to be honest. And haven't for some time now!
Could you help please?
The .csl file is here:
https://gist.github.com/Damianeire/bf6bdecc42be6edbe6ae
Thanks,
Damian
<text variable="URL" prefix=" <" suffix=">"/>
Update: This looks wrong, I want " & l t ; " and "& g t ;" without the spaces.
1) editors (order of firstname lastname): That is controlled by the name-as-sort-order attribute of name. If you want the order to appear different for authors and editors, you may have to delete the attribute in the citation node.
2) year in encyclopedia entry: I guess you have to add another case in the macro issue:
<macro name="issued">
<choose>
<if type="graphic report article-newspaper" match="any">
<date variable="issued">
<date-part name="day" suffix=" "/>
<date-part name="month" suffix=" "/>
<date-part name="year"/>
</date>
</if>
<else-if type="bill book chapter graphic legal_case legislation motion_picture paper-conference report song thesis" match="any">
<date variable="issued">
<date-part name="year"/>
</date>
</else-if>
<else>
<date variable="issued" prefix="(" suffix="), ">
<date-part name="year"/>
</date>
</else>
</choose>
</macro>
(Might be enough to add entry-encyclopedia in the large list of item types, i.e. in the second case.)
That has fixed the encyclopedia issue. I don't know what you mean by delete the attribute in the citation node, I would have thought I would have needed to add another entry for editor alone, however, I switched the name field to a single field in zotero for those entries and that fixed the problem. It is a work around I'm willing to live with!
You're right however that there is a validation error. I looked at the section you were talking about and it seemed ok:
<if variable="URL">
<text variable="URL" prefix=" <" suffix=">"/>
The above also looks wrong for me - it is written " & l t ;" and "& g t ;" without the spaces
<group prefix=" [" suffix="]">
<text term="accessed"/>
<date variable="accessed">
Validator.nu just tells me:
IO Error: Non-XML Content-Type: text/plain.
Could it be something else?
Thanks again.
When I look at my .csl file that I just saved from visual editor, it has no ""<"" or "">"" in it, only the entity references.
edit:
I've updated my gist file with any changes that I've made, it now will load into zotero without any problems but validater.nu still doesn't like it.
I think one of the problems may have been that I wrote in 'encyclopedia' in the long list, and then went back and did it with the visual editor, which added entry-encyclopedia, so I've since deleted 'encyclopedia'. I'm not if that made a difference to it being accepted by zotero.
http://citationstyles.org/downloads/primer.html
and validating using
http://validator.nu/
both by pasting in text and uploading file.
But if it's validating there then that's probably ok!
Many thanks, I have one more question if you don't mind.
In my subsequent citings I want to have the date as well as the author.
Should I add a 'issued' under:
Layout
Conditional
If subsequent
Section? I can't seem to find a way to get the visual editor to test a subsequent citing, although the zotero test panel does, but then I can't use the visual editor, which is easier for me.
(off-topic: I have an updated version of the primer ready at http://docs.citationstyles.org/en/latest/primer.html, but I'm waiting with redirecting URLs until I've heard from Read the Docs, but they don't tend to their GitHub issues very much. The main issue is that I'm hoping to be able to use Git branches for CSL 1.0 and 1.0.1 (so we can publish multiple versions of the specification), but I haven't figured out how to do this yet. See https://github.com/rtfd/readthedocs.org/issues/989 and https://github.com/rtfd/readthedocs.org/issues/1017
The new primer doesn't discuss validation, since that seemed a bit redundant now that we have https://github.com/citation-style-language/styles/wiki/Validation.)