Why text variable="publisher" in journal use Exra field if there is Publisher: in Extra

edited November 20, 2021
Hi all,
I found a strange issue, <text variable="publisher"/> in item type journal use Extra field if there is Publisher: in Extra .
For example, the Extra field is: Publisher: 222Korean Society of Food and Cookery Science999 , 222Korean Society of Food and Cookery Science999 would display in Word if <text variable="publisher"/> was used in the csl.

a simplified csl file: https://pastebin.com/qBHKJE0f
an example item of zotero RFD format: https://pastebin.com/TLZybd0L

Any ideas to avoid this?
  • You can specify additional variables for citations in Extra like this:
    Publisher: Wiley
    Translator: Last || First

    See http://Zotero.org/support/kb/item_types_and_fields

    You should write your citation style to only show the publisher for certain item types if you don’t want it to show for others.
  • thanks@bwiernik.
    No, I do not want to show the Extra contents.

    The note should be used for the Journal in CSL if we want to show the Extra, I did not use it, why it still show the Extra contents, moreover, if I changed the text 'Publisher' in Extra to any other text, it would not show the publisher 222Korean Society of Food and Cookery Science999
  • Not sure if you still have a question, but as bwiernik says, what you are seeing is expected and intentional
  • When you place a CSL variable in Extra like this, it is moved to that variable for citation purposes and removed from the “note” variable. This is the method for adding variables to item types that lack them.

    You either need to delete the publisher information from the item or edit your citation style to only show the publisher variable for non-journal items
  • edited November 22, 2021
    thanks@bwiernik.

    No. When I use this style https://github.com/citation-style-language/styles/blob/master/chinese-gb7714-2005-numeric.csl
    for this item https://www.koreascience.or.kr/article/JAKO201227942002591.page
    duplicate container title (publisher) Korean Journal of Food and Cookery Science occurs, display as:
    [1] SON J-Y, KANG K-O. Effect of an oil-water fryer on quality properties of deep frying oil used for chicken[J]. Korean Journal of Food and Cookery Science, Korean Society of Food and Cookery Science, 2012, 28(4): 443–450.

    The csl should be edited or the Extra field should be emptied as the Extra shows as Publisher: Korean Society of Food and Cookery Science

    An issue and pull request have been submitted.
  • The issue is that style is poorly written. The publisher macro should only be displayed for some item types. The style was written assuming that journal articles would never have publisher data, which is a bad assumption.
  • Thanks.

    This code <text variable="publisher"/>
    is changed to
    <choose>
    <if type="book graphic legal_case legislation" match="any">
    <text variable="publisher"/>
    </if>
    </choose>

    in the PR https://github.com/citation-style-language/styles/pull/5737
Sign In or Register to comment.