--- ECHO_content/ECHO_resource.py 2012/01/04 11:21:10 1.8 +++ ECHO_content/ECHO_resource.py 2012/01/04 13:23:00 1.9 @@ -629,6 +629,7 @@ class ECHO_resource(CatalogAware,Folder, dom=xml.dom.minidom.parse(fh) texttools=dom.getElementsByTagName('texttool') + text=texttools[0].getElementsByTagName('text-url-path') #pfad auf text im neuen system logging.debug(text); if (text is not None) and len(text)>0: @@ -645,6 +646,22 @@ class ECHO_resource(CatalogAware,Folder, text=texttools[0].getElementsByTagName('text') texturl=getText(text[0].childNodes) + #TODO: hack has to be romoved, if index.meta for annalen are changed!! (DW) + if (texturl is not None) and (texturl.startswith("/mpiwg/online/permanent/einstein/annalen")): + texturl=texturl.replace("/mpiwg/online/permanent/einstein/annalen/","/diverse/de/") + splitted=texturl.split("/fulltext") + texturl=splitted[0]+".xml" + if hasattr(self,"getFullTextBasisUrl"): + textBasisUrl=self.getFullTextBasisUrl() + else: #default + textBasisUrl="http://mpdl-text.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s" + #Beispiel http://mpdl-text.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=/archimedes/la/achil_propo_087_la_1545.xml + logging.debug(textBasisUrl); + texturl=textBasisUrl%texturl + + + + #logger("ECHO Fulltext",logging.INFO,"found %s"%texturl) fh.close() #logger("ECHO Fulltext",logging.INFO,"closed fh") @@ -662,7 +679,9 @@ class ECHO_resource(CatalogAware,Folder, else: return texturl except: - + logging.debug(sys.exc_info()[0]) + logging.debug(sys.exc_info()[1]) + logging.debug(sys.exc_info()[2]) if not noredirect: self.REQUEST.RESPONSE.setHeader('Content-Type','text/xml') self.REQUEST.RESPONSE.write("no fulltext available")