version 1.108, 2004/06/08 15:25:11
|
version 1.110, 2004/06/08 17:04:39
|
Line 2140 class ECHO_root(Folder,Persistent,Implic
|
Line 2140 class ECHO_root(Folder,Persistent,Implic
|
return dom.toxml('utf-8') |
return dom.toxml('utf-8') |
return "" |
return "" |
|
|
|
def xml2html(self,str): |
|
"""link2html fuer VLP muss hier noch raus""" |
|
if str: |
|
|
|
str=re.sub("\&","&",str) |
|
dom=xml.dom.minidom.parseString(str) |
|
links=dom.getElementsByTagName("link") |
|
|
|
|
|
for link in links: |
|
link.tagName="a" |
|
ref=link.getAttribute("ref") |
|
if self.checkRef(ref): |
|
link.setAttribute("href",self.aq_parent.absolute_url()+"/vlp_coll?id="+ref) |
|
|
|
return dom.toxml('utf-8') |
|
return "" |
|
|
def checkRef(self,ref): |
def checkRef(self,ref): |
dbs={'vl_literature':'AND CD LIKE \'%lise%\'','vl_technology':'','vl_people':''} |
dbs={'vl_literature':'AND CD LIKE \'%lise%\'','vl_technology':'','vl_people':''} |
Line 2277 class ECHO_root(Folder,Persistent,Implic
|
Line 2294 class ECHO_root(Folder,Persistent,Implic
|
self.REQUEST.RESPONSE.write(ret) |
self.REQUEST.RESPONSE.write(ret) |
|
|
|
|
def getMetaDataXML(self,viewerType=None,filter=None): |
def getMetaDatasXML(self,viewerType=None,filter=None): |
"""gebe all ressourcen aus""" |
"""gebe all ressourcen aus""" |
ret="""<?xml version="1.0" ?> |
ret="""<?xml version="1.0" ?> |
<index>""" |
<index>""" |