Importing .csl

Hi
A colleague created a .csl that is close to the cite them rite harvard style we need to use. When I import it it seems to go fine but does not show up as a style in the styles window after the installation.
Any ideas?
Cheers

Gervase
  • Have you changed to style and ID in the file?
  • Hi Thanks for your reply. I'm not sure I understand the question. The code can be found here:
    http://code.google.com/p/csl-cite-them-right/source/browse/harvard-cite-them-right.csl

    I had a little trouble getting it into Zotero on a mac. I copied the cod into text edit, saved as an xml then changed to .csl.
    I didn't right the code so do not know the ins and outs of the coding.
    Any help would be greatly appreciated.
    Regards
    Gervase
  • (the "DOI" CSL variable should be capitalized; "doi" is invalid)
  • The style isn't valid. I'm not sure whether the errors would prevent it from loading, but they should be fixed up before going further. There is information on validating CSL styles here.

    The errors are:

    1. At line 54, doi should be DOI
    2. At line 139, doi should be DOI
    3. At line 199, doi should be DOI
    4. At line 214, doi should be DOI
    5. At line 250, doi should be DOI
    6. At line 260, doi should be DOI

    The question about the title and ID was just to check that the style wasn't just replacing an existing file on your system (and so appearing not to load). I see that you've given it its own ID, though. Possibly the root of the URL in the ID is a problem, I'm not sure (most styles have http://zotero.org as their root).
  • You've to replace "doi" by "DOI" to fix it.
    Anyway, I was able to install it in my zotero.
  • Thanks for all your comments.
    I've replaced the dois with DOIs.
    But I still can't get it to load is there a way of doing it from within Zotero using the csl editor. I pasted it in there and it shows the citations but I don't see a way to save it off as a new style.
    If I try to load using a word xml file created in text edit with the suffix changed to .csl it just doesn't register.
    Tried saving off as .xul from within Zotero and changing that to .csl, still no go. It says it's installing but doesn't show up.
    Cheers
    G
  • But I still can't get it to load is there a way of doing it from within Zotero using the csl editor.
    Not at the moment (but it's planned.

    Your style must be saved with the .csl extension.

    Read that: http://www.zotero.org/support/dev/citation_styles/style_editing_step-by-step#install_your_edited_style_with_zotero
  • Hey Gracile

    Yeah I've read that before. It suggests opening the code in text edit and then saving off as a .csl. But saving as a .csl is not an option in text edit so I'm kinda stumped there. What i've been doing is saving off as a word .xml and then changing the .xml to a .csl.
    How did you load it into Zotero. Is there any way you can send me the file please?
    Cheers
    G
  • edited May 9, 2012
    "Click on 'File', then 'Save'. Unselect the box at the bottom of the save dialog box that says 'If no text is provided, use '.txt'. Save your file with the .csl extension by manually typing in '.csl' after the name of your file."
    (explanations borrowed from here since I don't know Text Edit).

    Edit: added to the wiki.

    http://forums.zotero.org/discussion/22017/how-to-install-modified-style/#Item_19
  • Hi

    Thanks for that link. I've got it in now.

    There's a couple of steps to take before you get there but it works. Thanks again for all your help.

    G

This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.

Sign In or Register to comment.