--- ECHO_content/vlp_xmlhelpers.py 2006/11/21 16:49:58 1.7 +++ ECHO_content/vlp_xmlhelpers.py 2006/11/21 17:47:10 1.8 @@ -226,12 +226,12 @@ def related2html(self,str): ref = link.getAttribute("ref") pn = link.getAttribute("page") - searchStr=str("select fullreference, online from vl_literature where reference =\'%s\' and authorized = 1"%(ref)) + searchStr="select fullreference, online from vl_literature where reference =\'%s\' and authorized = 1"%(ref) res = self.search(var=searchStr) if res: - if res.online == 1: # achtung: syntax?! = feld 'online' vom abfrageergebnis - # item online verfuegbar + if res[0]['online'] == 1: + # item online verfuegbar link.setAttribute("title", "click to view") if pn: link.setAttribute("href",self.REQUEST['SERVER_URL']+"/references?id="+ref+"&page="+pn) @@ -239,7 +239,7 @@ def related2html(self,str): link.setAttribute("href",self.REQUEST['SERVER_URL']+"/references?id="+ref) else: # item nur als bibliographische angabe vorhanden - link.setAttribute("alt", res.fullreference) # achtung: syntax? + link.setAttribute("alt", res[0]['fullreference']) link.setAttribute("title", "click to expand") link.setAttribute("onclick", "return toggle(this);") link.setAttribute("class", "x_offline")