Harvard style testing
Codec created some Harvard style CSLs. Anyone who wants to test them can follow these steps:
1) Go to the ticket.
2) Click on one of the two attachments, harvard1-raw.csl or harvard2-raw.csl. Scroll to the bottom of the attachment page and click "Original Format" under "Download in other formats".
3) Open the downloaded CSL file in a text editor (e.g. drag into Notepad or TextEdit) and copy the contents to the clipboard.
4) In a Zotero-enabled Firefox, load chrome://zotero/content/tools/csledit.xul. Open the Zotero pane and select some items. Paste the CSL contents into the large text area, and you should see a preview of the items in the Harvard style.
1) Go to the ticket.
2) Click on one of the two attachments, harvard1-raw.csl or harvard2-raw.csl. Scroll to the bottom of the attachment page and click "Original Format" under "Download in other formats".
3) Open the downloaded CSL file in a text editor (e.g. drag into Notepad or TextEdit) and copy the contents to the clipboard.
4) In a Zotero-enabled Firefox, load chrome://zotero/content/tools/csledit.xul. Open the Zotero pane and select some items. Paste the CSL contents into the large text area, and you should see a preview of the items in the Harvard style.
Are the files the same?
They both have the same id
<id>http://www.zotero.org/namespaces/CSL/Harvard2-Author-Date.csl</id>
<source>http://www.leeds.ac.uk/library/training/referencing/harvard.htm</source>
are they the same Leeds and Anglia? I haven't checked all the way through but I assume there's been an uploading snafu.
One thing: on the bibliography, the et.al. rule is set to one author. The Leeds website isn't exactly helpful here (is it implying that the et.al. should hit for au>1, in which case, apologies your rule is right - as I said I don't think Leeds is clear), but the Anglia one says that it should be 4, which seems about right.
If Anglia and Leeds are different, I'm happy to test the Anglia one too. Really grateful for your work here, Harvard is such a useful stye - even if it isn't terribly standard!
A slight side point/question - does any Harvard style that you know of reference the translator of a work ever? The Leeds and Anglia don't seem to.
Regards, Jon.
I deduced the et-al rule on Leeds, I think Anglia is set differently to 4 as you say.
Thanks for the feedback.
I tried putting two books by the same author, different years. Anglia says this should be
(Bloggs 1992, 1994)
Yours has it as
(Fulford 1982; Fulford 1989)
For journal articles and book chapters it should be "p" not "pp"
For book chapters of edited collections there should be a full stop after the chapter title and so the "in" should be "In" and there shouldn't be a comma after ed.
Regards, Jon.
Also, on this process ...
First, manually downloading and copying-and-pasting files is too much hassle for my busy life. It would be easier if you loaded styles as individual files (rather than embedded in a SQL file) in a repository I have both read and write access to, so that I can more easily help improve the style(s), and then just link to there. Having to deal with patches is a PITA.
Obviously the xbib repo has these characteristics, and I've been happy to give people write access to it (though I wonder if a more distributed SCM like mercurial is more appropriate for style development).
Second, I've asked a twice recently for people to state somewhere what styles they're working on, but I've not heard anything from anyone but codec. Am I really to assume the Zotero team isn't working on any styles?
For the record, I have started on Bluebook, and have made incremental progress.
I just validated them, it found two errors.
One was the sort-algorithm wasn't a legal thing
The second was the class="author-date" which it seemed to object to.
I used the emacs nxml mode to verify
What did you find?
Its still showing "pp." for journal articles, it should be "p."
The other stuff seems fine :-)
Among other things, would it be possible for you to give these styles cool URIs; e.g. something like and to actually make them get-able (even if Zotero doesn't yet load them from URI)?
In all liklihood I haven't inserted it right and if you've got it working then its definitely me.
FYI found an opensource SQlite browser-GUI which made inserting the new record appear easy - much easier than mucking about with SQL - if it weren't for it not working that is :-)
http://sqlitebrowser.sourceforge.net/development.html for the GUI
Regards, Jon.
I think I've found the problem and fixed it.
I wrote a small dos .bat script to install the new formats automatically, but its rather fragile due to the firefox profile directory being a little elusive sometimes. It only worked too if you had the default location for the database.
Still can't get your script to work (still have the can't communicate with Zotero problem).
So I tried copying the csl field from the chicago author-date record and it worked fine. So I guess there is still a problem with the script but on the plus side (for me) the SQgui works fine. Sorry I can't help more.
http://www.zotero.org/namespaces/CSL/Harvard1-Author-Date.csl,2007-10-23 18:00:00,Harvard1-Author-Date.csl,<?xml version="1.0" encoding="UTF-8"?> ...
Great stuff.
Two things though:
pp. for edited collections and journal articles, should be p. It's right in the bibliography but not for the in-page citations.
and I just noticed and I'm not sure if CSL can handle this or not. When citing a page range that's more than 3 digits it should be e.g. 1557-70 not 1557-1570. Of course I can change this in the Zotero database but then would have to change it back if using a different style.
I think, though, it might make sense to have this an option, where there are different name rules. I'd be happy discuss adding this with the other people involved in CSL, but I'd like if someone could do some research and find out if there are good values to add other than "chicago."
Also, to make things harder the alternative (Leeds) Harvard that Codec has set up doesn't seem to shorten page numbers in this way but does use pp.
WALKER, J R. 1998. Citing serials: online serial publications and citation systems. Serials-Librarian, 33 (3/4), pp.343-356.
Regards, Jon.
I think there are some dicrepencies out there. funny enough i never managed to find info from harvard themsleves :)
I vote for keeping the pp and full page numbers for the intervals (p still used for referring to a single page though)
I will try now to test the citation format.
cheers
In-text citation - author and date should be separated with comma.
Reference list - for journals - journal volume and issue number should be structured differently according to the two sources I have have, i.e. 'Vol. 1, No. 3' and not 1(3).
I think, the only viable solution to the problem of not having one Harvard standard is through the new feature in zotero that would allow us to edit easily the citation formats to make it match the requirements of the institution we are affiliated with.
I reckon you could roll out this citation the way it is since there will be no agreement. I should be still usefull until we get the new feature in zotero.
cheers. thanks for the efforts. much appreciated.
I suspect an easy to use GUI is not going to be very easy to make. There are quite a number of decisions to make in layout and even then its not always possible to find rigorous rules. However if we can get plenty of examples done, and an easy way to add new ones, I think eventually pretty much everything will be catered for, or else close enough that a couple of small tweaks are all that is needed.
I had a quick look at the OU style guide http://library.open.ac.uk/documents/Harvard_citation_hlp.doc
and there is a wonderful discrepancy to keep us all on our toes between print journals which cite vol. 8, no. 4 and ejournals which cite 8(4).
On releasing styles: I've mentioned to Dan in a private email that where I want to get (sooner rather than later) is you create a style for some course or journal, post it at some stable location, and your colleagues can simply load/subscribe to that style by clicking or pasting the style URI into Zotero (or any other application that supports CSL). A user should never -- ever -- have to manually distribute or load a CSL style. Atom will make this process smoother, allowing browsing of collections of styles and such, automatic updating, etc..
Right now we're in a strange initial stage where styles (in Zotero) are all or nothing: either everyone gets access to them, or nobody does. But I'd encourage you to make them available, even if they don't get loaded in Zotero by default. "Available" means retrievable over HTTP either by the value of the cs:id element, or the cs:link.
And yes, a full GUI will be difficult; the power of the markup gets a little hard to represent in a GUI. But, one can think about something like BibTeX's makebst: a wizard that allows you to create an almost-perfect finished style based on a series of questions.