Skip to content

Instantly share code, notes, and snippets.

View EthanDF's full-sized avatar

Ethan Fenichel EthanDF

  • Florida Atlantic University
  • Boca Raton, FL
View GitHub Profile
@EthanDF
EthanDF / replace856.py
Created June 3, 2015 20:31
replaces whatever is in the 856 tags in the MARC record with the value provided in the CSV file after matching the 001 with the first column.
import csv
from pymarc import *
marcFile = 'C:\\Users\\Fenichele\\Desktop\\fasdocl.mrc'
resultsMarcFile = 'C:\\Users\\Fenichele\\Desktop\\x_fasdocl.mrc'
urlFile = 'C:\\Users\\Fenichele\\Desktop\\em.csv'
def readCSV():
urlList = []
@EthanDF
EthanDF / quotedNotes.py
Created April 18, 2017 19:07
How to create the comparison file for the quoted notes... just a place to share the script
import csv
import codecs
def readFile():
print('reading file...')
fileName = 'sus_dups_quotes_by-oclc.csv'
checkList = []
with codecs.open(fileName, 'r', encoding='utf-8') as c:
reader = csv.reader(c)