Created
September 28, 2010 16:29
-
-
Save lawlesst/601312 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from pymarc import Record, MARCReader | |
reader = MARCReader(file(sys.argv[1])) | |
print "ALT LOOKUP, Provider, URL" | |
for rec in reader: | |
print "%s,LLMC Digital,%s" % (rec['001'].data, rec['856']['u']) #this assumes the url is in subfield u. Change if not. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment