Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 1.58 KB

README.md

File metadata and controls

27 lines (17 loc) · 1.58 KB

Hold Me, I'm a book

I've been an active patron of the San Francisco Public Library (SFPL) since 1989. The SFPL online catalog is vital to me and other rogue researchers. Using it, though, can be a bit of a pain.

Take this for example.

To determine whether this book is available now, you must click on multiple "Is this available?" buttons that take you to another page.

I wanted to speed up the process between querying the catalog and requesting a hold. With Hold Me, a user can search for a book, keyword, or author and view the availability of titles in the search results--all on one page.

A query returns the results from the catalog: the titles and their respective hold information (e.g., the number of copies the library owns and the number of holds on the copies). These results include ebooks from the ebook platforms Axis360 and OverDrive. Because OverDrive and Axis360 makes their APIs available only to institutional partners, I retrieve the hold information for an ebook by scraping OverDrive or Axis360, depending on where the book is.

Installation

git clone https://github.com/kariannemah/hold-me.git to copy this repository to your local machine.

cd hold-me to move into the cloned repo. Then, bundle install to install required gems.

Start the application on your local server with ruby app.rb.

Visit http://localhost:4567 to view the application.