problems changing the tah-gkw style
Hi everybody,
I 'm using Zotero 2.0.9 with OO 3.2. I've been trying to change the "tah Geistes- u. Kulturwissenschaften" style (http://www.zotero.org/styles/tah-gkw/dev) to the demands of my faculty by "reverse engineering" and copying from other styles. So far I have succeeded in changing the style from this
Strasburger, Hermann: “Der Einzelne und die Gemeinschaft im Denken der Griechen,” Historische Zeitschrift 177/2 (1954), S. 227-248.
“Indo-European Etymological Dictionary (IEED),” http://ieed.leidenuniv.nl/ (zugegriffen am 29.10.2010).
to this:
STRASBURGER, H.: Der Einzelne und die Gemeinschaft im Denken der Griechen. In: Historische Zeitschrift. Bd. 177 (1954), Nr. 2, S. 227-248.
Indo-European Etymological Dictionary (IEED). In: Bd. Nr. , http://ieed.leidenuniv.nl/ (zugegriffen am 29.10.2010).
with the titles in italics and so on.
What I can' t fix, however, is "website". After I put additional infos like "In:", "Bd." and "Nr." into the "article" section
(in the code, scroll half way through down to <!--CONTAINER (Sammelband oder Zeitschrift ...), then <!-- 2. Container-Beitragende --> and <...Artikel>)
these infos showed up in the website-citation! (see above: "In: Bd. Nr. ," before the URL!)
I believe the style is designed to handle websites like magazine articles (sort of as a fall back, because nowhere it defines "website" in the code). Now that used to work with the old style, because it was quite minimalistic an did not provide additional info like "In:", "Bd." (=volume) and "Nr." for articles.
I' ve been trying to find a work-around for 2 days now and I have to say that my understanding of programming CSL just isn't good enough to solve this problem on my own.
I tried putting in <if type="webpage"> in the "container"-section mentioned above, but that results in an error, now matter where I put it. Also changing the "<!-- URL (und Datum des letzten Zugriffs) -->"section (almost down at the end) didn’t work. My guess is that "website" need to be defined - but if so, then where and how?
I would appreciate any help!
Nick
I 'm using Zotero 2.0.9 with OO 3.2. I've been trying to change the "tah Geistes- u. Kulturwissenschaften" style (http://www.zotero.org/styles/tah-gkw/dev) to the demands of my faculty by "reverse engineering" and copying from other styles. So far I have succeeded in changing the style from this
Strasburger, Hermann: “Der Einzelne und die Gemeinschaft im Denken der Griechen,” Historische Zeitschrift 177/2 (1954), S. 227-248.
“Indo-European Etymological Dictionary (IEED),” http://ieed.leidenuniv.nl/ (zugegriffen am 29.10.2010).
to this:
STRASBURGER, H.: Der Einzelne und die Gemeinschaft im Denken der Griechen. In: Historische Zeitschrift. Bd. 177 (1954), Nr. 2, S. 227-248.
Indo-European Etymological Dictionary (IEED). In: Bd. Nr. , http://ieed.leidenuniv.nl/ (zugegriffen am 29.10.2010).
with the titles in italics and so on.
What I can' t fix, however, is "website". After I put additional infos like "In:", "Bd." and "Nr." into the "article" section
(in the code, scroll half way through down to <!--CONTAINER (Sammelband oder Zeitschrift ...), then <!-- 2. Container-Beitragende --> and <...Artikel>)
these infos showed up in the website-citation! (see above: "In: Bd. Nr. ," before the URL!)
I believe the style is designed to handle websites like magazine articles (sort of as a fall back, because nowhere it defines "website" in the code). Now that used to work with the old style, because it was quite minimalistic an did not provide additional info like "In:", "Bd." (=volume) and "Nr." for articles.
I' ve been trying to find a work-around for 2 days now and I have to say that my understanding of programming CSL just isn't good enough to solve this problem on my own.
I tried putting in <if type="webpage"> in the "container"-section mentioned above, but that results in an error, now matter where I put it. Also changing the "<!-- URL (und Datum des letzten Zugriffs) -->"section (almost down at the end) didn’t work. My guess is that "website" need to be defined - but if so, then where and how?
I would appreciate any help!
Nick
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
http://gsl-nagoya-u.net/http/pub/csl-fields/
thank you so much for your reply. I actually did put "webpage" into the code (because I copied it out of the DIN 1505 style), but I made a mistake writing the request.
Thanks! I corrected it.
As I said, I believe "webpage" still needs to be defined in tah-style. I tried putting in
<if type="webpage">
<text prefix=" " macro="title" suffix=". " font-style="italic"/>
</if>
in the "container" section of the code, but either zotero didn't load the style (saying it was faulty) or it crashed when I tried to cite webpages.
I also tried to change the <macro name="access"> section, but that didn't work either.
The problem is that I don't know the syntax of CSL, the overall logical structure. All I can do is look at styles that are similar to what I want mine to look like, and copy from them. That worked up to a point with harvard7de and DIN 1505, because I could compare them to the tah-gkw style I'm trying to change.
Unfortunately "webpage" is not defined in tah-style (so I can't compare and the structure seems to differ totally from the other styles), but it looks like it handles webpages as "container"-> "article". Now I also could be totally wrong about this, because trying to to define "webpage" in the "container" section always failed.
I've run out of ideas. I need someone to actually look at the code and tell me what to do where...
Thanks again!
thank you very much for your reply. Here`s the link:
https://gist.github.com/662559
<text prefix=" " macro="title" suffix=". " font-style="italic"/>
</if>
this is the right approach, but there is not macro named title - there is just title-long and title-short.
So this should work
<if type="webpage">
<text prefix=" " macro="title-long" suffix=". " font-style="italic"/>
</if>
if I see this correctly, you'll have to make a distinction for wepages both in the macro "issued" (where Bd. and Nr. come from) and in the macro "container" (where the "In" comes from). Since webpage defaults to article when it's not defined, you need to make sure that the if type="webpage" precedes the if type="article" - hope that helps!
thanks a lot, it actually worked! I put
<if type="webpage">
</if>
into the container and the issue section. With
<text prefix=" " macro="title-long" suffix=". " font-style="italic"/>
the name of the web page was repeatedly printed.
One more question, please.
At the moment, the "issued" -> "article" section prints out
Pleket, H. W.: Zur Soziologie des Antiken Sports. In: Mededelingen van het Nederlands Instituut te Rome. Bd. (1974), Nr. 36, S. 57-87.
It prints "Bd." and "Nr." in any case, regardless if the numeric info is provided or not (in this case, "Bd." has none, "Nr." does).
How can I make it that the terms "volume" (Bd.) and "issue" (Nr.) are only printed if the (numeric) information is actually provided? I tried various things.
F. ex. I tried to put each of the two relevant lines into an <if> </if> loop, but that resulted in the numeric information not being printed, even if it was provided.
Like this with "volume":
<if>
<text term="volume" form="short" suffix=". "/>
<number variable="volume"/>
</if>
Once again thanks for your help.
<group>
<text term="volume" form="short" suffix=". "/>
<number variable="volume"/>
</group>
if not, you have the right idea, but each if needs an actual condition, i.e.
<if variable="volume">
<text term="volume" form="short" suffix=". "/>
<number variable="volume"/>
</if>
where if variable="volume" tests if there is something in the field for volume.
Also note that everytime you use <if> <else-if> etc. it needs to be surrounded by
<choose> </choose> (look at the rest of the style for clarification.
edit: For what it's worth - this will fail if there is a non-numerical entry in the volume field (e.g. a Roman numeral like VIII)
thank you so much! the first one <group> was a hit!
I can see that you're helping people out a lot here, keep up the good work!
Bests,
Nick