Mercurial > hg > ZopePubmanConnector
changeset 23:d24a8673d68e
trying to fix bug in error message.
author | casties |
---|---|
date | Thu, 24 Oct 2013 18:22:54 +0200 |
parents | 2abc89d58140 |
children | 345dd913f520 |
files | zopePubmanConnector.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/zopePubmanConnector.py Tue Oct 01 18:13:12 2013 +0200 +++ b/zopePubmanConnector.py Thu Oct 24 18:22:54 2013 +0200 @@ -295,7 +295,7 @@ h = httplib2.Http(cacheFolder,timeout=TIMEOUT) cn = self.connectorString+"cqlQuery=escidoc.objid=%s&" cn +="exportFormat=APA&outputFormat=snippet&language=all&sortKeys=escidoc.any-dates&sortOrder=descending" - + content = None try: resp, content = h.request(cn%escidocid) ET.register_namespace("dcterms", "http://purl.org/dc/terms/") @@ -303,7 +303,7 @@ root = ET.fromstring(content) except: logging.error("zopePubmanConnector: cannot parse: %s"%content) - return "",'' + return "","" citationxpath=".//{http://purl.org/dc/terms/}bibliographicCitation"