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
<data> | |
{ | |
for $Record in /ead | |
where $Record/archdesc/dsc//c[@level='series']/did/unittitle[contains(., '19')] | |
let $id := $Record/archdesc/did/unitid[1]/text() | |
let $title := $Record/archdesc/did/unittitle | |
let $repo := $Record/eadheader/eadid/@mainagencycode |
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
xquery version "3.0"; | |
<results> | |
{ | |
for $ead in /ead/archdesc/dsc//accessrestrict[contains(., '2021')] | |
let $restrict := $ead/p | |
let $restrictTitle := $ead/../did/unittitle | |
let $restrictDate := $ead/../did/unitdate[1] |
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 re | |
#prompt for date | |
date = input("Date ") | |
#read file of strings into memory | |
f = open('input.txt', 'r') | |
x = f.readlines() | |
f.close() |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ead="urn:isbn:1-931666-22-9" | |
exclude-result-prefixes="xs" | |
version="2.0"> | |
<xsl:output omit-xml-declaration="yes"/> | |
<xsl:template match="/"> | |
<xsl:for-each select="//ead:c[@level='file']"> | |
<xsl:value-of select="@id"/> | |
<xsl:text>|</xsl:text> |
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 json | |
import requests | |
import secretsTest | |
import time | |
import os | |
startTime = time.time() | |
#call secrets for authentication | |
baseURL = secretsTest.baseURL |
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 requests, csv, json, urllib, time | |
baseURL = 'https://clio.columbia.edu/catalog/' | |
endURL = '.marcxml' | |
with open('inputlist.csv', 'r') as csvfile: | |
reader = csv.reader(csvfile, delimiter='|', quotechar='"') | |
for row in reader: | |
bib = str(row[0]) | |
url = baseURL+bib+endURL | |
response = requests.get(url) |
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/bash | |
FILES=/opt/wpdConvert/data/* | |
for f in $FILES | |
do | |
echo "Processing $f file..." | |
# take action on each file. $f store current file name | |
./soffice.bin --headless --convert-to txt:Text *.txt $f | |
done |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- IN PROGRESS, 2019-07-29 --> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ead="urn:isbn:1-931666-22-9" exclude-result-prefixes="xs" version="2.0"> | |
<xsl:output omit-xml-declaration="yes"/> | |
<xsl:strip-space elements="*"/> | |
<xsl:template match="ead:ead"> | |
<xsl:apply-templates select="//ead:c[@level = 'file']"/> | |
</xsl:template> |
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
<?xml version="1.0"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | |
<xsl:output method="text"/> | |
<xsl:variable name="newline"> | |
<xsl:text> | |
</xsl:text> | |
</xsl:variable> | |
<xsl:key name="elements" match="*" use="name()"/> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:aml="http://schemas.microsoft.com/aml/2001/core" xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" | |
xmlns:wsp="http://schemas.microsoft.com/office/word/2003/wordml/sp2" xmlns:sl="http://schemas.microsoft.com/schemaLibrary/2003/core" exclude-result-prefixes="#all" version="2.0"> | |
<xsl:output omit-xml-declaration="yes"/> | |
<xsl:template match="/"> | |
<!--NB: |