Skip to content

LibrariesHacked/publiclibrariesnews-widget

Repository files navigation

Public libraries news widget

This plugin was created as a project to embed a small map of local library news stories into public libraries news http://www.publiclibrariesnews.com.

Based on a tutorial on the library data blog.

Google script and table

The data is collected from the PLN RSS feed (http://www.publiclibrariesnews.com/feed), but for performance reasons the data is queried, geocoded and cached in a google fusion table. The processing is performed at timed intervals by a google script.

Supporting technologies

How to embed

The following code:

<script src="http://www.librarieshacked.org/publiclibrariesnews-widget.js"></script>

Note: to make use of the google fusion table API, a key is required. These can be generated at https://console.developers.google.com and allow for 25,000 requests per day.

Files

  • PublicLibrariesNewsDemo.htm - a demo page mockup of basic PLN layout, with map embedded.
  • publiclibrariesnews-widget.js - the script file referenced in the embed code.
  • GetPLNData.js - the google script currently being run at timed intervals to update the datasets.