Mercurial > hg > documentViewer
comparison documentViewer.py @ 330:c81509acead9
*** empty log message ***
author | abukhman |
---|---|
date | Mon, 18 Oct 2010 11:32:22 +0200 |
parents | 1c4e63d22283 |
children | 6cde7f02786e |
comparison
equal
deleted
inserted
replaced
329:b4a5ceb7905d | 330:c81509acead9 |
---|---|
566 | 566 |
567 if dom is None: | 567 if dom is None: |
568 for x in range(cut): | 568 for x in range(cut): |
569 path=getParentDir(path) | 569 path=getParentDir(path) |
570 dom = self.getDomFromIndexMeta(path) | 570 dom = self.getDomFromIndexMeta(path) |
571 | 571 |
572 #docinfo['indexMetaPath']=self.getIndexMetaPath(path); | |
573 | |
574 #result= dom.xpath("//result/resultPage") | |
575 #docinfo['numPages']=int(getTextFromNode(result[0])) | |
576 | |
577 #result =dom.xpath("//name") | |
578 docinfo['name']=getTextFromNode(dom.xpath("/resource/name")[0]) | 572 docinfo['name']=getTextFromNode(dom.xpath("/resource/name")[0]) |
579 logging.debug("documentViewer docinfo[name] %s"%docinfo['name']) | 573 logging.debug("documentViewer docinfo[name] %s"%docinfo['name']) |
580 | |
581 #logging.debug("documentViewer (getbibinfofromindexmeta) using mapping for %s"%bibtype) | |
582 return docinfo | 574 return docinfo |
583 | 575 |
584 def getDocinfoFromTextTool(self, url, dom=None, docinfo=None): | 576 def getDocinfoFromTextTool(self, url, dom=None, docinfo=None): |
585 """parse texttool tag in index meta""" | 577 """parse texttool tag in index meta""" |
586 logging.debug("documentViewer (getdocinfofromtexttool) url: %s" % (url)) | 578 logging.debug("documentViewer (getdocinfofromtexttool) url: %s" % (url)) |