--- ECHO_content/vlp_xmlhelpers.py 2007/07/24 09:11:46 1.11 +++ ECHO_content/vlp_xmlhelpers.py 2007/07/26 08:29:06 1.12 @@ -187,7 +187,7 @@ def checkRef(self,ref): return res def link2html(self,str): - """link2html liks in html wandeln""" + """link2html links in html wandeln""" if str: str=re.sub("\&","&",str) @@ -221,7 +221,7 @@ def related2html(self,str): if str: str=re.sub("\&","&",str) - dom=xml.dom.minidom.parseString(""+str+"") + dom=xml.dom.minidom.parseString(""+utf8ify(str)+"") links=dom.getElementsByTagName("link") for link in links: @@ -249,7 +249,7 @@ def related2html(self,str): else: # item nur als bibliographische angabe vorhanden - link.setAttribute("alt", res[0]['fullreference'].decode('utf-8')) + link.setAttribute("alt", unicodify(res[0]['fullreference'])) link.setAttribute("title", "click to expand") link.setAttribute("onclick", "return toggle(this);") link.setAttribute("class", "x_offline") @@ -262,9 +262,9 @@ def related2html(self,str): retStr=regexpTXT.search(newxml) retStr = retStr.group(1) - + #logging.debug("related2html out=%s"%repr(retStr)) return retStr.decode('utf-8') # we return unicode - + return u""