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