Collection Analysis
for $5 a Month. CHEAP
https://rayvoelker.github.io/oh-iug-2021/collection_analysis_for_cheap
Ray Voelker
ray.voelker@gmail.com | ray.voelker@cincinnatilibrary.org
What is Datasette?
datasette publish that can package and deploy to services like Heroku or Google Cloud)https://docs.datasette.io/en/stable/deploying.html#deployment-fundamentals
Scripts For Extracting Data From ILS (Sierra)
https://github.com/cincinnatilibrary/collection-analysis
Named parameters: Datasette provides a nice interface when a named parameter is placed within a SQL query
select
bib.*
from
bib
where
indexed_subjects like '%'
|| :subject
|| '%'
# Datasette URI construction
scheme = "https://"
host = "ilsweb.cincinnatilibrary.org"
# path contains the path of the Datasette instance,
# and the name of the database
path = "/collection-analysis/current_collection"
canned_query_path = "/item_lookup_by_barcode"
response_format = '' # '' or '.csv' or '.json'
query_parameter = "?barcode="
query_parameter_value = "A000036107985"
full_request_uri = scheme + host \
+ path + canned_query_path + response_format \
+ query_parameter + query_parameter_value
Thanks, and please, let me know if you come up with any cool queries, ❤️ Datasette as much as I do, or want to use this at your library!
Ray Voelker
ray.voelker@gmail.com
ray.voelker@cincinnatilibrary.org