Delete "ebenda" in custom style

edited May 26, 2020
Hey everybody,

i custom edited the style Hochschule der Medien to my preferences. It's almost perfect but I want to delete "ebenda". I already searched the forum but I seem to not be capable of changing the style. my last result was that the ebenda was gone but also no author was shown. Would really appreciate some help.

As far as I understood this seems to be the section where I need to change sth. but what exactly?


<choose>
<if position="ibid">
<text term="ibid"/>
<text macro="point-locators-subsequent" prefix=", "/>
</if>
<else>
<text macro="author-short"/>
<text macro="year-date" prefix=" (" suffix=")"/>
<text macro="point-locators-subsequent" prefix=", "/>
</else>
</choose>
</layout>
</citation>
<bibliography hanging-indent="true">
<sort>
<key macro="author"/>
<key macro="date"/>
</sort>
<layout>
<group font-weight="bold">
<text macro="author"/>
<text macro="year-date" prefix=" (" suffix="):"/>
</group>
<text variable="title" prefix=" "/>
<choose>
<if type="webpage">
<text macro="date" prefix=". "/>
</if>
<else-if type="speech" match="any">
<text variable="publisher-place" prefix=", "/>
<text macro="date" prefix=", "/>
<text macro="accessed" prefix=", "/>
</else-if>
<else-if type="article-newspaper article-magazine article-journal" match="any">
<text value=", "/>
<text variable="container-title" font-style="italic"/>
<text variable="collection-title" prefix=", Reihe "/>
<text variable="volume" prefix=", "/>
<text variable="issue" prefix="(" suffix=")"/>

<text macro="pages" suffix="."/>
</else-if>
<else-if type="chapter" match="any">
<text macro="editor" prefix=". In: " suffix=": "/>
<text variable="container-title" font-style="italic"/>
<text value=". "/>
<text variable="publisher-place" suffix=": "/>
<text variable="publisher"/>
<text macro="pages"/>
</else-if>
<else>
<text value=". "/>
<text variable="publisher-place" suffix=": "/>
<text variable="publisher"/>
</else>
</choose>
<choose>
<if variable="URL">
<text value="URL:&#160;" prefix=", "/>
<text variable="URL"/>
<text macro="accessed" prefix=" [" suffix="]"/>
</if>
</choose>
<text variable="note" prefix=", "/>
</layout>
</bibliography>
</style>

  • edited May 26, 2020
    That is the section, I identified. Just don't get what I need to change. Answers in German are welcome as well :)
  • I am really confused because the section does not get displayed if I copy and paste it into my comment. Is there a reason for that?
  • You'll need to put your code into code brackets. <code>asdf</code>

    Also, you can edit your posts by hovering over them and clicking on the wheel on the right corner.

    If it is a long stretch of code please upload it to pastebin/hastebin and share the link though. Way easier for all involved.
  • @damnation thank you for your quick response and the tip with the code brackets. I hope it's not too long. I didn't get what pastebin is, so I posted it here.

    Btw, is it not possible to delete comments?
  • edited May 26, 2020
    The “ebedna” is the “ibid” term referred to in the style. In the “citation” section of the style, replace all of the contents of the “layout” section with just the part shown under “else” in the code snippet you posted.
  • @bwiernik thanks for your reply.

    I tried to incorporate what you were suggesting:

    I first tried this

    <choose>
    <if position="ibid">
    <text macro="author-short"/>
    <text macro="year-date" prefix=" (" suffix=")"/>
    <text macro="point-locators-subsequent" prefix=", "/>
    </if>
    <else>
    <text macro="author-short"/>
    <text macro="year-date" prefix=" (" suffix=")"/>
    <text macro="point-locators-subsequent" prefix=", "/>
    </else>
    </choose>


    and then this
    <choose>
    <text macro="author-short"/>
    <text macro="year-date" prefix=" (" suffix=")"/>
    <text macro="point-locators-subsequent" prefix=", "/>
    </if>
    <else>
    <text macro="author-short"/>
    <text macro="year-date" prefix=" (" suffix=")"/>
    <text macro="point-locators-subsequent" prefix=", "/>
    </else>
    </choose>


    Is that what you meant? I don#t know if it's working because I can't use the style.

    I saved them as rtf and then changed the name, so that they are csl, but when I try to add them to Zotero it tells me it‘s not possible. Any tipps?

  • No, delete the entire <choose> section and everything inside. Replace it with:


    <text macro="author-short"/>
    <text macro="year-date" prefix=" (" suffix=")"/>
    <text macro="point-locators-subsequent" prefix=", "/>
  • @bwiernik. Thank you sooo much for your patience. It worked!
Sign In or Register to comment.