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

More user friendly connection to Zotero #9

Closed
takluyver opened this issue Nov 15, 2014 · 6 comments
Closed

More user friendly connection to Zotero #9

takluyver opened this issue Nov 15, 2014 · 6 comments

Comments

@takluyver
Copy link
Owner

At present, the user has to go to a Zotero settings page, and copy down a user ID that is different from their username. This is less than ideal. I'd like to be able to just use their username, but I've yet to find an API to get the userID from the username. Question on Zotero forums.

It's probably possible to do this using oauth (docs), but that's complicated. If we want access to private Zotero libraries, however, we will need to jump through that hoop. (Are user libraries public by default? I can't remember)

@takluyver
Copy link
Owner Author

It looks like this will need to be oauth - there doesn't appear to be a username -> userID API.

@takluyver
Copy link
Owner Author

It could be done by scraping a page like https://www.zotero.org/takowl/items

@bramtayl
Copy link

Stupid question how to you change your userID if you entered your actual name and not the number on the settings page?

@takluyver
Copy link
Owner Author

There's no way to change it in the UI, but you can set it manually by running code like this:

from IPython.html.services.config.manager import ConfigManager
cm = ConfigManager()
cm.update('cite2c', {'zotero':{'user_id': '1234'}})

Or if you set it to None instead of an ID, it will prompt you again next time you go to use cite2c.

@bramtayl
Copy link

Great! It works perfectly. However, all my bibliographic information disappears when I try to export as html or pdf.

@takluyver
Copy link
Owner Author

Yeah, they will for now. HTML is issue #10 - that should be relatively easy to do using citeproc-7py. Latex is issue #7, and it will be a bit trickier, because we'll need to convert the CSL citation data to Bibtex.

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

No branches or pull requests

2 participants