Upgrading special styles
With the help of a few people on the Zotero forum, I updated the Chicago style xml file to comply with my company's citation style. I just upgraded to 2.0 and that style is no longer available. When I tried to install it again, I was told that it's not a valid format and it wouldn't install. How would I make it happen?
On the subject of special styles, would someone mind telling me how to create a bibliography from my version of Chicago style?
Thank you very much in advance!
On the subject of special styles, would someone mind telling me how to create a bibliography from my version of Chicago style?
Thank you very much in advance!
This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
Upgrade Storage
If it has a bibliography section, you can insert a bibliography by clicking "create bibliography" - but if you modified the "
wrong" Chicago (i.e. "without bibliography") that won't do anything.
I tried going into the Chicago style with bibliography style and adding the bibliography section to my style, and the code seemed to work (at least, it looked the same in my Firefox window as one that did work), but when I try to insert bibliography it says that "Zotero experienced an error updating your document." This is what I added (the first and last lines were already there):
</citation>
<bibliography>
<option name="hanging-indent" value="true"/>
<option name="et-al-min" value="11"/>
<option name="et-al-use-first" value="7"/>
<option name="subsequent-author-substitute" value="---"/>
<option name="entry-spacing" value="0"/>
<sort>
<key macro="sort-key"/>
<key variable="issued"/>
</sort>
<layout suffix=".">
-<group delimiter=". ">
<text macro="contributors"/>
<text macro="title"/>
<text macro="description"/>
<text macro="secondary-contributors"/>
<group delimiter=", ">
<text macro="container-title"/>
<text macro="container-contributors"/>
<text macro="locators-chapter"/>
</group>
</group>
<text macro="locators"/>
<text macro="collection-title" prefix=". "/>
<text macro="issue"/>
<text macro="locators-newspaper" prefix=", "/>
<text macro="locators-journal"/>
<text macro="access" prefix=". "/>
</layout>
</bibliography>
</style>
Is there something else I need, or does this look wrong?
So when Zotero calls "text-macro="locators-chapter"
but there is no such macro defined above
it throws the computer equivalent of a little hissy fit (aka the error message you see).
Can't tell without seeing the whole style, but you can check that for yourself.
does that make sense?
http://gist.github.com/333991
To start, there is no macro "sort-key" (which you use in the <sort> section of the bibliography.
http://gist.github.com/334040
It's this:
<macro name="title-note">
<choose>
<if variable="title" match="none">
<text variable="genre"/>
</if>
<else-if type="book">
<text variable="title" font-style="italic"/>
</else-if>
<else-if type="webpage">
<text variable="title" quotes="true"/>
</else-if>
<else>
<text variable="title" font-style="italic"/>
</else>
</choose>
</macro>
FBennett: I see them, but I don't know what that means. The critical text left out at line 391 wasn't me - I just copied that part from the Zotero style. 421 I typed in, but it's also copied from another Zotero style. How do I know what's wrong with it and how to fix it?
At 391, there is a choose-if-else block with a missing "if" part. The logic of it doesn't make sense without that, so you'll need to get the rest of it from the original style, and adapt it if necessary.
At 421, there is a leading hyphen before the open angle bracket (technically known as "cruft"). If you delete the hyphen, that error will go away.
A validator doesn't pick up missing macros, unfortunately. If you're not comfortable working through the style and figuring out what the various macros do (so that you get predictable results in the bibliography), it might be better to backtrack, as you suggest, and look for a style that has a bibliography, and adapt that incrementally to suit your needs.
<bibliography>
<option name="hanging-indent" value="true"/>
<option name="et-al-min" value="11"/>
<option name="et-al-use-first" value="7"/>
<option name="subsequent-author-substitute" value="———"/>
<option name="entry-spacing" value="0"/>
<sort>
<key macro="sort-key"/>
<key variable="issued"/>
</sort>
<layout suffix=".">
<group delimiter=". ">
<text macro="contributors"/>
<text macro="title"/>
<text macro="description"/>
<text macro="secondary-contributors"/>
<group delimiter=", ">
<text macro="container-title"/>
<text macro="container-contributors"/>
<text macro="locators-chapter"/>
</group>
</group>
<text macro="locators"/>
<text macro="collection-title" prefix=". "/>
<text macro="issue"/>
<text macro="locators-newspaper" prefix=", "/>
<text macro="locators-journal"/>
<text macro="access" prefix=". "/>
</layout>
</bibliography>
I'm looking at Chicago full note with bibliography, by the way.