Adapted Citation Style cannot be validated in CSL Validator
Dear Zotero-community,
working as a student assistant at a German institute I adjusted the SAGE Harvard citation style to fit our OECD-based citation guidelines.
We already use it at the institute, yet whenever the cls-files are being imported a notification pops up saying that the citation style might not work properly due to some imperfect coding.
I had the style checked in the CSL Style and Locale Validator and it displayed these two errors:
- Line 109: Element “group” from namespace “http://purl.org/net/xbiblio/csl” is missing a required instance of one or more of the following child elements: “choose”, “date”, “group”, “label”, “names”, “number”, “text”.
- Line 192: Element “date” from namespace “http://purl.org/net/xbiblio/csl” is missing one or more of the following attributes: “form”, “variable”.
Any ideas, how I could solve this (I could unfortunately not enter the whole code here, so in case you'd need the whole code just let me know;-))?
Kindest regards, sorry for the inconvenience and a big thank you in advance!!!
Constantin Grywatz
working as a student assistant at a German institute I adjusted the SAGE Harvard citation style to fit our OECD-based citation guidelines.
We already use it at the institute, yet whenever the cls-files are being imported a notification pops up saying that the citation style might not work properly due to some imperfect coding.
I had the style checked in the CSL Style and Locale Validator and it displayed these two errors:
- Line 109: Element “group” from namespace “http://purl.org/net/xbiblio/csl” is missing a required instance of one or more of the following child elements: “choose”, “date”, “group”, “label”, “names”, “number”, “text”.
- Line 192: Element “date” from namespace “http://purl.org/net/xbiblio/csl” is missing one or more of the following attributes: “form”, “variable”.
Any ideas, how I could solve this (I could unfortunately not enter the whole code here, so in case you'd need the whole code just let me know;-))?
Kindest regards, sorry for the inconvenience and a big thank you in advance!!!
Constantin Grywatz
thank you for your fast response and help.
Hope this works:
https://gist.github.com/anonymous/1fedb772e356440f89fbf6286a8f6bcc
I figured, that there might be something missing, but I just cannot find the missing variables . . . especially since everything works just fine except for this notice that keeps popping up.
Kind regards and thanks a lot,
Constantin
Line 192: "date" is not variable, you have to define which variable is used for output. See line 187, where is defined that the date variable is "issued". You can find a list of all available variables here: http://docs.citationstyles.org/en/stable/specification.html#appendix-iv-variables
perfect! It worked!
Thank you so much for your help! You made my day;-)!
Kindest regards and have a great weekend,
Constantin