We'll get this back from the WorldCat API and it's a useful number to return; we may need an additional way to map it to templatedata though, unless you know off-hand of the right thing to use? We'll need to add it to templates for it to be used, of course, but it's a helpful item to provide.
Description
Details
Project | Branch | Lines +/- | Subject | |
---|---|---|---|---|
mediawiki/services/citoid | master | +15 -1 | Add OCLC to response for WorldCat requests |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Mvolz | T145462 Provide auto-citations based on ISBNs in Wikimedia production | |||
Resolved | Mvolz | T145467 Where returning data from WorldCat, include the OCLC# |
Event Timeline
Is this a worldcat requirement?
The OCLC # is already in the URL.
It is indeed already a valid param on en wiki though so that's trivia to add to template data at least on en wiki: https://en.wikipedia.org/wiki/Template:Cite_book
It's a strongly requested feature, and I think it's worth adding. Having it in the citoid JSON response and encouraging wikis to use it in their templates is the limit of what I was thinking.
Change 313799 had a related patch set uploaded (by Mvolz):
Add OCLC to response for WorldCat requests
Does this also need fixes in the Citoid extension, or just in the templates and their TemplateData? https://en.wikipedia.org/wiki/Template:Cite_book already has the oclc parameter, but its templatedata would need "oclc": "oclc", in the citoid map, I guess?