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

Add a Zotero item with a QID #236

Open
Futur3r opened this issue Jan 21, 2023 · 2 comments
Open

Add a Zotero item with a QID #236

Futur3r opened this issue Jan 21, 2023 · 2 comments

Comments

@Futur3r
Copy link
Contributor

Futur3r commented Jan 21, 2023

Zotero allows to fetch an item by ISBN and DOI why not by QID ?

Describe the solution you'd like
The ability to fetch an item by it's QID, like ISBN or DOI via the Add By Identifier function of Zotero.

I opened a feature request on the Zotero Forum, but meanwhile could we implement this via Cita ?

@Futur3r Futur3r changed the title Implement QID in the Add By Identifier function Add a Zotero item with a QID Jan 21, 2023
@Dominic-DallOsto
Copy link
Collaborator

Dominic-DallOsto commented Jan 22, 2023

Is this all we need?

zotero-cita/src/wikidata.js

Lines 885 to 890 in b3db0a8

/**
* Returns Zotero items using metadata retrieved from Wikidata for the QIDs provided
* @param {Array} qids - Array of one or more QIDs to fetch metadata for
* @returns {Promise} - Map of QIDs and their corresponding Zotero item
*/
static async getItems(qids) {

To get this to work with Zotero, I guess we'd have to patch the code that parses identifiers to also look for QIDs, then the lookup code, and also the message to state that QIDs are also accepted

@Futur3r
Copy link
Contributor Author

Futur3r commented Jan 22, 2023

Yes, it's a bit of work.
Can't the user just give the QID and then the Wikidata.js translator do the rest ?

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

2 participants