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
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.")
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