From 5122d9083def16cd0f32c3c5e578139608e93123 Mon Sep 17 00:00:00 2001 From: gfawcett Date: Wed, 5 Jan 2011 04:06:21 +0000 Subject: [PATCH] a few more uwindsorisms git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@1156 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- conifer/integration/uwindsor.py | 6 +++--- conifer/libsystems/evergreen/item_status.py | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/conifer/integration/uwindsor.py b/conifer/integration/uwindsor.py index 31f51c8..9a87e62 100644 --- a/conifer/integration/uwindsor.py +++ b/conifer/integration/uwindsor.py @@ -154,8 +154,8 @@ def bib_id_to_url(bib_id): Given a bib ID, return either a URL for examining the bib record, or None. """ if bib_id: - return ('http://windsor.concat.ca/opac/en-US' - '/skin/default/xml/rdetail.xml?r=%s&l=1&d=0' % bib_id) + return ('http://windsor.concat.ca/opac/en-CA' + '/skin/uwin/xml/rdetail.xml?r=%s&l=1&d=0' % bib_id) if USE_Z3950: # only if we are using Z39.50 for catalogue search. Results including @@ -309,6 +309,6 @@ def download_declaration(): return ("I warrant that I am a student of the University of Windsor " "enrolled in a course of instruction. By pressing the " "'Request' button below, I am requesting a digital copy of a " - "reserve reading research, private study, review or criticism " + "reserve reading for research, private study, review or criticism " "and that I will not use the copy for any other purpose, nor " "will I transmit the copy to any third party.") diff --git a/conifer/libsystems/evergreen/item_status.py b/conifer/libsystems/evergreen/item_status.py index 9ddd4ef..62b245c 100644 --- a/conifer/libsystems/evergreen/item_status.py +++ b/conifer/libsystems/evergreen/item_status.py @@ -31,9 +31,9 @@ def url_to_marcxml(url): return xml if __name__ == '__main__': - support.initialize('http://www.concat.ca/') - #print url_to_marcxml('http://www.concat.ca/opac/en-US/skin/default/xml/rdetail.xml?r=1082665&t=dylan%20thomas%20ralph&tp=keyword&d=0&hc=14&rt=keyword') - from xml.etree import ElementTree as ET - for t in ET.fromstring(bib_id_to_marcxml('2081089')).getiterator(): - print t.text + support.initialize('http://windsor.concat.ca/') + print url_to_marcxml('http://windsor.concat.ca/opac/en-CA/skin/uwin/xml/rdetail.xml?r=1971331&t=evergreen&tp=keyword&l=106&d=1&hc=210&rt=keyword') + # from xml.etree import ElementTree as ET + # for t in ET.fromstring(bib_id_to_marcxml('2081089')).getiterator(): + # print t.text -- 2.11.0