Help editing CSL Styles

I've been reading this Step-by-Step Guide:

188BET靠谱吗//www.brodersterzo.com/support/dev/citation_styles/style_editing_step-by-step

...and this user guide:

https://github.com/citation-style-language/csl-editor/wiki/User-guide-for-the-CSL-Editor

Working with bold, italics, commas and so on looks easy, but adding a new "field" (I don't know if this is the correct term) like ISBN, seems to be harder.

I'd like to create a new style that includes ISBN and name it "Chicago-Full-with-Isbn" or "APA-with-ISBN."

I'm already in the part where I loaded e.g."Chicago Manual of Style 17th edition (full note)" and I'm to edit and download my modified version (with a place to entry ISBN, when available).I can see the visual CSL Editor, a left column with a bunch of macros and ...to be frank I'm not sure where to start.

I guess I need to "add node" (+), but where?

Thanks in advance for any help!

  • Chicago is not the easiest to modify, I'm afraid.

    But you are correct, "add node" is the way to go.

    How would you like a book citation to look like.Then we can tell you which macro to edit.
  • Thank you very much, Damnation!

    Ideally, something like this (Chicago-full):

    Mahmoud Kayyal, Conflict, Hegemony and Ideology in the Mutual Translation of Modern Arabic and Hebrew Literatures (Brill, 2022), https://brill.com/view/title/59711.ISBN 978-90-04-51781-3.

    If that's too hard to modify, then APA-7:

    Kayyal, M.(2022).Conflict, Hegemony and Ideology in the Mutual Translation of Modern Arabic and Hebrew Literatures.Brill. https://brill.com/view/title/59711.ISBN 978-90-04-51781-3.

    The idea is just adding the ISBN info, when available, to the citation and the bibliography, keeping the rest of the style as is.
  • edited October 24, 2022
    This is actually not hard in the editor.
    For Chicago:
    - On the left, click on "Inline Citation", then fold out "Layout" and "Conditional".
    - Still on the left, select "Else" then press the + Icon for "Add Node"
    - Select "Text" from the pop up
    - In the right bottom panel that opens, select "variable" at the top, then "ISBN" from the dropdown.
    - scroll down a bit and put ".ISBN " into the prefix field.

    188BET靠谱吗Then save the style under a different name, accepting the default changes to ID/link the editor suggests and install in Zotero.

    Doing the same thing with code instead of the visual editor, you'd add

    betweenandfour lines above

    (this is for the citation.You'd have to do roughly the same with the bibliography)
  • First of all, in the VisualEditor you can hover over the various parts of a citation and it'll somewhat guide you to what macro they belong.

    Then, for your request:

    this is best handled in the "issue-note" macro.In there there is a conditional testing for various item types (e.g.article-journal), but a bit further down for items with publisher and publisher-place.Those are booklike items.

    Here you'll see dealth with what is currently "(Brill, 2022)" for you.
    We first add a new group and define a delimiter and put what was in there inside that group.
    Then we call a new variable, ISBN, and add the prefix "ISBN ".

    See this screenshot: https://ibb.co/5cC5TTd
  • my version is simpler :P
  • Haha.I was wondering if you were typing a solution while I was typing mine.;)
  • Thank you very much Damnation and AdamSmith!Working fine.

    In case I want to add also the ISSN, I should create a new "group"?
Sign Inor Registerto comment.