multiple entry in extra field

edited 8 days ago
Hi
I use extra field for custom data and change csl to show this data. this data is some kind of secondary contributor . for example i use this in extra for one person:
corrector:قاسمی|حسین
my question is how to define multiple person in this field?
test following but it's not working:
corrector:قاسمی|حسین & حسنی|علی

corrector:قاسمی|حسین
corrector:حسنی|علی

there is a program based on zotero 5 which has "corrector" field and i test my csl file with that program i it work fine.
  • edited 8 days ago
    You cannot just invent variables. You have to use one that exists: https://docs.citationstyles.org/en/stable/specification.html#name-variables
  • edited 8 days ago
    Your comment is correct if we want to use standard csl styles. Because adding custom field don't change anything. but as i said, i edit a csl standard file and use my custom varieble in it and test it. It worked fine.so it is possible to invent variables. You just need to create custom style to show that variable in citation or bibliography.
  • For standard creator variables (e.g. when adding editors to a webpage or so), using multiple lines with repeated labels, i.e. something like

    Editor: Editor1, Firstname
    Editor: Editor2, Firstname

    works. But only actual CSL names variables are recognized as "names" type variables. Other variables (including any custom variables) are treated as regular variables, which can only have one value, so multiple values indeed won't work. Since this type of custom variables isn't officially supported but basically works by accident, I highly doubt this will change.
  • Ok. I gess it is possible to define custom variable as name type variable in zotero source code. Right?
    Can you give me a hint on related file on zotero source?
  • What I don't get is the why?
    There is some 15 or so name variables. Many of them are barely used. Just use one not at all used in your style and use that.
  • Your right. It's simple and do the job.
Sign In or Register to comment.