Mercurial > hg > MPIWGWeb
diff MPIWGStaff.py @ 141:45b7b24c8c42
move getPublicationsFromPubman to MPIWGStaffMember.
author | casties |
---|---|
date | Fri, 31 May 2013 17:56:46 +0200 |
parents | 9f45ed6ffeab |
children | 6ae0201b1257 |
line wrap: on
line diff
--- a/MPIWGStaff.py Fri May 31 17:55:58 2013 +0200 +++ b/MPIWGStaff.py Fri May 31 17:56:46 2013 +0200 @@ -18,7 +18,7 @@ from Products.ZDBInterface.ZDBInterfaceFolder import ZDBInterfaceFolder -from SrvTxtUtils import getHttpData, getAt, getInt, unicodify, utf8ify +from SrvTxtUtils import getInt, unicodify, utf8ify import MPIWGHelper # @@ -187,17 +187,6 @@ return tmp - def getPublicationsFromPubman(self,coneId="renn",limit=None,publicationType=None): - - logging.debug("coneID:%s"%coneId) - try: - pubs=self.mpiwgPubman.getPublications(coneId,limit=limit,publicationType=publicationType) - - return pubs - except: - return [] - - def importSortingModeFromOldStaff(self): """ only used for the migration to the new website """ ret=[] @@ -726,12 +715,13 @@ getStaffURL = getUsername def getPublicationsFromPubman(self,limit=None,publicationType=None): - + """Return list of publications.""" if self.content.publications_mode=="year": coneId = self.getConeId(); if coneId: - pubs= self.folder.getPublicationsFromPubman(coneId,limit=limit,publicationType=publicationType) + pubs = self.folder.mpiwgPubman.getPublications(coneId,limit=limit,publicationType=publicationType) + #pubs= self.folder.getPublicationsFromPubman(coneId,limit=limit,publicationType=publicationType) return pubs elif self.content.publications_mode=="priority": @@ -752,10 +742,6 @@ 'http://purl.org/eprint/type/BookItem':'book-item', 'http://purl.org/escidoc/metadata/ves/publication-types/article':'article'}; - - - - if publicationType is not None: #publicaitions typ ist gesetzt if not ((entry[1] == publicationType) or (entry[1] == typesLongShort.get(publicationType,''))) : #stimmt nicht dann weiter