given a Wikipedia page, find related items in the DPLA
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
iife-footer.txt
iife-header.txt
iife.js
iife.min.js
makefile
readme.mdown
userscript-header.txt
userscript.js
wikipedpla.js
wikipedpla.min.js

readme.mdown

Note: I've stopped working on this project in favor of the WikipeDPLA Chrome extension.


WikipeDPLA

A script meant to be run on Wikipedia it pages, it attempts to find relevant items in the Digital Public Library of America. The page Wikipedia:TWL/FindDPLA describes how to install it as a User script. Here's what it looks like in action:

WikipeDPLA in action

Where it looks

To find relevant items, the script tries a few different methods of scraping search terms from the page & stops after the first query that returns results from DPLA. The search terms are (in order):

  • the article's title
  • if there's any '"Foo" redirects here' notices up top, it'll try 'foo'
  • any categories, starting with the first category listed

It only runs in the main (articles) namespace.

#LibHack

Written at #libhack at ALA MidWinter on Friday, January 24th, 2014 with help from Jake Orlowitz. I wrote a blog post about the experience on the ACRL Tech Connect blog.