Style Request: Clio Medica (or how to add op. cit. to (Chicago Full Note)

13»
  • Ignore 1 above. My bad.
  • 2. If you can reproduce 2. that would likely be a bug. The style should never produce translators that are not initialized.
  • It's also sorting translators last name first in notes (which it shouldn't do) and doing the same with editors only when they appear with a translator. Thus:

    J. Smith, 'Chapter', in Lastname, A. (ed.), Lastname, B. (trans.), Book (Place: Publisher, Year), 1-21.

    But:

    J. Smith, 'Chapter', in A. Lastname (ed.), Book (Place: Publisher, Year), 1-21.
  • No bugs, just my horrible attempt at coding - despite which the style works now with no evident flaws. Ideally, someone who knows better could remove vast chunks of this code without impacting on functionality but it's hardly necessary given that it works as is and is never likely to be widely used

    Final draft here:
    https://gist.github.com/3034521
  • thanks - I've put it up, mostly unchanged. There were a couple of issues that were invalid - have a look at the style when it appears on the repo. Specifically
    - name-as-sort-order doesn't have a "none" option. You just leave it out if you want all names in the "natural" order.
    - number variables have a form attribute "numeric" (not number) - which is the default so you can leave it out
    - you can't set initialize-with on cs:names only on cs:name
  • @adamsmith, I don't think you pushed the style.
  • thanks, done now - should show up in 30mins max.
  • Thanks adamsmith & Rintze. The style "works" but it doesn't validate - I had thought that as long as it didn't produce an error code in zotero's csl editor that it was validated but apparently not.

    It's up to you obviously whether you take the style down or not - which is incidentally pretty much the same style used by the journal Medical History, formerly at UCL http://www.ncbi.nlm.nih.gov/pmc/journals/228/ but now at Cambridge journals http://journals.cambridge.org/action/displayJournal?jid=MDH - but I really don't understand the implications of a style not validating.

    Anyhow, I may just keep working on it over the next while so that I can teach myself how to write csl to some extent. If I do maybe I'll submit this style in a form that properly validates at some stage in the future.
  • adamsmith made some corrections, and the version in the style repository validates: http://validator.nu/?doc=https%3A%2F%2Fraw.github.com%2Fcitation-style-language%2Fstyles%2Fmaster%2Fclio-medica.csl&schema=https%3A%2F%2Fgithub.com%2Fcitation-style-language%2Fschema%2Fraw%2Fv1.0%2Fcsl.rnc&parser=xml&laxtype=yes
  • http://validator.nu/?doc=https://gist.github.com/3034521&schema=https://github.com/citation-style-language/schema/raw/v1.0/csl.rnc&parser=xml&laxtype=yes

    I'm sorry for monopolising so much time but could you give me some indication of what the error codes mean at the above link - when I go to line 1 column 6 etc as indicated I can't see any obvious problems - not that I would in truth.
  • no prob. two things:
    1. you need to use the "Raw" link to the file, not the link to the github page for the validator
    2. For whatever reason the online validator chokes when there are spaces in the filename, so you'll need to change that before it works, else you'll get and "IO Error: Invalid redirect location:"

    once you've done that the errors should be clearer, but feel free to ask if you still have questions - some of them do take soem experience to figure out.
  • Cool that validates now http://validator.nu/?doc=https://raw.github.com/gist/3034521/477bc22efe1905a035be72711a4ced877297d7c7/Clio%20Medica%20Style%20(Draft)&schema=https://github.com/citation-style-language/schema/raw/v1.0/csl.rnc&parser=xml&laxtype=yes

    That version just fixes one small error where the volume number of a book was sometimes included in an op. cit. and changes the formatting of a thesis to Medical History norms. No need to update repository style though as I'm bound to find more issues over the next few weeks. Thanks again.
  • I have a question. Using a style based on Chicago full note as a template is it possible to alter it to do the following.

    Jane Doe, 'Chapter' in John Smith (ed. and trans.), Book Title (London: Routledge, 1999), 76-83.

    Jane Doe, 'Chapter' in John Smith (ed.), Book Title, Johann Ludwig Tieck (trans.) (London: Routledge, 1999), 76-83.

    That is, to keep the editors in front of the container-title but place the translators after the container-title except where the identity of the editor and translator is the same and in which case the editor-translator should precede the container-title.
  • I think you should be able to test for editortranslator conceptually along the lines of

    macro name="editor-translator"

    if variable="editortranslator"
    names variable="editor translator"...
    else
    names variable="editor"


    macro name=translator
    if variable="editortranslator" match="none"
    names variable="editor"

    I'm not 100% sure that testing for editortranslator actually works, though, so test that in a simple set-up first.
  • Thanks. It doesn't seem to be a variable though.
  • Hi all. I loaded the csl file and it works perfectly.
    I have one question. I'm working on my PhD thesis and it's in Spanish. The insertion of "op.cit." adds a reference to a previous footnote, but it says "note xx" and I'd need it to say "nota xx". Where do I find that in the code to change it?

    Thanks,
  • If EVERYTHING else is fine for you, all you'd need to change is line 714.

    If you'd want to change other things and want other parts of the style also in Spanish you'd change the locale in line 2 from en-GB to es-ES and go from there (incl. above change).

    https://www.zotero.org/support/dev/citation_styles/style_editing_step-by-step
Sign In or Register to comment.