Mercurial > hg > ZopePubmanConnector
changeset 17:48c4a6f3b135
minor bug, handliung withdrawn entrie
author | dwinter |
---|---|
date | Wed, 26 Jun 2013 15:10:35 +0200 |
parents | 3e154b154b6f |
children | da890cb0fd04 |
files | zopePubmanConnector.py |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/zopePubmanConnector.py Fri Jun 14 12:27:01 2013 +0200 +++ b/zopePubmanConnector.py Wed Jun 26 15:10:35 2013 +0200 @@ -286,7 +286,7 @@ escidocid=escidocid.lstrip().strip() - h = httplib2.Http(cacheFolder,timout=TIMEOUT) + 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" @@ -300,9 +300,14 @@ citationxpath=".//{http://purl.org/dc/terms/}bibliographicCitation" itempath = ".//escidocItem:item" + item = root.find(itempath,ns) #get item + if item is None: + logging.error("pubman connector: cannot find %s"%escidocid) + return escidocid,"","","","" + citation=item.find(citationxpath,ns) @@ -552,4 +557,4 @@ if RESPONSE is not None: RESPONSE.redirect('manage_main') - \ No newline at end of file +