--- MPIWGWeb/MPIWGProjects.py 2008/08/22 06:09:28 1.47.2.87 +++ MPIWGWeb/MPIWGProjects.py 2008/08/22 15:16:09 1.47.2.88 @@ -7,6 +7,7 @@ $author dwinter - last change 26.06.2 from Products.PageTemplates.PageTemplateFile import PageTemplateFile from Products.PageTemplates.ZopePageTemplate import ZopePageTemplate from Products.ZCatalog.CatalogPathAwareness import CatalogAware +from Products.MPIWGBibliography.BibliographyManager import BibliographyManager from OFS.Image import Image from Globals import package_home import urllib @@ -256,7 +257,21 @@ class MPIWGProject(CatalogAware,Folder): pt=PageTemplateFile(os.path.join(package_home(globals()),'zpt','MPIWGProject_managePublicationsForm.zpt')).__of__(self) return pt() - + def hasExtendedPublicationList(self): + """test if extended publication list exists""" + if not hasattr(self,"publicationList"): + return False + else: + return True + + def createExtendedPublicationList(self,RESPONSE=None): + """erzeuge erweiterte publications liste""" + pl = BibliographyManager("publicationList","","institutsbiblio",self.connection_id) + self._setOb("publicationList", pl) + + if RESPONSE: + RESPONSE.redirect("managePublications") + def getPublications(self): """get all Publications""" def sort_images(x,y):