Event-date problem (trying to solve an exhibition catalogue problem)

edited April 10, 2020
I am correcting an existing style notably in order to give the possibility to quote exhibition catalogues (a kind of a sea-serpent starting there and continuing here).
To by pass the item type, I used the magical citeable fields not included in Zotero and their citation from extra field:
In a book item, I created a genre field (Genre : exhibition catalogue). At this point, everything worked.
When I created an event-place field (Event Place: Gorgeous Museum), the publisher-place was called twice (I will try an other way).

When I created an event-date field (Event Date: 2007-09-22/2008-01-28), all went wrong.
This field is said on @aurimas 'Github page that it has no corresponding field, but it might appear as an extra field.
I called it in CSL as date variable="event-date".
Result: "TypeError: this.dateparts is undefined" (even not using a date range)
Where is the problem?
  • Can you provide a link to 1) the style you're using and 2) a Zotero RDF export of the item?
  • Both are available here. In the CSL file, I removed event-place (it cannot be called for a book, because it [strangely?] doubles publisher-place
  • No, you are mistaken about publisher-place and event-place. See my response to your other thread here https://forums.zotero.org/discussion/comment/353301/#Comment_353301
  • I have tried a new version, with a macro, called for books and chapters:
    <macro name="genre">
    <group delimiter=", ">
    <text variable="genre"/>
    <text variable="event-place"/>
    <date variable="event-date"/>
    </group>
    </macro>

    Using a book chapter transformed following @bwiernik 's post and, in a second time, removing from it "Event Date: 2007-09-22", I obtain the same result:
    "Erreur lors de la création des citations et de la bibliographie :
    TypeError: this.dateparts is undefined"
    Hence, I guess that calling date variable="event-date" creates the problem.
    Updated CSL is here, items are there
  • Your style doesn't validate:
    Element “date” from namespace “http://purl.org/net/xbiblio/csl” is missing a required instance of child element “date-part”.
    Sounds like that would do it.
  • And it worked...
    Thanks

This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.

Sign In or Register to comment.