--- ECHO_content/ECHO_collection.py 2004/10/28 13:38:40 1.187 +++ ECHO_content/ECHO_collection.py 2004/11/10 16:32:11 1.188 @@ -299,6 +299,7 @@ class BrowserCheck: """check the browsers request to find out the browser type""" def __init__(self, zope): + """initialisiere""" self.ua = zope.REQUEST.get_header("HTTP_USER_AGENT") self.isN4 = (string.find(self.ua, 'Mozilla/4.') > -1) and (string.find(self.ua, 'MSIE') < 0) self.isIE = string.find(self.ua, 'MSIE') > -1 @@ -311,8 +312,46 @@ class BrowserCheck: self.isIEWin = self.isIE and self.isWin self.isIEMac = self.isIE and self.isMac +class Hello(Folder): + """helloo""" + def __init__(self): + self.test=test + + meta_type="ECHO_copyright" + + + + def __init__(self,id,title,copyrights): + """init""" + self.title=title + self.id=id + self.copyrights=copyrights[0:] + + def getCopyrights(self): + """return coyprights""" + return self.copyrights + + manage_options = Folder.manage_options+( + {'label':'Main Config','action':'ECHO_copyright_configForm'}, + ) + def ECHO_copyright_configForm(self): + """change form""" + pt=PageTemplateFile('Products/ECHO_content/zpt/ChangeECHO_copyright').__of__(self) + pt.content_type="text/html" + return pt() + + def ECHO_copyright_config(self,title,RESPONSE=None): + """change""" + self.title=title + self.copyrights=[] + self.copyrights=getCopyrightsFromForm(self,self.REQUEST.form)[0:] + + if RESPONSE is not None: + RESPONSE.redirect('manage_main') + + def writeMetadata(url,metadict,project=None,startpage=None,xslt=None,thumbtemplate=None,topbar=None,digiLibTemplate=None,xmlfrag=None,digiliburlprefix=None): """Einlesen der Metadaten und und erstellen des geaenderten XML file""" @@ -3618,9 +3657,9 @@ class ECHO_root(Folder,Persistent,Implic if self.checkRef(ref): if pn: - link.setAttribute("href",self.aq_parent.absolute_url()+"/vlp_coll?id="+ref+"&p="+pn) + link.setAttribute("href",self.aq_parent.absolute_url()+"/references?id="+ref+"&p="+pn) else: - link.setAttribute("href",self.aq_parent.absolute_url()+"/vlp_coll?id="+ref) + link.setAttribute("href",self.aq_parent.absolute_url()+"/references?id="+ref) newxml=dom.toxml('utf-8') @@ -4261,3 +4300,4 @@ def manage_addECHO_institution(self, id, except: url=REQUEST['URL1'] REQUEST.RESPONSE.redirect('%s/manage_main' % url) return id +