From: gfawcett Date: Wed, 5 Jan 2011 04:06:24 +0000 (+0000) Subject: bug in bookbag url importer X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e9078fb252fe4d6baee911640767e1b0a1b3348b;p=Syrup.git bug in bookbag url importer git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@1157 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- diff --git a/conifer/libsystems/evergreen/item_status.py b/conifer/libsystems/evergreen/item_status.py index 62b245c..c184022 100644 --- a/conifer/libsystems/evergreen/item_status.py +++ b/conifer/libsystems/evergreen/item_status.py @@ -20,7 +20,7 @@ def url_to_marcxml(url): if 'feed/bookbag' in url: #eg http://concat.ca/opac/extras/feed/bookbag/marcxml-full/60 marc_url = re.sub(r'(.*/bookbag/)(.*?)(/.*)', r'\1marcxml-full\3', url) - xml = urllib2.urlopen(marc_url).read() + xml = unicode(urllib2.urlopen(marc_url).read(), 'utf-8') else: m = re.match(r'.*r=(\d+).*', url) item_id = m and m.group(1) or None