version 1.111, 2010/10/08 13:34:50
|
version 1.112, 2010/10/08 13:49:44
|
Line 404 class documentViewer(Folder):
|
Line 404 class documentViewer(Folder):
|
logging.debug("(getDomFromIndexMeta): URLXAXA: %s"%regpath.group(2)) |
logging.debug("(getDomFromIndexMeta): URLXAXA: %s"%regpath.group(2)) |
return ("/mpiwg/online/"+regpath.group(1)+"/"+regpath.group(2)) |
return ("/mpiwg/online/"+regpath.group(1)+"/"+regpath.group(2)) |
|
|
def getIndexMetaName(self,url): |
|
"""gib nur den Pfad zurueck""" |
|
#regexp = re.compile(r".*(experimental|permanent)/(.*)") |
|
regpath = regexp.match(url) |
|
if (regpath==None): |
|
return "" |
|
logging.debug("(getIndexMetaName): XAXA: %s"%regpath.group(2)) |
|
return regpath |
|
|
|
|
|
def getIndexMetaUrl(self,url): |
def getIndexMetaUrl(self,url): |
Line 539 class documentViewer(Folder):
|
Line 531 class documentViewer(Folder):
|
docinfo['lang']=getTextFromNode(dom.xpath("//bib/lang")[0]) |
docinfo['lang']=getTextFromNode(dom.xpath("//bib/lang")[0]) |
except: |
except: |
docinfo['lang']='' |
docinfo['lang']='' |
|
try: |
|
docinfo['name']=getTextFromNode(dom.xpath("//%s"%bibmap['name'][0])[0]) |
|
except: pass |
|
|
return docinfo |
return docinfo |
|
|
Line 553 class documentViewer(Folder):
|
Line 548 class documentViewer(Folder):
|
path=getParentDir(path) |
path=getParentDir(path) |
dom = self.getDomFromIndexMeta(path) |
dom = self.getDomFromIndexMeta(path) |
|
|
docinfo['indexMetaPath']=self.getIndexMetaPath(path); |
#docinfo['indexMetaPath']=self.getIndexMetaPath(path); |
|
|
#result= dom.xpath("//result/resultPage") |
#result= dom.xpath("//result/resultPage") |
#docinfo['numPages']=int(getTextFromNode(result[0])) |
#docinfo['numPages']=int(getTextFromNode(result[0])) |
Line 687 class documentViewer(Folder):
|
Line 682 class documentViewer(Folder):
|
docinfo['year']=getTextFromNode(dom.xpath("//date")[0]) |
docinfo['year']=getTextFromNode(dom.xpath("//date")[0]) |
except: |
except: |
pass |
pass |
|
try: |
|
docinfo['name']=getTextFromNode(dom.xpath("//name")[0]) |
|
except: |
|
pass |
return docinfo |
return docinfo |
|
|
def getDocinfoFromImagePath(self,path,docinfo=None,cut=0): |
def getDocinfoFromImagePath(self,path,docinfo=None,cut=0): |