--- documentViewer/documentViewer.py 2010/10/08 14:02:24 1.113 +++ documentViewer/documentViewer.py 2010/10/11 12:46:52 1.116 @@ -551,8 +551,8 @@ class documentViewer(Folder): #docinfo['numPages']=int(getTextFromNode(result[0])) #result =dom.xpath("//name") - docinfo['name']=getTextFromNode(dom.xpath("//name")[0]) - logging.debug("documentViewer docinfo[name] %s"%docinfo[name]) + docinfo['name']=getTextFromNode(dom.xpath("/resource/name")[0]) + logging.debug("documentViewer docinfo[name] %s"%docinfo['name']) #logging.debug("documentViewer (getbibinfofromindexmeta) using mapping for %s"%bibtype) return docinfo @@ -643,7 +643,7 @@ class documentViewer(Folder): presentationUrls = dom.xpath("//texttool/presentation") docinfo = self.getBibinfoFromIndexMeta(url, docinfo=docinfo, dom=dom) # get info von bib tag - #docinfo = self.getNameFromIndexMeta(url, docinfo=docinfo, dom=dom) + docinfo = self.getNameFromIndexMeta(url, docinfo=docinfo, dom=dom) if presentationUrls and (len(presentationUrls) > 0): # ueberschreibe diese durch presentation informationen # presentation url ergiebt sich ersetzen von index.meta in der url der fuer die Metadaten