ISBN is not included in IEEE.CSL

Hello everyone,
I need to add an ISBN to the Books section so it will appear in the bibliography. Note that the term ISBN is not completely present in the IEEE-CSL file.
I added this line (text macro="ISBN"/) in the section related to books as shown here
(else-if type="bill book graphic legal_case legislation report song" match="any")
(group delimiter=", " suffix=". ")
(text macro="title"/)
(text macro="locators"/)
(/group)
(text macro="collection"/)
(group delimiter=", " suffix=".")
(text macro="publisher"/)
(text macro="issued"/)
(text macro="page"/)
(text macro="ISBN"/)
(/group)
But without result.
I hope you can help me with this issue.
  • edited October 26, 2023
    Unless you've actually made a new macro called "isbn" with content, at the moment you're calling a macro that doesn't exist.

    So, replace your line <text macro="ISBN"/> with <text variable="ISBN"/>.

    Also, make sure to check your code with this tool: https://validator.citationstyles.org/
  • Thanks "damnation" for your help, I did like you mentioned, and the number of ISBN is appearing But the term "ISBN" not appear with its number. Do you have any idea about it?
  • <text variable="ISBN" prefix="ISBN: "/>

    adjust the prefix as you want the label to look.
  • Amazing it's working thanks , I want to ask you how to insert the (text macro="ISBN"/) in the CSL file to appear ISBN instead of using (text variable="ISBN" prefix="ISBN: "/)?
  • There's really no reason to since it's just one line, but you'd have to define the macro and then call it so

    <macro name="ISBN">
    <text variable="ISBN" prefix="ISBN: "/>
    </macro>


    and then use
    <text macro="ISBN"/>
  • Yes of course I prefer one line, I ask you "adamsmith" for this question just to learn how to use (macro) to appear ISBN. I really appreciate your help and thanks a lot (damnation and adamsmith).
Sign In or Register to comment.