--- MPIWGWeb/MPIWGProjects.py 2005/10/10 19:10:13 1.47.2.26 +++ MPIWGWeb/MPIWGProjects.py 2005/10/11 13:14:01 1.47.2.27 @@ -704,20 +704,21 @@ class MPIWGRoot(ZSQLExtendFolder): """updates the publication db, i.e. copy year into the main table""" if personId: - founds = self.ZSQLInlineSearch(_table="publications",id=personId) + founds = self.ZSQLInlineSearch(_table="publications",id_main=personId) else: founds = self.ZSQLInlineSearch(_table="publications") for found in founds: + print found if found.id_institutsbibliographie and (not found.id_institutsbibliographie ==""): entries = self.ZSQLInlineSearch(_table="institutsbiblio",id=found.id_institutsbibliographie) for entry in entries: - self.ZSQLChange(_table='publications',_identify='oid=%s' % entry.oid,year=entry.year) + self.ZSQLChange(_table='publications',_identify='oid=%s' % found.oid,year=entry.year,referencetype=entry.reference_type) if found.id_gen_bib and (not found.id_gen_bib ==""): entries = self.ZSQLInlineSearch(_table="bibliography",id=found.id_gen_bib) for entry in entries: - self.ZSQLChange(_table='publications',_identify='oid=%s' % entry.oid,year=entry.year) + self.ZSQLChange(_table='publications',_identify='oid=%s' % found.oid,year=entry.year,referencetype=entry.reference_type) return True