DAI bibliographic style
I've been working on a CSL style sheet for the German Archaeological Institute (DAI) author-date citation style, and I've almost got it down, but I'm stuck on one last thing. The bibliography is supposed to look as follows:
Cartledge 1977
P. Cartledge, Hoplites and Heroes, JHS 79, 1977, 45-64
How do I get the bibliography to provide the short author-date citation on the line above each full bibliographic citation? I've run into this with other citation styles as well, so I can't be the only one with this problem. Thanks!
Cartledge 1977
P. Cartledge, Hoplites and Heroes, JHS 79, 1977, 45-64
How do I get the bibliography to provide the short author-date citation on the line above each full bibliographic citation? I've run into this with other citation styles as well, so I can't be the only one with this problem. Thanks!
And here's an example, l. 223-237.
<group display="block">
<text macro="contributors-short" suffix=" "/>
<text macro="date"/>
</group>
<group display="block">
--- full citation info ---
</group>
Except I can't seem to get rid of a line space between the author-date and the main entry -- <entry-spacing="0"> in the bibliography doesn't seem to help. Any suggestions on this?
http://en.wikipedia.org/wiki/Soft_return
It should be possible to convince Word to no insert an extra line after that. My recommendation would be to show all formatting signs in Word to see what's going on.
Word or Libre Office are the best places to test formatting output. For everything else, use the csl test pane:
http://www.zotero.org/support/dev/citation_styles/reference_test_pane
but unfortunately that's not very useful for line spacing and the like. A validator wouldn't help here at all.
Author-Date[soft return]
[soft return]
Bibliographic citation. PDQ, 1997, 10-15[soft return]
[hard return]
[soft return]
Next author-date, etc.
Let me know if you need the style sheet to make sense of all this -- it's a mess, but I would be happy to share it (and maybe someone could help me figure out why the editors stopped appearing in the main citations for edited volumes).
The editors don't appear where exactly? In the in-text citation or at the end?
<bibliography hanging-indent="false" line-spacing="1" entry-spacing="0">
<sort>
<key macro="contributors"/>
<key variable="issued"/>
</sort>
<layout>
<group display="block">
<text macro="contributors-short" suffix=" "/>
<text macro="date"/>
</group>
<group display="block">
<text macro="contributors" suffix=", "/>
<text macro="editor" suffix=", "/>
<text macro="title"/>
<text macro="secondary-contributors"/>
<text macro="short-container-contributors"/>
<text macro="edition" prefix=", "/>
<text macro="container-title-short"/>
<text macro="locators" suffix=", "/>
<text macro="collection-title" prefix=", "/>
<text macro="issue"/>
<text macro="place-date"/>
<text macro="journal-date"/>
<text macro="locators-chapter"/>
<text macro="locators-article"/>
</group>
</layout>
</bibliography>
... gives me the following:
Shaw – Shaw 2000
Kommos IV: The Greek Sanctuary (Princeton 2000)
(with Shaw and Shaw missing as editors). But if I just clip out these lines:
<group display="block">
<text macro="contributors-short" suffix=" "/>
<text macro="date"/>
</group>
I get this instead, as the entry should be:
J. Shaw – M. Shaw (eds.), Kommos IV: The Greek Sanctuary (Princeton 2000)
What am I missing?
It's forbidden to put a "text" element (text value=...) inside a "names" element.
(Validation)
"Substituted variables are suppressed in the rest of the output to prevent duplication."
http://citationstyles.org/downloads/specification.html#substitute
I think the easiest way out here is to rewrite the substitute as an statement.
<group display="block">
<text macro="contributors-short" suffix=" "/>
<text macro="date"/>
</group>
<group>
<text macro="contributors" suffix=", "/>
...
And for the missing editors, you can have a look at Rintze's comment here (it was the same issue).
Shaw – Shaw 2000
J. Shaw – M. Shaw (eds.), Kommos IV: The Greek Sanctuary (Princeton 2000)
I need to tweak a few other things, but if I can beat the code into something that's not embarrassing, I will send it in to be posted, with the appropriate caveats, I guess.
is there any way to get your DAI-Style, cause I'm gonna need it so much. And my Skills in Programming are..lets see...non-existent! I would appreciate your work very much!
Johannes
is there a new update on the status of your style? I just came across this thread as i have been working on a style for some time now "in the hidden". If there are still some things you'd need, i'd be happy to throw things into your code, while if your code is ready it would be nice to know when it will be put to the repository.
In any case, thanks a lot for your work.
Dominik
is there any news about your desperately awaited style? it would be of great use for me too.
Ana
Adam