Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Citation Key blocks following date field in extra #2658

Closed
denismaier opened this issue Sep 20, 2023 · 7 comments
Closed

Citation Key blocks following date field in extra #2658

denismaier opened this issue Sep 20, 2023 · 7 comments
Labels

Comments

@denismaier
Copy link

denismaier commented Sep 20, 2023

Debug log ID

HQ8N6ANL-refs-euc/6.7.120-6

What happened?

Depending on where Citation Key is in Extra, a directly following date field (maybe only event-date) is not available to citeproc-js. With the three items from the debug log and the minimal style below, I'm getting the following results:

  1. Citation Key directly above Event date -> "match" -> Event Date not used
  2. Citation Key last in Extra -> "10. Mai 2001match" -> as expected
  3. Citation Key first in Extra -> "10. Mai 2001match" -> as expected

I'm not sure whether this has something to do with Zotero BBT. (I actually doubt it, but I thought I'd better ask since this it involves the Citation Key field.)

<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="never">
  <info>
    <title>event-date-test</title>
    <id>http://www.zotero.org/styles/event-date-test</id>
    <link rel="self" href="http://www.zotero.org/styles/event-date-test"/>
    <updated>2023-09-20T12:11:03+00:00</updated>
  </info>
  <citation>
    <layout>
      <date form="text" variable="event-date"/>
    </layout>
  </citation>
  <bibliography>
    <layout>
      <date form="text" variable="event-date"/>
      <choose>
        <if type="performance" match="any">
          <text value="match"/>
        </if>
      </choose>
    </layout>
  </bibliography>
</style>
@denismaier
Copy link
Author

Addenum: After further testing, it seems that Citation Key blocks later fields if it appears anywhere after the first line.

@retorquere
Copy link
Owner

Sorry for the delay. Looking into it now.

@retorquere
Copy link
Owner

The citation key isn't strictly mine BTW, the Zotero bib(la)tex exporters use it too.

How are you testing this? I have tried exporting to CSL-JSON (which uses the same transformation) and there the extra field is just dumped into the note field.

@denismaier
Copy link
Author

denismaier commented Sep 22, 2023

I suspect it may be a citeproc-js issue. As you say, the note field is exported properly. Pandoc also processes the exported items without issues, the visual editor as well.
But the event-date doesn't show up in Word.

@retorquere
Copy link
Owner

Easy to test whether it's BBT -- disable BBT, restart Zotero, and test again. If that still fails, it's unequivocally Zotero, not BBT. If it is BBT, I can look into it further. I'm less familiar with the citeproc part of Zotero.

@denismaier
Copy link
Author

Ok – it's not BBT. Same thing happens without BBT.

@denismaier
Copy link
Author

Closing here.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants