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
""" | |
Attempts to parse raw OpenURLs to the BibJSON convention. | |
""" | |
import urllib | |
import urlparse | |
import sys | |
import json | |
from pprint import pprint |
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
""" | |
Simple setup for tastypie with Solr as the backend. This is based off Daniel Lindsley's Pycon 2012 presentation. Minor modifications. | |
http://speakerdeck.com/u/daniellindsley/p/restful-apis-with-tastypie | |
http://django-tastypie.readthedocs.org/ | |
""" | |
import pysolr |
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
Name|LCNAF | |
Aaron, Hank|n80126307 | |
Abel, I. W.|n85185062 | |
Abernathy, Ralph|n87870916 | |
Abourezk, James| | |
Abrams, Robert| | |
Abt, John|n92122744 | |
Abzug, Bella|n83231578 | |
Acosta, Jerry| | |
Acosta, Roberto|n84134984 |
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
<Module><ModulePrefs title="VuFindGadget" | |
description="<p>This application will search the Brown University collections and display relevant results alongside search | |
results from SciVerse Hub and ScienceDirect. Clicking on a result will take the user to the Brown University library | |
website, where more results and services will be available.</p> | |
<br/> | |
<p>The application was built from the <a href="http://www.applications.sciverse.com/action/appDetail/293706">VuFind Template app</a> for SciVerse developed at Villanova University. If your institution uses VuFind to power its library catalog a version of this application is easy to create for your institution. Learn more about the VuFind Template app to see if such an app on SciVerse can help your institution. Please contact <a href="http://www.applications.sciverse.com/action/contactus">Elsevier</a> to learn more.</p> | |
"> | |
<Require feature="sciverse"/> | |
<Require feature="opensocial-0.9"/> |
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
""" | |
Really messy attempt at creating OpenURL context | |
objects for use in link resolver middleware. | |
Primary use will be to map resolved citiation metadata | |
from the 360 Link knowledge base and create open url | |
context objects that can be passed on to other services | |
- like Illiad - or used in other software. | |
""" |
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
Index: web/conf/Innovative.ini | |
=================================================================== | |
--- web/conf/Innovative.ini (revision 4582) | |
+++ web/conf/Innovative.ini (working copy) | |
@@ -1,6 +1,14 @@ | |
[Catalog] | |
url = http://catalog.library.myuniversity.edu | |
+; Do not change unless you have changed your indexing routine to | |
+; strip the leading '.' and trailing check |
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
""" | |
Harvest MARC records via OAI-PMH. | |
""" | |
#Mostly from - http://code.google.com/p/oldmapsonline/source/browse/trunk/oai-pmh/oaipmh-client-pyoai-pymarc.py | |
# MarcXML reader - parsing done by pymarc | |
#Handle utf-8 strings | |
import codecs, sys |
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
from eulxml import xmlmap | |
from eulxml.xmlmap import load_xmlobject_from_file | |
MODS_NAMESPACE = 'http://www.loc.gov/mods/v3' | |
METS_NAMESPACE = 'http://www.loc.gov/METS/' | |
SF = xmlmap.StringField | |
class Common(xmlmap.XmlObject): | |
"MODS class with namespace declaration common to all MODS XmlObjects." |
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 sys | |
import csv | |
csv_file = csv.DictReader(open(sys.argv[1])) | |
for row in csv_file: | |
print row['bluebook'], row['journal'] |
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 xlrd, sys | |
from pymarc import Field, Reader, Record, MARCWriter | |
#script timer | |
import time | |
start_time = time.time() | |
"""Script that reads data from an Excel sheet and converts the records to MARC format. | |
Sample incoming data is in Chinese, UTF 8. Would work for other languages as well. |