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
xquery version "3.0"; | |
<results> | |
{ | |
for $findingaid in /records/html | |
let $title:= $findingaid/meta[@name="dc.title"]/@content | |
let $creator := $findingaid/meta[@name="dc.author"]/@content | |
let $subject := $findingaid/meta[@name="dc.subject"]/@content | |
let $dates:= $findingaid//h2[@class="tp_titleproper"] |
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
xquery version "3.0"; | |
<results> | |
{ | |
for $ead in /ead | |
let $titleproper:= $ead/eadheader/filedesc/titlestmt/titleproper[1]/text() | |
let $creator := $ead/archdesc/did/unittitle | |
let $dates:= $ead/archdesc/did/unitdate | |
let $publisher:= $ead/eadheader/filedesc/publicationstmt/publisher |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- This stylesheet will add daos to a finding aid, using a list of PIDs. --> | |
<!-- One needs to select one of the two templates below, depending on whether the daos are to be added to all c0x level=file elements or just to a certain subset --> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | |
<xsl:output method="xml" encoding="UTF-8"/> | |
<xsl:strip-space elements="*"/> | |
<!-- Call PID file --> |
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
Sub Digitool_KDP_based_ingest_LBI_AR5() | |
' | |
' This macro will take a basic Karens Directory Printer output and prepare a template for Digitool CSV ingest. 100214 KS with updates by LL for LBI Creekside collections with five digits after the AR 2014-11-21 | |
' | |
' | |
' RenameSheet Macro | |
' | |
' |
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
xquery version "3.0"; | |
declare namespace xb="http://com/exlibris/digitool/repository/api/xmlbeans"; | |
<data> | |
{ | |
for $Record in /xb:digital_entity_call | |
let $PID := $Record/xb:digital_entity/pid | |
let $arrecord := $Record/xb:digital_entity/mds/md[type[contains (., 'rights_md')]] | |
return |
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
xquery version "3.0"; | |
<results> | |
{ | |
for $PIDlist in doc('OH_PIDS_XML.xml')/data/pid/text() | |
let $OAIRecord := repository/record[header/identifier/substring-after(., "oai:digital.cjh.org:") = $PIDlist] | |
return |
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
#!/bin/bash | |
# This script will pull the oai feed, assign it a name based on the time and date, pull out requested data, and | |
mkdir $(date +%Y%m%d) | |
cd $(date +%Y%m%d) | |
echo "Files found in" $(date +%Y%m%d) | |
#run pythonaoi to get feed | |
python /home/kevin/test/pyoaiharvest.py -l http://digital.cjh.org/OAI-PUB -o LBI_periodicals$(date +%Y%m%d).xml -m marc21 -s LBI_periodicals | |
# sed to remove marc namespace prefix, consider using the sed 'or' to clean up other stuff in one shot |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | |
<!--List of PIDS --> | |
<xsl:template match="/"> | |
<xsl:for-each select="results/record/header/identifier"> | |
<xsl:copy-of select="./text()"/>, | |
</xsl:for-each> | |
</xsl:template> |
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
xquery version "3.0"; | |
<results> | |
{ | |
for $PIDlist in doc('OH_PIDS_XML.xml')/data/pid/text() | |
let $OAIRecord := repository/record[header/identifier/substring-after(., "oai:digital.cjh.org:") = $PIDlist] | |
return |
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
<?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" | |
exclude-result-prefixes="xs" | |
version="2.0"> | |
<xsl:template match="/"> | |
<xsl:for-each select="document('PIDsforEADs.xml')/record/pid"> | |
<record> | |
<xsl:variable name="PID" select="."></xsl:variable> |
OlderNewer