Juris-M / jm-styles

Juris-M styles: extended CSL styles with jurisdiction support
67 stars 24 forks source link

Legislation references generate 'CSL STYLE ERROR: reference with no printed form' #28

Open ronank opened 1 month ago

ronank commented 1 month ago

With Juris-M version 6.0.22m4 and the JM-OSCOLA style file from 4/9/2021, references to legislation (statute, regulation, or bill) are rendered as 'CSL STYLE ERROR: reference with no printed form'.

Looking at the style file, I think the issue is that it refers to 'legislation' in the macros but this is not actually a reference type in Zotero/Juris-M. I have been able to fix the problem locally by adding 'statute regulation' anywhere the macros match to type 'legislation'.

I don't know enough about CSL or the particular logic of this file to be sure that this is the problem or a valid fix. It seems to me that the file should not mention 'legislation' as a type at all but I could be wrong.

bwiernik commented 1 month ago

Can you share a screenshot of an item that errors with the unmodified style?

ronank commented 1 month ago

I will endeavour to do so. I can reproduce the issue on two machines but not on two others so the issue may be an incompatibility with some residue of Juris-M 5 or a similar problem. I will need to investigate further and confirm that this is not some local glitch before generating more work for others.