This file contains hidden or 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 csv | |
import re | |
with open('Main_Libraries__Branches__and_Bookmobiles__FY_2014_Public_Libraries_Survey__Outlet_Data_.csv', encoding="utf-8") as data: | |
reader = csv.reader(data) | |
report_rows = [] | |
# change header | |
header = [ |
This file contains hidden or 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
#!/bin/usr/python3 | |
import glob | |
import shutil | |
# get list of all MRC files in Downloads folder | |
files = glob.glob("c:\\users\\jthobbs\\downloads\\*.mrc") | |
# generate combined MARC file | |
with open('c:\\users\\jthobbs\\Desktop\\KANOPY_RECORDS.mrc','wb') as wfd: | |
for f in files: |
This file contains hidden or 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
#!/usr/bin/python3 | |
import os | |
import logging | |
from pymarc import MARCReader | |
from tqdm import tqdm | |
# clean-up | |
try: | |
os.system('cls') | |
os.system('del errors.log') |
This file contains hidden or 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
#!/usr/bin/python3 | |
import os | |
import logging | |
from pymarc import MARCReader | |
from tqdm import tqdm | |
def main(): | |
# clean-up | |
try: | |
os.system('cls') |
This file contains hidden or 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
#!/usr/bin/python3 | |
import os | |
import logging | |
from pymarc import MARCReader | |
from tqdm import tqdm | |
def main(): | |
# clean-up | |
try: | |
os.system('cls') |
This file contains hidden or 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
(function() { | |
"use strict"; | |
var app = angular.module('viewCustom', ['angularLoad', 'hathiTrustAvailability']); | |
app.component('prmSearchResultAvailabilityLineAfter', { | |
template: '<hathi-trust-availability ignore-copyright="true"></hathi-trust-availability>' | |
}); | |
}) |
This file contains hidden or 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
FileDelete *.mrc | |
FileDelete *.history | |
isbn_list = %1% | |
; Username and pw below are dummy values | |
run C:\Program Files\YAZ\bin\yaz-client.exe -u 555-555-555/pw zcat.oclc.org:210/OLUCWorldCat | |
sleep 1000 |
This file contains hidden or 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
use strict; | |
use Library::CallNumber::LC; | |
sub parseCall | |
{ | |
my $call_number = shift; | |
#/ Normalize | |
my @call = Library::CallNumber::LC->new($call_number)->components(); #Splits call# into an array |
This file contains hidden or 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
#!/usr/bin/python3 | |
import csv | |
import os | |
### Notes ### | |
### -- can only count if an item record is present in system | |
# Clean-up | |
#os.system('del output.txt') |
This file contains hidden or 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
;======== | |
; SELECT | |
;======== | |
SetWorkingDir %A_ScriptDir% | |
FileDelete results.txt | |
top = CALL#`tLC CLASS`tTITLE`tAUTHOR`tPUBLISHER`tPUBLICATION YEAR`tSUBJECT`tBARCODE`tISBN | |
FileAppend, %top%`n, results.txt | |
OlderNewer