Unwanted [Available at:] and [Accessed date] information in reference list
I just installed a new computer and am now using Windows 7, Firefox 4, Zotero 2.1.1, Word 2010 and the corresponding plug-in.
Zotero had been running nicely on my old computer, but in this new combination this problem arose:
For most of the styles I tried, including Cell J, EMBO J, Harvard reference format 1 (author date), they all generated the Available at, and Accessed date information in the end even for Journal Articles, which is of course unwanted. Even though for most Journal Articles the Available at filed is empty, they still managed to generate this information followed by a space. However Chicago manual of style (author-date) and Nature styles didn't show this problem.
How can I somehow fix this?
Thanks very much!
Zotero had been running nicely on my old computer, but in this new combination this problem arose:
For most of the styles I tried, including Cell J, EMBO J, Harvard reference format 1 (author date), they all generated the Available at, and Accessed date information in the end even for Journal Articles, which is of course unwanted. Even though for most Journal Articles the Available at filed is empty, they still managed to generate this information followed by a space. However Chicago manual of style (author-date) and Nature styles didn't show this problem.
How can I somehow fix this?
Thanks very much!
(FF 3.6.16 Ubuntu 10.04)
Author1, O., Author7, T. & Author3, T., 2008. Article No Issue No Pages Url Full Date Abstract. Test Journal, 12, pp.23-32. Available at: [Accessed December 16, 2008].
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:z="http://www.zotero.org/namespaces/export#"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:prism="http://prismstandard.org/namespaces/1.2/basic/"
xmlns:bib="http://purl.org/net/biblio#"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<bib:Article rdf:about="#item_107">
<z:itemType>journalArticle</z:itemType>
<dcterms:isPartOf>
<bib:Journal>
<dc:title>Test Journal</dc:title><prism:volume>12</prism:volume>
</bib:Journal>
</dcterms:isPartOf>
<bib:authors>
<rdf:Seq>
<rdf:li>
<foaf:Person>
<foaf:surname>Author1</foaf:surname>
<foaf:givenname>One</foaf:givenname>
</foaf:Person>
</rdf:li>
<rdf:li>
<foaf:Person>
<foaf:surname>Author7</foaf:surname>
<foaf:givenname>Two</foaf:givenname>
</foaf:Person>
</rdf:li>
<rdf:li>
<foaf:Person>
<foaf:surname>Author3</foaf:surname>
<foaf:givenname>Three</foaf:givenname>
</foaf:Person>
</rdf:li>
</rdf:Seq>
</bib:authors>
<dc:title>Test Article</dc:title>
<bib:pages>23-32</bib:pages>
<dc:date>2008-10-16</dc:date>
<dcterms:dateSubmitted>2008-12-16 21:40:10</dcterms:dateSubmitted>
</bib:Article>
</rdf:RDF>
Author1, O., Author7, T. & Author3, T., 2008. Test Article.
(Newline inserted for readability)<i>Test Journal</i>, 12.
Looks like this may be system-dependent, and may not be a processor issue.
Could this be different for some reason in ML and regular Zotero? Can someone else help test this? (System sounds unlikely - our's are pretty similar and very distinct from the OP).
Or maybe I'm missing something about the issue.
What's creepy: I went back to my old computer afterwards and re-inserted the bibliography to the same document. The [Accessed:] and other fields are there again! As I said, on my old computer things had worked out fine. There was no such problems before, and I didn't change any installation on my old computer (Windows Vista, Word 2007, Zotero and FireFox versions lower but don't remember which one -- they are not in my hand right now).
The only thing I did was that I tried to sync my library with Zotero server...Well I'm not a computer guy, so this might sound stupid: can sync change the records somehow???
If I check the box, the bibliography will look like this:
Ahmad, K., and Henikoff, S. (2002). The histone variant H3.3 marks active chromatin by replication-independent nucleosome assembly. Mol Cell 9, 1191-1200. Available at: http://www.ncbi.nlm.nih.gov/pubmed/12086617 [Accessed February 14, 2011].
If I uncheck the box, it looks like this:
Ahmad, K., and Henikoff, S. (2002). The histone variant H3.3 marks active chromatin by replication-independent nucleosome assembly. Mol Cell 9, 1191-1200. Available at: [Accessed February 14, 2011].
The style uses a nesting group to join the URL to the access date note:
<group>
According to the specification: (emphasis added)<text value="Available at:" suffix=" "/>
<text variable="URL"/>
<group prefix=" [" suffix="]">
<text term="accessed" text-case="capitalize-first" suffix=" "/>
<date variable="accessed">
<date-part name="month" suffix=" "/>
<date-part name="day" suffix=", "/>
<date-part name="year"/>
</date>
</group>
</group>
So if there is a date inside the child group, that triggers rendering of the entire macro. To produce the expected behavior, the outer group should be replaced with a <choose> wrapper.
The style needs to be fixed, which is relatively straightforward. You can either read the CSL 1.0 Primer and refer to the Specification in order to make the changes yourself. That has the advantage of putting you in control of your own desk (and gives the community another mentor, which is always a good thing).
You can also wait for someone to act on this thread (which will probably happen fairly soon, since Cell and Harvard 1 are widely used -- it depends on how many other people complain).
Don't take this the wrong way, and I understand the pressures that everyone is working under, but please remember that this end of Zotero is driven by a community of people who have their own research to attend to. The CSL team (consisting entirely of full-time academics and grad students, at the time CSL 1.0 was in development) have put together very complete documentation on the CSL language, including a Primer that can be found on the CSL website. adamsmith, in particular, has invested a great deal of time and energy, in the midst of his own degree studies, in providing support and fielding requests for style changes. We believe in this thing, which is why we're here; but please remember that we do have lives, and that we've provided the documentation linked above in the faith that people will refer to it, study it, put it to use, and enhance Zotero further through the sum of their efforts.
With a little fiddling about with grep and sed, I've come up with a list of 89 styles that seem likely to be caught out by the strictness of the new processor. As adamsmith says, fixing them by hand is probably necessary, but as the processor is the cause of the commotion, I'm happy to help out with the fixes. For a start, I've fixed harvard1.csl, and I'll post the code block in a subsequent post below as a sample.
In the list below, I'll start in on the styles beginning with "a", and post a note before moving on to another set. Anyone with style checkin access at zotero.org, please feel free to join the party, but there are no obligations here.
(Edit: On note on the process for this. In connection with the migration to CSL 1.0, there are now two repositories, one for CSL 0.8.1 styles [the current Zotero repository linked from the zotero.org], and one for CSL 1.0 styles [in the CSL github archive]. As users of Zotero 2.1 might install a style from other source at present, and as the fixed styles will work in either Zotero 2.0 or Zotero 2.1, we should make the changes in the Zotero repository in the first instance, and pull a converted style across to the github CSL 1.0 repository. That way, the changes will be reflected in both sets.)
Anyway, here's the list of suspects:
aag.csl
academy-of-management-review.csl
aeema.csl
ajps.csl
ama.csl
ama-no-et-al.csl
american-journal-of-botany.csl
american-journal-of-medical-genetics.csl
american-phytopathological-society.csl
ametsoc.csl
animal-behaviour.csl
antonie-van-leeuwenhoek.csl
apsa.csl
asa-cssa-sssa.csl
australian-legal.csl
bioinformatics.csl
biotropica.csl
bluebook2.csl
bluebook-inline.csl
bluebook-law-review.csl
bone.csl
british-journal-of-sociology.csl
bspf.csl
cell.csl
corr.csl
cshlp.csl
current-biology.csl
embo-journal.csl
eye.csl
fems.csl
gastroenterology.csl
genesdev.csl
genome-biology-and-evolution.csl
genomebiology.csl
gost-r-7-0-5-2008.csl
gost-r-7-0-5-2008-csl-1-0.csl
gost-r-7-0-5-2008-numeric.csl
harvard1de.csl
harvard2.csl
harvard-cardiff-uni.csl
harvard-european-archaeology.csl
harvard-leeds-met.csl
hydrogeology-journal.csl
ibd.csl
ieee.csl
injuryprevention.csl
international-journal-of-audiology.csl
inter-ro.csl
iop-harvard.csl
iop-vancouver.csl
isme-journal.csl
jacc.csl
javnost.csl
jbc.csl
jepop.csl
journalistica.csl
journal-neuroscience.csl
journal-neurosurgery.csl
journal-of-experimental-biology.csl
journal-of-pragmatics.csl
journal-of-social-archaeology.csl
journal-of-the-american-dietetic-association.csl
journal-of-urology.csl
jrp.csl
kzfss.csl
media-culture-and-society.csl
metabolic-eng.csl
meteoritics.csl
mhra.csl
mhra_note_without_bibliography.csl
microscopy-and-microanalysis.csl
nuc-acid-res.csl
organization-science.csl
oryx.csl
ou-a251.csl
pnas.csl
rna.csl
ro-humanities.csl
social-studies-of-science.csl
socio-economic-review.csl
tah-gkw.csl
tah-leviathan.csl
tah-soz.csl
traces.csl
turabian-fullnote-bibliography.csl
umuai.csl
waterresearch.csl
water-science-tech.csl
yeast.csl
Old version:
<group>
<text value="Available at:" suffix=" "/>
<text variable="URL"/>
<group prefix=" [" suffix="]">
<text term="accessed" text-case="capitalize-first" suffix=" "/>
<date variable="accessed">
<date-part name="month" suffix=" "/>
<date-part name="day" suffix=", "/>
<date-part name="year"/>
</date>
</group>
</group>
New (correct) version:
<choose>
<if variable="URL">
<text value="Available at:" suffix=" "/>
<text variable="URL"/>
<group prefix=" [" suffix="]">
<text term="accessed" text-case="capitalize-first" suffix=" "/>
<date variable="accessed">
<date-part name="month" suffix=" "/>
<date-part name="day" suffix=", "/>
<date-part name="year"/>
</date>
</group>
</if>
</choose>
The other styles listed above probably need a similar change.
(sorry everyone else for the technical details here, but it makes sense to have this discussed as transparently as possible.
Done with the "a" group. I'll start in on the "b" group now.
adamsmith knows the workflow for style changes, and can give an idea of when the updated files are likely to become available in the Zotero style repository.