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

BibTeX citation key as Notion page title #5

Closed
dvanoni opened this issue Oct 16, 2021 · 6 comments · Fixed by #397
Closed

BibTeX citation key as Notion page title #5

dvanoni opened this issue Oct 16, 2021 · 6 comments · Fixed by #397
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@dvanoni
Copy link
Owner

dvanoni commented Oct 16, 2021

A BibTeX citation key as the name is a good idea! If that's straightforward to add, it would be a nice to have the option. Plus, citation keys are unique, helping in the case where you have two papers by the same author in the same year. That being said, the current APA style does look good for inline citations in Notion.

Screenshot 2021-10-07 at 09 48 33

Originally posted by @alexlyttle in #1 (comment)

@dvanoni dvanoni added the enhancement New feature or request label Oct 16, 2021
@hengfei-wang
Copy link

Thank you for your impressive work. It means a lot to me.

Please use citation keys as the name. Usually, I find a paper using the tile instead of the author's name. And citation keys usually include some pieces of the paper title which is quite useful for finding a paper page in Notion. Hope to see this feature in the next version.

@dvanoni
Copy link
Owner Author

dvanoni commented Dec 12, 2022

Helpful information from @YP-Li shared in #101:

The Citation Key in Zotero is not native, the most popular way to generate it is based on better-bibtex (another plugin for Zotero).

In better-bibtex, users can customize the rules for Citation Key generation. The generated Citation Key may change for updates of the generation rules or updates of the bibliographic information, unless it has been pinned. Therefore, in some other note-taking software that integrates Citation Key, such as logseq, it is required that the Citation Key is already pinned before generating the notes page.

@dvanoni dvanoni changed the title Configurable Citation Style BibTeX citation key as Notion page title Dec 12, 2022
@dvanoni
Copy link
Owner Author

dvanoni commented Dec 16, 2023

@retorquere, I'm hoping to get some input from you as a fellow Zotero plugin developer! I have some questions about the correct way to integrate with BBT.

  • To get the citation key for an item, is it as simple as calling item.getField('citationKey'), or is there a different approach to use?

  • Do you have a recommendation for how to best determine if BBT is installed? I'm thinking something like this?

    const addon = await AddonManager.getAddonByID('[email protected]');
    return addon && addon.isActive;
    

Thanks!

@retorquere
Copy link

To get the citation key for an item, is it as simple as calling item.getField('citationKey'), or is there a different approach to use?

This is indeed the correct way, and it will simply roll over to the native citation key field when Zotero adds their own support for it.

Do you have a recommendation for how to best determine if BBT is installed? I'm thinking something like this?

That will do it; not that for Zotero 7, BBT can be installed/uninstalled while Zotero keeps running, so it's not a one-time check you can do. If you need a synchronous way to test for presence, you can test for Zotero.BetterBibTeX, but on Zotero 6, that has an edge case whene BBT is uninstalled, but Zotero has not been restarted yet.

@dvanoni
Copy link
Owner Author

dvanoni commented Dec 16, 2023

Thanks for the prompt and helpful feedback, @retorquere!

@github-project-automation github-project-automation bot moved this from In Progress to Done in Notero Dec 16, 2023
@dvanoni
Copy link
Owner Author

dvanoni commented Dec 16, 2023

This feature has (finally) been released in v0.5.1! 🎉

@dvanoni dvanoni modified the milestones: Citation style, Title format Dec 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants