Jump to content

Wikipedia:OCLC/API

From Wikipedia, the free encyclopedia
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Desired behavior

  • User installs javascript-based userscript in their common.js page on Wikipedia
    • Opting in with full disclosure to limited sharing of ip information with OCLC and the University Institution
    • Some related resources:
  • Article page loads on Wikipedia
  • Userscript parses the page for reference tags
    • Start with citation templates or html
      • Use COinS span tags (class attribute Z3988) as the starting point to exercise path to and from the OCLC E-Switch API?
    • Using Parsoid or ProveIt
      • Can Parsoid provide JSONP?
      • Do we need a Parsoid instance running on labs?
  • Defined citation template fields are mapped to an open url request passed to the OCLC 'E-switch' API
  • The OCLC API will pair that request with the editor's IP address (university affiliated) and return with links to any available online free full text resources
    • Cache the result locally for better performance
  • The article page will be layered with a link to that full text available source next to that reference in the article
  • If the editor clicks on the link, they will go directly to the full text source through their university, with no additional login required

See also

Documentation
Related
Project