retorquere / zotero-better-bibtex Public
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
Replace date with fields year and month for incomplete dates #1546
Comments
|
@njbart? I thought |
|
I couldn't find it in the documentation but I found out that by setting… …it makes BBT omit @online{Panther2005,
title = {Bayer {{Filter Goose}}},
author = {{Panther}},
year = {2005},
month = {02},
url = {https://upload.wikimedia.org/wikipedia/commons/1/1b/Bayer_filter_all.png},
file = {/Users/phi/Zotero/storage/ITJCBNKN/Panther - 2005 - Bayer Filter Goose.png},
keywords = {SPIHT}
}…which in turn makes Biber happy and gets rid of the warning. For me this is an acceptable work around for the time being and I guess I could write a javascript postscript that would do that but I'd rather not go down that rabbit hole for now. I still would much prefer if BBT was smart enough to do this on its own. |
|
It'd be very easy for me to do if it is actually the desired behavior; I don't know, but @jnbart usually does. |
|
In biblatex, |
|
tl;dr: The warnings went away mysteriously and I can no longer reproduce them either. I git stashed the changes to my .bib file that BBT did and then unstashed them which re-applied them again. @njbart That is very interesting, thanks for digging this up! Today I have had massive problems with biblatex where it would fail the compile but report no errors. After hours of scratching my head, going through the generated .bib and never finding any gross mistake and repeatedly cleaning all generated files and changing things here and there I eventually stashed all the changes to my .bib file that Zotero did and went back to a previous version and closed Zotero which was, until then, running in the background. What I did not expect was this: I then re-applied the changes in my stash and lo and behold it still compiled. I cleaned up all auxiliary files that were generated by the compilation and tried again and it still compiled. I have no idea why biblatex failed previously. Despite cleaning all generated files and even manually making sure everything but the .tex files and the .bib files was deleted it would still fail. I even restarted my entire machine to no avail. Aside from stashing and un-stashing the changes the only thing I did was to close Zotero. But if this even did anything I can not say. One more thing that is noteworthy: There was one bib entry where biblatex would complain that |
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Enhancement
Actual behavior
Currently BBT creates .bib entries like this:
which generates the following warning when used with Biber:
Proposed behavior
I propose that instead any incomplete
datefield is dropped, i.e., all date fields that are not YYYY-MM-DD and are thus considered invalid by Biber.Instead, the fields
yearandmonthcould be used to encode incomplete dates.Many publications do not provide a precise date with a day on which they were released but only a year and a month, sometimes just the year.
Right now, I have added
tex.monthandtex.yearmanually which results in this entry:As expected, this still results in this warning message:
And this quality complaint in the generated .bib:
which I assume can be worked around by manually keeping BBT from exporting the
datefield on a per reference basis. I'd rather want this to be done automatically, however.Report ID: 8DIR3AQ9-euc
Exporter used: Better BibLaTeX
The text was updated successfully, but these errors were encountered: