SoCal Code4Lib Meetup
Decemember 15, 2015
R. S. Doiel, rsdoiel@caltech.edu / rsdoiel.github.io
Application Development for Caltech Library
I am relatively new to Caltech Library and modern library systems (since April 2015). But I have been building things for the web for about 20 years. I am still learning (and that is what makes it fun).
The starting point: Catalog Searchbox
Our Librarians spotted a solution
MIT Library has a nice implementation close to what we need
But not exactly suited to the current evolution of library.caltech.edu
Our legacy website implementation dated from the IE 6 era. I realize it was unreasonable to use normal progressive enhancement (e.g. test for features, polyfils, etc). I did recognize website was designed when graded browser support was the best practice.
Inspired by progressive enhancement
This lead to a ultra simple graded browser system use case.
document.querySelector()
and document.querySelectorAll()
Grade A was testable with the help of others (e.g. people who had iPhones)
Implement from lowest grade browser and progresses to highest
“Fail early when the costs are low”, Silicon Valley ethos
I went through five prototypes before focusing on implementation.
Thank you Betsy for coming to the rescue!!!
Presentation:
caltechlibrary.github.io/unified-search-box/presentation.html
R. S. Doiel, rsdoiel@caltech.edu
rsdoiel.github.io