Skip to content

Instantly share code, notes, and snippets.

View kristenmills's full-sized avatar

Kristen Mills kristenmills

View GitHub Profile
@kristenmills
kristenmills / isbn2lcc.rb
Last active December 22, 2015 20:09 — forked from kurtraschke/parsecallno.py
Some scripts to work with library of congress call numbers. Eventually to be used in some fashion in Alexandria.
#Connects to the library of congress database.
#Given a ISBN, it fetches the LCC.
require 'zoom'
require 'marc'
require 'stringio'
ZOOM::Connection.open('z3950.loc.gov', 7090) do |conn|
conn.database_name = 'VOYAGER'
conn.preferred_record_syntax = 'USMARC'