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

[Enhancement] parse zotero's {date} to extract {year} #27

Open
kerim opened this issue Jul 15, 2022 · 6 comments
Open

[Enhancement] parse zotero's {date} to extract {year} #27

kerim opened this issue Jul 15, 2022 · 6 comments

Comments

@kerim
Copy link

kerim commented Jul 15, 2022

Testing Zotero, everything worked pretty well, except I had to change {year} to {date}. This makes sense, since that is what the file has (the Paperpile Bibtex has {year}), but it would be nice if one could just use {year} when the metadata in Zotero contains a full date, the same way you extracted {author lastname}.

For instance, with {date} I get

Friedman (2015-09-15) Exceptional States: Chinese Immigrants and Taiwanese Sovereignty

instead of

Friedman (2015) Exceptional States: Chinese Immigrants and Taiwanese Sovereignty

Which is what I'd want.

@jacobtfisher
Copy link

jacobtfisher commented Jul 26, 2022

+1 for this. I also had this issue. I figured out that you can add year manually to the bibtex file using custom post-scripting in BetterBibTex, but that's a lot of fussing around that many folks probably won't want to mess with.

@carljoseph
Copy link

{year} already seems to work for me in my template. Give it a try?

@kerim
Copy link
Author

kerim commented Jan 15, 2023

So I finally fixed this problem by switching from "Better BibLaTex" export to "Better BibTex" export. The latter includes "year" by default. Not sure if this will create any other problems, but at least I can have year without messing around, which is really important for my workflow.

@kerim
Copy link
Author

kerim commented Mar 12, 2023

Any progress on extracting {year} from BibLaTex files that only have {date}?

@tartakis
Copy link

So I finally fixed this problem by switching from "Better BibLaTex" export to "Better BibTex" export. The latter includes "year" by default. Not sure if this will create any other problems, but at least I can have year without messing around, which is really important for my workflow.

Although the BibTex file has a field named 'year', citation manager still doesn't read it (field 'journal' as well)

@dazu89
Copy link

dazu89 commented Jul 4, 2024

@jacobtfisher Would you mind sharing your post-processing script? I would like to fix this (and others as well) but I do not have the time to dig into Zotero's properties at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants