Skip to content

Instantly share code, notes, and snippets.

@rsinger
Created September 22, 2010 03:09
Show Gist options
  • Save rsinger/591065 to your computer and use it in GitHub Desktop.
Save rsinger/591065 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'marc'
tags = ['001','005', '100','110','111','240','243','245'] + ('600'..'699').to_a + ['700', '710', '711']
MARC::Reader.new('blacklight-data/lc_records.utf8.mrc').each do | rec |
fields = rec.fields(tags)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment