Not signed in (Sign In)
 

Quick Links

Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorantonh
    • CommentTimeNov 22nd 2008
     
    I've just added a modified version of the Bluebook style to suit Australian legal formatting conventions to the repository (install link: http://www.zotero.org/styles/australian-legal/dev?install=1).

    It's similar to, but not identical to the Australian Guide to Legal Citation 2 style, which is just too finicky for me. If enough people are interested, it could be developed towards this goal.

    I'll be using it for my PhD thesis, and have tested it on my library - it seems consistent so far. Please feel free to try it out, and if you have any problems, or want to give any feedback, either do so here, or send me an email to anton dot hughes at utas dot edu dot au.

    Note I did find an issue with volume number handling (see http://forums.zotero.org/discussion/4831/bug-with-csl-matchnone-handling/) but for an interim fix just delete and re-type the volume number.
    •  
      CommentAuthorRintze
    • CommentTimeNov 23rd 2008 edited
     
    Your style is invalid CSL: the first macro ('name-macro') is missing an if-conditional. You can find some info on validating CSL styles at http://www.zotero.org/support/dev/creating_citation_styles
    • CommentAuthorantonh
    • CommentTimeNov 23rd 2008
     
    Fixed. Thanks for the tip.

    I found the stuff on validating CSL a bit too brief for someone with no understanding of RelaxNG. I'm on OSX, and I like TextMate, so didn't really want another editor to buy/install. I installed an XML plugin for textmate, but it doesn't support the compact syntax unfortunately. So after mucking around with rnc2rng converters with no luck, I eventually settled on jing as a command line validator, which you just use like this:

    java -jar jing.jar -c csl.rnc australian-legal.csl
  1.  
    For what it's worth, Trang generally works for converting from .rnc to .rng:

    java -jar trang.jar -I rnc -O rng csl.rnc csl.rng
    • CommentAuthorbdarcus
    • CommentTimeNov 23rd 2008 edited
     
    I found the stuff on validating CSL a bit too brief for someone with no understanding of RelaxNG. I'm on OSX, and I like TextMate, so didn't really want another editor to buy/install. I installed an XML plugin for textmate, but it doesn't support the compact syntax unfortunately.

    Aqua Emacs is Mac native, and includes the excellent NXML mode (which supports the compact syntax) out-of-box. I realize you're happy with TextMate, but you might find emacs/nxml the better solution for XML in general, and CSL in particular.

    It's really painful to treat validation as a separate step, compared to what you get with realtime validation.
    • CommentAuthorantonh
    • CommentTimeNov 23rd 2008
     
    @Dan: I did try converting the RNC to RNG with Trang, but it didn't seem to work when I tried to use it with the validator. Will try again with the command as you've set it out.

    @bdarcus: I like the sound of real time validation. Will give Aqua Emacs a go.
    • CommentAuthorbdarcus
    • CommentTimeNov 23rd 2008
     
    I should add that there's one annoyance with real-time validation and how the zotero repository handles CSL files: your document will never be 100% valid since the repo expects the updated element to be empty. I'd still like to see this changed, as it's both annoying, and unnecessary.
  2.  
    Bruce: That's not the case. A post-commit script just updates the timestamp when generating the repo version regardless of whether or not there's a timestamp in the committed file, which is why I've suggested that leaving the timestamp empty when committing is fine. But leaving in any arbitrary timestamp so as to pass validation is also fine—there's just no reason to bother updating it manually.
    • CommentAuthorbdarcus
    • CommentTimeNov 24th 2008
     
    Ah, great. But has that always been the case? I could have sworn I previously ran into problems when committing files with valid (non-empty) timestamps.
  3.  
    I could have sworn I previously ran into problems when committing files with valid (non-empty) timestamps.

    It's entirely possible. That part of the post-commit code has been buggy in the past.
  4.  
    Hi all,

    I am having trouble with the Australian legal citation style. In particular when using the citation type 'statute' Zotero does not have a jurisdiction field and so I have been trying to substitute 'last name' field. Also the 'name of the act' field does not display in the document when used and last name is then incorrectly italicised. Can someone offer me either better substitutions for the fields, remedy the style or tell me where I am going wrong.

    Dale.
  5.  
    Hi all, can you also help me on 'section' it does not display as a pinpoint reference with ALC?

    I have tried both adding the section to the record or adding as a pinpoint when inserting a citation. I can add by hand after the inserted citation but this does not work with the period at the end of the auto citation when I refresh.

    I hope this all makes sense. I'm not a coder. I would like to help improve ALC. I can test and do requirements gathering.

    Regards,

    Dale
    • CommentAuthoradamsmith
    • CommentTimeSep 29th 2009
     
    Hi - for the problems that you have - could you tell me what you currently get and what you should be getting? Including in which field you have the information that is included?
  6.  
    Sure, BTW, thanks Adam.

    1. high priority (for me) resource www.austlii.edu.au translator does not work
    2. 'statute' record type does not contain a 'jurisdiction' field type. After experimentation I have discovered that field type 'extra' does the job
    3. Footnote for AGLC2 or zotero ALC 'statute' citation style should be:
    3.1 <i>name of act</i> <i>date(year only)</i> <>jurisdiction(in brackets) or extra(fudge)</> <>pinpoint</><>.</> note: option to leave off URL and accessed date, I don't want it but others might?
    3.2 example: <i>Crimes Act 1900</i> (NSW) ss 19A, 442. Note: pinpoint can be 'part' 'section' 'div' 'page' etc I would prefer the field was just "pinpoint" and not include the high degree of granularity that exists. That way within the field I can include a wide range of pinpoint options and multiple pinpoints without too much complexity.
    4. ALC does not include a bibliography.
    4.1 Bibliography should include all records in a folder
    4.2 It should sort records by type and alphabetically:
    4.2.1 articles/books/reports
    4.2.2 case law
    4.2.3 legislation
    4.2.4 treaties
    4.2.5 other sources (interviews/letters/memos/emails etc)

    The discovery of the 'extra' field has solved my jurisdiction problems. The pinpoint problems still exist though I am including pinpoints in the footnote after the zotero field entry. Before publishing I will run a find/replace on ".s" and replace with s and everything will be sweet for me. Finally, I personally would prefer that the statute record type was called 'legislation' but that's just me and I can certainly live with it.

    Thanks again Adam.
    • CommentAuthoradamsmith
    • CommentTimeSep 30th 2009
     
    OK
    1 and 2 have nothing to do with the style - I suggest you bring them up in a different thread (each individually)

    3. not sure I understand this one, partly because I don't have time to go through the moves to see what the Zotero ALC does currently. What you call "pinpoint" (which is not a csl/zotero variable, is it?)- any reason that couldn't be just section? Section is a free text field - you could put anything you want in there.

    4. Zotero/csl cannot as of now sort bibliographies by type/ create subject bibliographies and the like. I'm not sure what the status of this is for csl 1.0 (i.e. the near future), but it has certainly be discussed a lot.

    As for "legislation" - there are item types for "bill" and "statute" - I'm not a lawyer, I don't really even understand the difference - but both appear to be legislation, so they are more finegrained.
    • CommentAuthorantonh
    • CommentTimeNov 19th 2009
     
    I'm responsible for the style as it stands at the moment. There are (sometimes good) reasons for the limitations you have picked up on - I'll try and address them as best I can:

    * Re jurisdiction field: not all Zotero fields are available to CSL (just not implemented yet) - extra is one of those few fields that is, so that's why I've used it for jurisdiction.

    * Re statute: can you give an example of how it currently (improperly) outputs pinpoint references? Oh and the jury is out as to whether the year should be italicised or not. Some say yes, some say no. I don't care, but like the look of it italicised, but if there's a more people using the style who want it changed, I'm happy to do it.

    * Re bibliographies: you're right, I haven't even got that far yet. Glad I didn't since CSL/Zotero don't handle it yet. It might be possible to get around that by generating a properly formatted bibliography document for a particular collection as an RTF or the like.

    Hope that helps - thanks for the feedback.
    • CommentAuthornicsuzor
    • CommentTimeJan 4th 2010
     
    I've made a few hack changes to some minor issues in line with the AGLCv2. I am testing this with my thesis, and will probably make more as I go along. Not knowing the etiquette, though, I have not checked in to SVN. If you want to incorporate any of these changes, you can find them at http://nic.suzor.com/australian-legal-zotero-citation-style/

    1. removed final comma in journal article names
    2. removed ‘at’ in pinpoint references and replaced with commas
    3. for pinpoints in legislation and books, just use a space instead of a comma
    4. don’t use ‘above’ for legislation, only ‘ibid’ or a new ref
    •  
      CommentAuthorRintze
    • CommentTimeJan 5th 2010
     
    Not knowing the etiquette, though, I have not checked in to SVN.

    Feel free to submit your changes to the SVN. It's appreciated if you first validate your modified style(s), though (see http://www.zotero.org/support/dev/creating_citation_styles ). Thanks!
    • CommentAuthornicsuzor
    • CommentTimeJan 19th 2010 edited
     
    Ok, I've checked my modifications in. Main additional changes so far:

    * added speeches, oral conference papers etc (events)
    * added report (AGLC 6.16)
    * added interview (AGLC 6.11)
    * added edited books (books with no author display as "editor (ed), /title/ (date)" (AGLC 5.1.2)
    * style uses the 'authority' ('court') field to distinguish between US and Australian cases; legal_case with a 'court' field has the 'court' listed.
    * several sets of formatting - italics and quotes fixed, according to AGLC
    * new rule for newspapers (AGLC 6.2)
    * updated rule for webpages (AGLC 6.14)
    * new rule for theses (AGLC 6.7)

    I have a problem validating with the change to handling of cases:

    australian-legal.csl
    australian-legal.csl:227:3: error: attribute ^variable with invalid value "authority"
    australian-legal.csl:242:7: error: attribute ^variable with invalid value "authority"
    error: some documents are invalid


    However, the style still works, so I'm not sure whether this is a real problem. I check the value of 'authority'. If it exists, I write the reference as a US style ref (with court) (AGLC Rule 11.1); if not, then I use the australian style (Rule 2).
    • CommentAuthoradamsmith
    • CommentTimeJan 19th 2010
     
    the style you uploaded validates fine for me. How do you validate? What you did looks perfectly alright.
    Also nice working commenting your work so thoroughly.
    • CommentAuthornicsuzor
    • CommentTimeJan 19th 2010
     
    Thanks; I validate with rnv: "rnv csl.rnc australian-legal.csl". It throws up the errors above, but the script still works.
    • CommentAuthoradamsmith
    • CommentTimeJan 19th 2010
     
    yeah - I just saw that the repository doesn't think it's valid either, nor does validator.nu
    I validate with nxml on emacs and that says its valid.
    weird. Maybe someone else has an idea?
    •  
      CommentAuthorRintze
    • CommentTimeJan 20th 2010 edited
     
    It's a bit weird. The "authority" variable was added one day before 0.8 was tagged:

    http://sourceforge.net/apps/trac/xbiblio/changeset/756
    and
    http://sourceforge.net/apps/trac/xbiblio/changeset/767

    but it doesn't appear in the released version:
    http://xbiblio.svn.sourceforge.net/viewvc/xbiblio/csl/schema/tags/0.8/csl.rnc

    I think Dan uses a slightly modified copy of the schema ... [edit: apparently not :P ]
  7.  
    Nope. We just pull from that URL and validate.

Zotero Forums are powered by Vanilla 1.1.5a