Mercurial > hg > MPIWGWeb
changeset 65:63184d71c014
lots of cleaning up.
author | casties |
---|---|
date | Fri, 03 May 2013 18:23:01 +0200 |
parents | b5ff783027d6 |
children | 68b3d71eed27 |
files | MPIWGProjects.py MPIWGRoot.py MPIWGRoot_deleted_methods.py MPIWGStaff.py SrvTxtUtils.py css/mpiwg.css zpt/MPIWGFolderChangeWeight.zpt zpt/MPIWGNamesForm.zpt zpt/addPublications.zpt zpt/addPublicationsBib.zpt zpt/bibliography.zpt zpt/changePublications_special.zpt zpt/editAdditionalLinks.zpt zpt/editAwards.zpt zpt/editBibliographyEntry.zpt zpt/editCV.zpt zpt/editDownloads.zpt zpt/editHistoricalNames.zpt zpt/editImageStaff.zpt zpt/editMPIWGStaff.zpt zpt/editMPIWGStaff_main.zpt zpt/editMainData.zpt zpt/editProfile.zpt zpt/editPublications.zpt zpt/editTalks.zpt zpt/editTeaching.zpt zpt/edit_MPIWGDisciplinesThemes.zpt zpt/edit_MPIWGDisciplinesThemesNeu.zpt zpt/edit_MPIWGKeywords.zpt zpt/edit_MPIWGRelatedPublications.zpt zpt/edit_MPIWGStaff.zpt zpt/edit_imageForm.zpt zpt/harvest_main.zpt zpt/harvest_members_main.zpt zpt/members_main.zpt zpt/newBibliographyEntry.zpt zpt/newBibliographyEntryDocType.zpt zpt/no_project.zpt zpt/previewFrame.zpt zpt/project/extendedBibliography_template.zpt zpt/project/image/edit_basic.zpt zpt/project/image/projectImageView.zpt zpt/projectImageView.zpt zpt/project_main.zpt zpt/publications_full_main.zpt zpt/talks_full_main.zpt zpt/teaching_full_main.zpt |
diffstat | 47 files changed, 365 insertions(+), 2279 deletions(-) [+] |
line wrap: on
line diff
--- a/MPIWGProjects.py Fri May 03 12:00:34 2013 +0200 +++ b/MPIWGProjects.py Fri May 03 18:23:01 2013 +0200 @@ -5,54 +5,32 @@ """ from Products.PageTemplates.PageTemplateFile import PageTemplateFile -from Products.PageTemplates.ZopePageTemplate import ZopePageTemplate -from Products.ZCatalog.CatalogPathAwareness import CatalogAware from OFS.Image import Image from App.ImageFile import ImageFile from OFS.SimpleItem import SimpleItem from OFS.Folder import Folder -from OFS.Image import Image -from OFS.Cache import Cacheable from AccessControl import ClassSecurityInfo -from AccessControl import getSecurityManager from Globals import package_home import urllib import re import os import email import xmlhelper # Methoden zur Verwaltung der projekt xml -import xmlrpclib import sys -from types import * import logging import time import xml.etree.ElementTree as ET -from SrvTxtUtils import getInt, unicodify, utf8ify, serialize, refreshingImageFileIndexHtml -from Products.MPIWGBibliography.BibliographyManager import BibliographyManager -from bibliography import * +from SrvTxtUtils import getInt, unicodify, utf8ify, serialize, refreshingImageFileIndexHtml, shortenString from Products.ZDBInterface.ZDBInterfaceFolder import ZDBInterfaceFolder -# import xml.dom.minidom -# from Ft.Xml.XPath import Evaluate -# from Ft.Xml.XPath.Context import Context -# from Ft.Xml.Domlette import NonvalidatingReader,PrettyPrint, Print -# from Ft.Xml import EMPTY_NAMESPACE -# import copy -# import updatePersonalWWW - -# import MPIWGStaff from HashTree import HashTree -from MPIWGHelper import * import MPIWGRoot import MPIWGLink import MPIWGTemplate -import transaction - - # TODO: better names for the fields fieldLabels = {'WEB_title':'WEB_Title', 'xdata_01':'Responsible Scientists', @@ -97,6 +75,7 @@ link = None bookId = None + # templates editDescription = PageTemplateFile('zpt/project/related_publication/edit_basic', globals()) @@ -255,16 +234,14 @@ meta_type = "MPIWGProject_image" - def showImage(self, imageUrl=None): - """show Images at an extra page""" - #self.getContent('WEB_project_description', filter='yes') # get the content and store image infos into session - pt = PageTemplateFile(os.path.join(package_home(globals()), 'zpt', 'projectImageView.zpt')).__of__(self) - return pt() - + # templates + showImage = PageTemplateFile('zpt/project/image/projectImageView', globals()) + editForm = PageTemplateFile('zpt/project/image/edit_basic', globals()) + def editImage(self, file=None, caption=None, RESPONSE=None): """edit the Image""" if (not file) and (not caption): - pt = PageTemplateFile(os.path.join(package_home(globals()), 'zpt', 'edit_imageForm.zpt')).__of__(self) + pt = self.editForm return pt() if file and (not file.filename.lstrip().rstrip() == ""): @@ -277,7 +254,7 @@ self.redirect(RESPONSE, "../manageImages") -class MPIWGProject(CatalogAware, Folder, Cacheable): +class MPIWGProject(Folder): """Class for Projects""" security = ClassSecurityInfo() @@ -325,10 +302,7 @@ description_only_html = PageTemplateFile('zpt/project/description_only_html', globals()) # additional pages additionalPublications = PageTemplateFile('zpt/project/pubman/show_publications', globals()) - - # TODO: this should go away - extendedBibliography = PageTemplateFile('zpt/project/extendedBibliography_template', globals()) - # TODO: compat + # TODO: remove compat edit_MPIWGProject_main = edit_template @@ -494,13 +468,12 @@ return '%s/%s' % (baseUrl, self.getId()) - def getThumbUrl(self, default='http://defaultthumb.jpg'): + def getThumbUrl(self, default=None): """returns the URL of the project thumbnail image""" thumb = self.projectThumb if thumb is None: # get thumb from list (thumb is last image) imgs = self.getImageList() - url = default if len(imgs) > 0: thumb = imgs[-1] self.projectThumb = thumb @@ -1787,7 +1760,7 @@ # if updateResponsibleScientistsList: newScientists = {} - names = project.identifyNames(p.getResponsibleScientists()) + names = project.identifyNames(project.getResponsibleScientists()) for name in names: logging.debug("updateAllProjectMembers: name=%s" % repr(name)) members = names[name]
--- a/MPIWGRoot.py Fri May 03 12:00:34 2013 +0200 +++ b/MPIWGRoot.py Fri May 03 18:23:01 2013 +0200 @@ -1,42 +1,22 @@ from Products.PageTemplates.PageTemplateFile import PageTemplateFile from App.ImageFile import ImageFile - -from Products.ZSQLExtend.ZSQLExtend import ZSQLExtendFolder -from Products.ZCatalog.CatalogPathAwareness import CatalogAware from OFS.Image import Image from Globals import package_home -import urllib import string -import re import os -from types import * import logging -from OFS.SimpleItem import SimpleItem from OFS.Folder import Folder from AccessControl import ClassSecurityInfo -import time -import xml.dom.minidom import sys -import transaction -import copy -from BeautifulSoup import BeautifulSoup, Comment -from ZODB import FileStorage, DB -from ZEO import ClientStorage +from Products.ZSQLExtend.ZSQLExtend import ZSQLExtendFolder from MPIWGHelper import * import updatePersonalWWW -from bibliography import * import MPIWGStaff from SrvTxtUtils import getInt, getAt, utf8ify, refreshingImageFileIndexHtml -def sortWeight(x,y): - x1=int(getattr(x[1],'weight','0')) - y1=int(getattr(y[1],'weight','0')) - return cmp(x1,y1) - - class MPIWGRoot(ZSQLExtendFolder): """Stammordner fuer den Web-Server""" @@ -70,10 +50,17 @@ mpiwg_css.index_html = refreshingImageFileIndexHtml + def __init__(self, id, title): + """init""" + self.id=id + self.title=title + + def getLang(self): """returns the default language""" return self.lang + def browserCheck(self): """check the browsers request to find out the browser type""" bt = {} @@ -102,33 +89,6 @@ return bt - def createOrUpdateId_raw(self): - """create sequence to create ids for bibliography""" - debug=None - #suche groesste existierende id - founds=self.ZSQLQuery("select id from bibliography") - - if founds: - ids=[int(x.id[1:]) for x in founds] - maximum=max(ids) - - id_raw=self.ZSQLQuery("select nextval('id_raw')",debug=debug) - - if id_raw: - self.ZSQLQuery("drop sequence id_raw",debug=debug) - - self.ZSQLQuery("create sequence id_raw start %i"%(maximum+1),debug=debug) - - - def queryLink(self,link): - """append querystring to the link""" - return "%s?%s"%(link,self.REQUEST.get('QUERY_STRING','')) - - def getKategory(self,url): - """kategorie""" - splitted=url.split("/") - return splitted[4] - def isNewCapital(self,text=None,reset=None): if text: @@ -142,61 +102,35 @@ return True else: return False - - def subNavStatic(self,obj): - """subnav" von self""" - subs=self.ZopeFind(obj,obj_metatypes=['MPIWGTemplate','MPIWGLink']) - subret=[] - for x in subs: - if not(x[1].title==""): - subret.append(x) - subret.sort(sortWeight) - return subret def getSubsections(self, here=None): """return sub-navigation elements i.e. elements below sections""" p = here if p is None: p = self + sec = None # descend parents to the root (and remember the last id) while p is not None and p.meta_type != 'MPIWGRoot': sec = p p = p.aq_parent - subsecs = sec.objectItems(self.nav_meta_types) + subsecs = sec.objectItems(spec=self.nav_meta_types) subsecs = [s for s in subsecs if s[1].title != ""] - subsecs.sort(sortWeight) + subsecs.sort(key=lambda x:int(getattr(x[1],'weight','0'))) return subsecs # compatibility subNav = getSubsections - def isType(self,object,meta_type): - """teste ob ein object vom meta_type ist.""" - return (object.meta_type==meta_type) - - def isActive(self,name): - """teste ob subnavigation aktiv""" - for part in self.REQUEST['URL'].split("/"): - if part==name: - return True - return False - - + def getSections(self): """returns a list of all sections i.e. top-level MPIWGFolders""" items = self.objectValues(spec='MPIWGFolder')[:] items.sort(key=lambda x:int(x.weight)) return items - def getSectionStyle(self, name, style=""): - """returns a string with the given style + '-sel' if the current section == name""" - if self.getSection() == name: - return style + '-sel' - else: - return style def getPathStyle(self, path, selected, style=""): """returns a string with the given style + 'sel' if path == selected.""" @@ -205,6 +139,7 @@ else: return style + def getFeatures(self, num=None): """returns a list of the last num Features""" dir = getattr(self, 'features', None) @@ -218,6 +153,7 @@ items = items[-num:] return items + def getDepartments(self): """returns a list of the Departments""" dir = getattr(self, 'departments', None) @@ -228,6 +164,7 @@ items.sort(key=lambda x:int(x.weight)) return items + def getDepartment(self, projectNumber=None): """returns a Department object""" dir = getattr(self, 'departments', None) @@ -250,7 +187,7 @@ def getStaffFolder(self): """returns the MPIWGStaffFolder""" - dir = getattr(self, 'members_test', None) # TODO: fix the test + dir = getattr(self, 'members', None) # TODO: fix the test return dir @@ -269,98 +206,6 @@ """unicodify""" return unicodify(s) - # TODO: remove - def replaceNotEmpty(self,format,field): - """replace not empty""" - if field and (not field.lstrip()==''): - return format%field - #return self.decode(format%field) - else: - return "" - - - - def redirectIndex_html(self,request): - #return request['URL1']+'/index_html' - - return urllib.urlopen(request['URL1']+'/index_html').read() - - - def formatBibliography(self,here,found): - """format""" - return formatBibliography(here,found) - - def getValue(self,fieldStr): - """Inhalt des Feldes""" - - if type(fieldStr)==StringType: - field=fieldStr - else: - field=fieldStr[0] - try: - if field[len(field)-1]==";": - field=field[0:len(field)-1] - except: - - """nothing""" - field=re.sub(r';([^\s])','; \g<1>',field) - return field.encode('utf-8') - - - - def sortedNames(self,list): - """sort names""" - - def sortLastName(x_c,y_c): - try: - x=urllib.unquote(x_c).encode('utf-8','ignore') - except: - x=urllib.unquote(x_c) - - try: - y=urllib.unquote(y_c).encode('utf-8','ignore') - except: - x=urllib.unquote(y_c) - - - - try: - last_x=x.split()[len(x.split())-1] - last_y=y.split()[len(y.split())-1] - - except: - - last_x="" - last_y="" - - - - if last_x<last_y: - return 1 - elif last_x>last_y: - return -1 - else: - return 0 - - list.sort(sortLastName) - list.reverse() - - return list - - def __init__(self, id, title): - """init""" - self.id=id - self.title=title - - - def urlQuote(self,str): - """quote""" - return urllib.quote(str) - - def urlUnQuote(self,str): - """quote""" - return urllib.unquote(str) - def changeMPIWGRootForm(self): """edit""" @@ -383,7 +228,7 @@ RESPONSE.redirect('manage_main') - + # TODO: is this used? def updatePublicationDB(self,personId=None): """updates the publication db, i.e. copy year and type into the main table""" @@ -409,7 +254,6 @@ def showNewDBEntries(self): """zeige neue Eintraege in der Datenbank ohne e-mail adressen bzw. fuer die noch kein Object angelegt wurde""" - qstr="select * from personal_www where web_object_created='no' and not key=''" res=self.ZSQLQuery(qstr) @@ -417,8 +261,7 @@ return pt(newEntries=res) def createNewStaffObjects(self,RESPONSE): - """create new staff object""" - + """create new staff object""" memberFolder=getattr(self,'members') args=self.REQUEST.form arg_k=args.keys() @@ -586,14 +429,6 @@ return ret+"</body></html>" - def updateInstitutsbiliography(self): - """update the Institutsbibliogrpahy""" - self.upDateSQL('personalwww.xml') - return "<html><body>DONE</body></html>" - - - - def updatePersonalwww_html(self): """update form for the homepages web form""" pt=PageTemplateFile(os.path.join(package_home(globals()),'zpt','updatePersonalwww.zpt')).__of__(self) @@ -618,105 +453,6 @@ return pt() - - - def getAllMembers(self): - #ret=[] - - def sorter(x,y): - return cmp(x[0].lower(),y[0].lower()) - - results=self.MembersCatalog({'isPublished':True}) - - ret=[(unicodify(", ".join([proj.lastName, proj.firstName])), proj.getKey) for proj in results] - - ret.sort(sorter) - return ret - - - def printAllMembers(self): - """print""" - members=self.getAllMembers() - ret="" - for x in members: - ret+="<p>%s</p>"%x - return ret - - - def makeList(self,entry): - """makes a list out of one entry or repeat a list""" - if type(entry) is StringType: - return [entry] - else: - return entry - - def getTreeRSS(self,dep=None,date=None,onlyActive=1,onlyArchived=0): - """generateTree""" - rss="""<?xml version="1.0" encoding="utf-8"?> - <rss version="2.0"> - <channel>""" - - for obj in self.getTree(dep, date, onlyActive, onlyArchived): - linkStr="""<link>http://www.mpiwg-berlin.mpg.de/en/research/projects/%s</link>""" - rss+="""<item>""" - rss+=linkStr%obj[3].getId() - rss+="""</item>""" - if hasattr(obj[3],'publicationList'): - rss+="""<item>""" - rss+=linkStr%(obj[3].getId()+"/publicationList"); - rss+="""</item>""" - rss+="""</channel> - </rss>""" - - return rss - - - def getRelativeUrlFromPerson(self,list): - """get urls to person list""" - ret=[] - persons=list.split(";") - for person in persons: - - if len(person)>1: #nicht nur Trennzeichen - splitted=person.split(",") - if len(splitted)==1: - splitted=person.split(" ") - splittedNew=[re.sub(r'\s(.*)','$1',split) for split in splitted] - if splittedNew[0]=='': - del splittedNew[0] - search=string.join(splittedNew,' AND ') - - if not search=='': - - try: - proj=self.MembersCatalog({'title':search}) - except: - proj=None - - if proj: - #ret.append("<a href=%s >%s</a>"%(proj[0].absolute_url,person.encode('utf-8'))) - ret.append("<a href=%s >%s</a>"%('members/'+proj[0].id+'/index.html',person)) - else: - #ret.append("%s"%person.encode('utf-8')) - ret.append("%s"%person) - return string.join(ret,";") - - def getMemberIdFromKey(self,key): - """gibt die ensprechende id im members Ordner zum key""" - - if key=="": - return "" - try: - key=utf8ify(key) - catalogged=self.MembersCatalog({'getKey':key}) - if len(catalogged)==0: - return "" - else: - return catalogged[0].getObject().getId() - - except: - return "" - def getAllProjectPublications(self): """get all publications""" fw=file("/tmp/allProjectPublications","w")
--- a/MPIWGRoot_deleted_methods.py Fri May 03 12:00:34 2013 +0200 +++ b/MPIWGRoot_deleted_methods.py Fri May 03 18:23:01 2013 +0200 @@ -1,3 +1,11 @@ + +def sortWeight(x,y): + x1=int(getattr(x[1],'weight','0')) + y1=int(getattr(y[1],'weight','0')) + return cmp(x1,y1) + + + class MPIWGRoot_deleted: @@ -853,4 +861,257 @@ return getattr(self, field) - + + + def redirectIndex_html(self,request): + #return request['URL1']+'/index_html' + + return urllib.urlopen(request['URL1']+'/index_html').read() + + + def formatBibliography(self,here,found): + """format""" + return formatBibliography(here,found) + + def getValue(self,fieldStr): + """Inhalt des Feldes""" + + if type(fieldStr)==StringType: + field=fieldStr + else: + field=fieldStr[0] + try: + if field[len(field)-1]==";": + field=field[0:len(field)-1] + except: + + """nothing""" + field=re.sub(r';([^\s])','; \g<1>',field) + return field.encode('utf-8') + + + + def sortedNames(self,list): + """sort names""" + + def sortLastName(x_c,y_c): + try: + x=urllib.unquote(x_c).encode('utf-8','ignore') + except: + x=urllib.unquote(x_c) + + try: + y=urllib.unquote(y_c).encode('utf-8','ignore') + except: + x=urllib.unquote(y_c) + + + + try: + last_x=x.split()[len(x.split())-1] + last_y=y.split()[len(y.split())-1] + + except: + + last_x="" + last_y="" + + + + if last_x<last_y: + return 1 + elif last_x>last_y: + return -1 + else: + return 0 + + list.sort(sortLastName) + list.reverse() + + return list + + def createOrUpdateId_raw(self): + """create sequence to create ids for bibliography""" + debug=None + #suche groesste existierende id + founds=self.ZSQLQuery("select id from bibliography") + + if founds: + ids=[int(x.id[1:]) for x in founds] + maximum=max(ids) + + id_raw=self.ZSQLQuery("select nextval('id_raw')",debug=debug) + + if id_raw: + self.ZSQLQuery("drop sequence id_raw",debug=debug) + + self.ZSQLQuery("create sequence id_raw start %i"%(maximum+1),debug=debug) + + + def queryLink(self,link): + """append querystring to the link""" + return "%s?%s"%(link,self.REQUEST.get('QUERY_STRING','')) + + def getKategory(self,url): + """kategorie""" + splitted=url.split("/") + return splitted[4] + + def isType(self,object,meta_type): + """teste ob ein object vom meta_type ist.""" + return (object.meta_type==meta_type) + + + # TODO: remove + def replaceNotEmpty(self,format,field): + """replace not empty""" + if field and (not field.lstrip()==''): + return format%field + #return self.decode(format%field) + else: + return "" + + + def urlQuote(self,str): + """quote""" + return urllib.quote(str) + + def urlUnQuote(self,str): + """quote""" + return urllib.unquote(str) + + def updateInstitutsbiliography(self): + """update the Institutsbibliogrpahy""" + self.upDateSQL('personalwww.xml') + return "<html><body>DONE</body></html>" + + + + + + + def getAllMembers(self): + #ret=[] + + def sorter(x,y): + return cmp(x[0].lower(),y[0].lower()) + + results=self.MembersCatalog({'isPublished':True}) + + ret=[(unicodify(", ".join([proj.lastName, proj.firstName])), proj.getKey) for proj in results] + + ret.sort(sorter) + return ret + + + def printAllMembers(self): + """print""" + members=self.getAllMembers() + ret="" + for x in members: + ret+="<p>%s</p>"%x + return ret + + + def makeList(self,entry): + """makes a list out of one entry or repeat a list""" + if type(entry) is StringType: + return [entry] + else: + return entry + + def getTreeRSS(self,dep=None,date=None,onlyActive=1,onlyArchived=0): + """generateTree""" + rss="""<?xml version="1.0" encoding="utf-8"?> + <rss version="2.0"> + <channel>""" + + for obj in self.getTree(dep, date, onlyActive, onlyArchived): + linkStr="""<link>http://www.mpiwg-berlin.mpg.de/en/research/projects/%s</link>""" + rss+="""<item>""" + rss+=linkStr%obj[3].getId() + rss+="""</item>""" + if hasattr(obj[3],'publicationList'): + rss+="""<item>""" + rss+=linkStr%(obj[3].getId()+"/publicationList"); + rss+="""</item>""" + rss+="""</channel> + </rss>""" + + return rss + + + def getRelativeUrlFromPerson(self,list): + """get urls to person list""" + ret=[] + persons=list.split(";") + for person in persons: + + if len(person)>1: #nicht nur Trennzeichen + splitted=person.split(",") + if len(splitted)==1: + splitted=person.split(" ") + splittedNew=[re.sub(r'\s(.*)','$1',split) for split in splitted] + if splittedNew[0]=='': + del splittedNew[0] + search=string.join(splittedNew,' AND ') + + if not search=='': + + try: + proj=self.MembersCatalog({'title':search}) + except: + proj=None + + if proj: + #ret.append("<a href=%s >%s</a>"%(proj[0].absolute_url,person.encode('utf-8'))) + ret.append("<a href=%s >%s</a>"%('members/'+proj[0].id+'/index.html',person)) + else: + #ret.append("%s"%person.encode('utf-8')) + ret.append("%s"%person) + return string.join(ret,";") + + def getMemberIdFromKey(self,key): + """gibt die ensprechende id im members Ordner zum key""" + + if key=="": + return "" + try: + key=utf8ify(key) + catalogged=self.MembersCatalog({'getKey':key}) + if len(catalogged)==0: + return "" + else: + return catalogged[0].getObject().getId() + + except: + return "" + + def subNavStatic(self,obj): + """subnav" von self""" + subs=self.ZopeFind(obj,obj_metatypes=['MPIWGTemplate','MPIWGLink']) + subret=[] + + for x in subs: + if not(x[1].title==""): + subret.append(x) + subret.sort(sortWeight) + return subret + + + def isActive(self,name): + """teste ob subnavigation aktiv""" + for part in self.REQUEST['URL'].split("/"): + if part==name: + return True + return False + + + def getSectionStyle(self, name, style=""): + """returns a string with the given style + '-sel' if the current section == name""" + if self.getSection() == name: + return style + '-sel' + else: + return style + +
--- a/MPIWGStaff.py Fri May 03 12:00:34 2013 +0200 +++ b/MPIWGStaff.py Fri May 03 18:23:01 2013 +0200 @@ -1169,6 +1169,10 @@ """MPIWG staff member object from database""" security = ClassSecurityInfo() + + # templates + mainEditFile=PageTemplateFile('zpt/staff/edit_main', globals()) + def __init__(self, folder, dbresult): """constructor: takes parent MPIWGStaffFolder and content""" @@ -1312,10 +1316,6 @@ return style - - mainEditFile=PageTemplateFile(os.path.join(package_home(globals()),'zpt/staff','edit_main.zpt')) - - security.declareProtected('View management screens','edit') def edit(self,REQUEST=None): """Edit the basic information"""
--- a/SrvTxtUtils.py Fri May 03 12:00:34 2013 +0200 +++ b/SrvTxtUtils.py Fri May 03 18:23:01 2013 +0200 @@ -9,10 +9,11 @@ import urllib import urllib2 import logging +import time import xml.etree.ElementTree as ET -srvTxtUtilsVersion = "1.7" +srvTxtUtilsVersion = "1.8" map_months = {'en': [u"", u"January", @@ -174,3 +175,9 @@ # call original method return ImageFile.index_html(self, REQUEST, RESPONSE) + +def shortenString(s, l, ellipsis='...'): + """returns a string of length l (or l-1) by omitting characters in the middle of s, replacing with ellipsis.""" + l1 = int((l - len(ellipsis)) / 2) + return "%s%s%s"%(s[:l1],ellipsis,s[-l1:]) +
--- a/css/mpiwg.css Fri May 03 12:00:34 2013 +0200 +++ b/css/mpiwg.css Fri May 03 18:23:01 2013 +0200 @@ -692,12 +692,14 @@ width: 140px; } -div.mini.source div.thumb img { - /* width: 120px; */ -} +div.row.triple div.mini div.thumb img { + width: 140px; + height: 87px; +} div.mini div.type { color: #9f917a; + margin-top: 0.5em; } div.mini div.title { @@ -709,18 +711,18 @@ margin-top: 0.5em; } -div.box div.website div.description { +div.mini div.link { + margin-top: 0.5em; +} + +div.mini.website div.description { /* initially hidden */ display: none; } -div.box div.website.item { - min-height: 180px; - position: relative; - margin: 10px 0 0 0; -} - -div.box div.website.item div.fold { +div.box.foldable div.fold { + /* initially hidden */ + display: none; position: absolute; bottom: 0; right: 0;
--- a/zpt/MPIWGFolderChangeWeight.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ -<html> -<h2>Change Weight</h2> -<form action="changeWeight" method="pro"> -<input tal:attributes="value here/weight|string:0" name="weight"><br> -<input type="submit"> -</form> -</html>
--- a/zpt/MPIWGNamesForm.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -<html> -<head> - <title>The title</title> -</head> -<body> - -<div> - -<h1>Upload list of Names</h1> -<p>Komma separated list: email,lastname,firstname</p> -<form method="post" action="importNames" enctype="multipart/form-data"> -<p>Folder</p> -<input name="folderName"> -<p>File:</p> -<input type="file" name="fileupload"/> -<input type="submit"> -</form> -</div> -</body> -</html>
--- a/zpt/addPublications.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,42 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html metal:use-macro="here/mainEditFile/macros/page"> -<body> -<tal:block metal:fill-slot="navsel" tal:define="global menusel string:publications" /> - -<tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'"> - - <h3>Add entries from the <i>Institutsbibliographie</i></h3> - <p>On this page you can search the Institutsbibliographie for your publications and add them to the list of publications that appears on your staff-page.</p> - <form name="search" action="addPublications" method="get"> - <table> - <tr> - <td>Author</td> - <td tal:content="structure python:here.ZSQLsearchOptions(fieldname='author')" /> - <td><input name="author" len="30"></td> - </tr> - <tr> - <td>Title</td> - <td tal:content="structure python:here.ZSQLsearchOptions(fieldname='title')" /> - <td><input name="title" len="30"></td> - </tr> - </table> - <input type="submit" value="search"> - </form> - <form name="add" action="addPublications" method="get"> - <input type="hidden" value="add" name="mode"> - <tal:block tal:condition="python:here.REQUEST.get('fromSearch','0')=='1'"> - <table> - <tr tal:repeat="foundb python:here.ZSQLFind(_table='institutsbiblio')"> - <td><input type="checkbox" tal:attributes="value python:str(foundb.id)" name="addEntries"></td> - <td tal:content="structure python:here.decode(here.formatBiblHelp(None,'','',foundb))" /> - </tr> - </table> - <input type="submit" value="add" name="submit"> - </tal:block> - </form> - <!-- <h3><a href="newBibliography">Add a separate entry</a></h3> --> - <h3><a href="editPublications">Back to publication list</a></h3> -</tal:block> -</html> -
--- a/zpt/addPublicationsBib.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html metal:use-macro="here/mainEditFile/macros/page"> -<body> -<tal:block metal:fill-slot="navsel" tal:define="global menusel string:publications" /> - -<tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'"> - - <h3>Add Publications</h3> - <p> There are two ways to add publications to your list. </p> - <ol> - <li> Publications that were created and released at the MPIWG are stored in a database, the <u>Instituts-Bibliographie</u>.<br/> In - that case you can <b>search for and add them</b> <a href="addPublications"><img src="images/arr_right.gif" border="0"/> here</a>. </li> - <li> If you want to add publications that <u>have not been released at the MPIWG</u>,<br/> you may need to <b>add separate entries</b> - <a href="newBibliography"><img src="images/arr_right.gif" border="0"/> here</a>.</li> - </ol> - <!-- <h3><a href="newBibliography">Add a separate entry</a></h3> --> - <h3><a href="editPublications">Back to publication list</a></h3> -</tal:block> -</html> -
--- a/zpt/bibliography.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,55 +0,0 @@ -<tal:block tal:condition="not:python=here.ZSQLisEmpty(found.id_institutsbibliographie)" - tal:define="foundIB python:ZSQLInlineSearch(_table='institutsbiblio',id=found.id_institutsbibliographie)[0]"> - - <tal:block tal:condition="python:foundIB.reference_type.lower()=='journal article'"> - <span tal:replace="foundIB/author_semi_colon"/>"<span tal:replace="foundIB/title"/>" - <i><span tal:replace="foundIB/secondary_title"/></i> - <span tal:replace="foundIB/volume"/>" - (<span tal:condition - -ret="" -if not found.id_institutsbibliographie=='': - foundIB=here.ZSQLInlineSearch(_table='institutsbiblio',id=found.id_institutsbibliographie)[0] - if foundIB.reference_type.lower()=='journal article': - ret+=foundIB.author_semi_colon+"""+foundIB.title+"""+"<i>%s</i>"%foundIB.secondary_title+foundIB.volume+""(" - if not foundIB.number=='': - ret+=foundIB.number+" " - ret+=foundIB.year+")" - if not foundIB.pages=='': - ret+=": "+foundIB.pages+"." - - -<!-- -[FMP-Field: Author_semi_colon]. "[FMP-Field: Title]." <i>[FMP-Field: Secondary Title]</i> [FMP-Field: Volume] ([FMP-If: Number.neq.][FMP-Field: Number] [/FMP-If][FMP-Field: year])[FMP-If: pages.neq.]: [FMP-Field: pages][/FMP-IF]. -[FMP-elseif: Reference Type.eq.Edited Book] -[FMP-Field: Author_semi_colon] (Editor/s). <i>[FMP-Field: Title]</i>. [FMP-If: Place Published.neq.][FMP-Field: Place Published]: [/FMP-if][FMP-if: publisher.neq.][FMP-Field: Publisher], [/FMP-If][FMP-Field: year]. -[FMP-elseif: Reference Type.eq.Book Section] -[FMP-Field: Author_semi_colon]. "[FMP-Field: Title]." In <i>[FMP-Field: Secondary Title]</i>[FMP-If: Secondary_Author_semi_colon.neq.], eds.: [FMP-Field: Secondary_Author_semi_colon][/FMP-if]. [FMP-If: Pages.neq.][FMP-Field: Pages].[/FMP-If][FMP-If: Place Published.neq.][FMP-Field: Place Published][/FMP-IF][FMP-If: Publisher.neq.]: [FMP-Field: Publisher],[/FMP-If] [FMP-Field: Year]. -[FMP-elseif: Reference Type.eq.Book] -[FMP-Field: Author_semi_colon]. <i>[FMP-Field: Title]</i>. [FMP-Field: Place Published]: [FMP-Field: Publisher], [FMP-Field: year]. -[FMP-elseif: Reference Type.eq.Newspaper Article] -[FMP-Field: Author_semi_colon]. "[FMP-Field: Title]." <i>[FMP-Field: Secondary Title]</i>, [FMP-Field: Date].[FMP-Field: Year], [FMP-Field: Pages]. -[/FMP-if] -[/FMP-InlineAction] - - - - -[FMP-else] - - -[FMP-InlineAction: -db=bibliography, ID="{Field: ID_gen_bib}", -find] -[FMP-IF: Reference Type.eq.Journal Article] -[FMP-Field: Author_semi_colon]. "[FMP-Field: Title]." <i>[FMP-Field: Secondary Title]</i> [FMP-Field: Volume] ([FMP-If: Number.neq.][FMP-Field: Number] [/FMP-If][FMP-Field: year])[FMP-If: Pages.neq.]: [FMP-Field: Pages][/FMP-IF]. -[FMP-else][FMP-IF: Reference Type.eq.Edited Book] -[FMP-Field: Author_semi_colon] (Editor/s). <i>[FMP-Field: Title]</i>. [FMP-If: Place Published.neq.][FMP-Field: Place Published]: [/FMP-if][FMP-if: publisher.neq.][FMP-Field: Publisher], [/FMP-If][FMP-Field: year]. -[FMP-else][FMP-IF: Reference Type.eq.Book Section] -[FMP-Field: Author_semi_colon]. "[FMP-Field: Title]." In <i>[FMP-Field: Secondary Title]</i>[FMP-If: Secondary_Author_semi_colon.neq.], eds.: [FMP-Field: Secondary_Author_semi_colon][/FMP-if]. [FMP-If: Pages.neq.][FMP-Field: Pages].[/FMP-If][FMP-If: Place Published.neq.][FMP-Field: Place Published][/FMP-IF][FMP-If: Publisher.neq.]: [FMP-Field: Publisher],[/FMP-If] [FMP-Field: Year]. -[FMP-else][FMP-IF: Reference Type.eq.Book] -[FMP-Field: Author_semi_colon]. <i>[FMP-Field: Title]</i>. [FMP-Field: Place Published]: [FMP-Field: Publisher], [FMP-Field: year]. -[FMP-else][FMP-IF: Reference Type.eq.Newspaper Article] -[FMP-Field: Author_semi_colon]. "[FMP-Field: Title]." <i>[FMP-Field: Secondary Title]</i>, [FMP-Field: Date].[FMP-Field: Year], [FMP-Field: Pages]. -[/FMP-if][/FMP-if][/FMP-if][/FMP-if][/FMP-if] -[/FMP-InlineAction] -[/FMP-IF] --->
--- a/zpt/changePublications_special.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -<html> -<body> -<h2>Change free text field publication overview for front page</h2> -<form action="changePublications_special" method="post"> -<input type="checkbox" name="usePublicationsSpecial" value="1">Use free text field<br> -<textarea name="specialPublicationsField" cols="80" rows="40" tal:content="python:getattr(here,'specialPublicationsField','')"></textarea> -<br> -<input type="submit" value="submit"> -</form> -</body> -</html>
--- a/zpt/editAdditionalLinks.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,72 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html metal:use-macro="here/mainEditFile/macros/page"> -<body> -<tal:block metal:fill-slot="navsel" tal:define="global menusel string:additionalLink" /> -<p>You can add links to documents or project websites you want to provide and are relevant for -presenting your work and research interests</p> - -<tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'"> - <form action="changeResearch" method="post"> - <input type="hidden" name="key_main" tal:attributes="value python:here.decode(person.key)"> - <input type="hidden" name="main_fields" value="additionalLink__title"> - <table tal:define="founds2 python:here.ZSQLInlineSearch(_table='additionalLink',key_main=person.key)" > - <tal:x tal:repeat="found2 python:here.sortPriority(founds2)"> - <tr class="fliesstext"> - <td>Text over Link</td> - <td><input tal:attributes="name python:'additionalLink__title__'+str(found2.oid); - value python:here.decode(found2.title)" size="80" /> </td> - </tr> - <tr> - <td>Url</td> - <td><input tal:attributes="name python:'additionalLink__link__'+str(found2.oid); - value python:here.decode(found2.link)" size="80" /></td> - </tr> - <tr> - <td valign="top">Priority <input tal:attributes="name python:'additionalLink__priority__'+str(found2.oid); - value python:here.decode(found2.priority)" - size="3" /> - </td> - <td valign="top">Publish - <tal:x tal:content="structure python:here.ZSQLSelectionFromCRList( - 'additionalLink__published__'+str(found2.oid), - yes_no_list, - boxType='radio', - checked=found2.published)" /> - <a tal:attributes="href python:'deleteField?table=additionalLink&oid=%s'%found2.oid">delete this link</a> - </td> - </tr> - <tr> - <td colspan="2"><hr/></td> - </tr> - </tal:x> - <tr > - <td colspan="2"><b>Add new link</b></td> - </tr> - <tr> - <td>Text over Link</td> - <td><input tal:attributes="name python:'additionalLink__title__new'" size="80"/></td> - </tr> - <tr> - <td>Url</td> - <td><input tal:attributes="name python:'additionalLink__link__new'" size="80" /></td> - </tr> - <tr> - <td>Priority <input tal:attributes="name python:'additionalLink__priority__new'" size="3"></td> - <td valign="top">Publish - <tal:x tal:content="structure python:here.ZSQLSelectionFromCRList( - 'additionalLink__published__new', - yes_no_list, - boxType='radio', - checked='yes')" /> - </td> - </tr> - </table> - <input type="submit" value="submit"> - - </form> - <p>Please contact the IT Group <a href="mailto:itgroup@mpiwg-berlin.mpg.de">itgroup@mpiwg-berlin.mpg.de</a>, if you intend - to link to documents not available in the net and if you want to publish these.</p> -</tal:block> -</body> -</html>
--- a/zpt/editAwards.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html metal:use-macro="here/mainEditFile/macros/page"> -<body> - <tal:block metal:fill-slot="navsel" tal:define="global menusel string:awards"/> - -<tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'"> - -<form action="editAwards" method="post"> -<input type="hidden" name="oid" tal:attributes="value person/oid"> -<textarea name="awards" tal:content="python:person.awards" cols=80 rows=10> -</textarea> -<br> -<input type="submit" value="submit"> -</tal:block> -</body> -</html>
--- a/zpt/editBibliographyEntry.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html metal:use-macro="here/mainEditFile/macros/page"> -<body> -<tal:block metal:fill-slot="navsel" tal:define="global menusel string:publications" /> -<tal:block metal:fill-slot="body"> -<tal:block - tal:define="found python:here.ZSQLInlineSearchU(_table='bibliography',id=here.REQUEST['id']); - mapping python:here.metadata.main.meta.bib.generateMappingForType(type=found.reference_type)"> - - <h3>Edit a separate publication</h3> - - <form action="ZSQLChange" method="get"> - <input type="hidden" name="-format" value="editPublications"> - <input type="hidden" name="-identify" tal:attributes="value python:'oid='+str(found.oid)"> - <input type="hidden" name="-table" value="bibliography"> - <table> - <tal:block tal:repeat="mapElement python:mapping.keys()"> - <tr tal:condition="python:mapping[mapElement][1]!=''"> - <td tal:content="python:mapping[mapElement][1].encode('utf-8')"/> - <td><input size="80" tal:attributes="value python:getattr(found,mapElement); name mapElement" /> - </tr> - </tal:block> - </table> - <input type="submit" value="change" /> - </form> - - <h3><a href="editPublications">Back to publication list</a></h3> - - </tal:block> - </tal:block> -</body> -</html> -
--- a/zpt/editCV.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html metal:use-macro="here/mainEditFile/macros/page"> -<body> - <tal:block metal:fill-slot="navsel" tal:define="global menusel string:cv"/> - -<tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'"> -<form action="editCV" method="post"> -<input type="hidden" name="oid" tal:attributes="value person/oid"> -<textarea name="cv" tal:content="python:person.cv" cols=80 rows=10> -</textarea> -<br> -<input type="submit" value="submit"> -</tal:block> -</body> -</html>
--- a/zpt/editDownloads.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,55 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html metal:use-macro="here/mainEditFile/macros/page"> -<head> -</head> -<body> -<tal:block metal:fill-slot="navsel" tal:define="global menusel string:downloads" /> -<tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'"> -<p>Here you can upload your CV and and publication list to be downloaded from your homepage.</p> -<p>The documents should be in <b>PDF format</b>. Add the add bottom of this page you find <a href="#templates">templates</a> for OpenOffice and -Word to make it easier for you to create these documents.</p> -<form action="changeDownloads" method="post" enctype="multipart/form-data"> -<h2>Your CV</h2> -<p><input type="file" name="cv_pdf"/></p> -<p>Remember that documents should be in <b>PDF format</b>. <br/><input type="submit" value="Upload the file"/></p> -<p><a href="downloadCV">Download the CV currently stored at the server.</a> (last update:<span tal:content="here/getLastUpdateCV"/>)</p> -<p>publish: <tal:x tal:content="structure python:here.ZSQLSelectionFromCRList( - 'cv_publish', - yes_no_list, - boxType='radio', - checked=getattr(here,'cv_publish','no'))" /></p> - -<h2>Publication list</h2> -<p><input type="file" name="publications_pdf"/></p> -<p>Remember that documents should be in <b>PDF format</b>. <br/><input type="submit" value="Upload the file"/></p> -<p><a href="downloadPublications">Download the publicaton list currently stored at the server. </a>(last update:<span tal:content="here/getLastUpdatePublications"/>)</p> -<p>publish: <tal:x tal:content="structure python:here.ZSQLSelectionFromCRList( - 'publications_publish', - yes_no_list, - boxType='radio', - checked=getattr(here,'publications_publish','no'))" /></p> - -<p><input type="submit" value="Update"/></p> - -</form> -<br/> <br/> -<a name="templates"/><h3>Download Templates:</h3> -<ul> - <li>For OpenOffice Writer: - <ul> - <li><a href="downloads/publications_template.ott">Publication List</a> </li> - <li><a href="downloads/CV_template.ott">CV</a></li> - </ul> - </li> - <li>For Ms Word: - <ul> - <li><a href="downloads/Vorlage_Publikation.dot">Publication List</a></li> - <li><a href="downloads/Beispiel_CV.doc">CV</a></li> - </ul> - </li> -</ul> -</tal:block> - -</body> -</html>
--- a/zpt/editHistoricalNames.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,43 +0,0 @@ -<h2> Edit historical names </h2> - -<tal:block tal:define="names here/nameIndexEdited/keys; dummy python:names.sort()"> -<table> - <tal:x tal:repeat="name names"> - <form action="editNameIndex" method="post"> - <tr> - <td tal:content="name">NAME</td> - <td> - <input type="hidden" name="name" tal:attributes="value name"> - <textarea cols=50 rows=5 name="occurrances" tal:content="python:'\n'.join(here.nameIndexEdited[name])">OCCURENCES</textarea> - </td> - <td> - <a target="names" tal:attributes="href python:'misc/search/namesMentioned?name=%s'%name">Show occurances</a> - </td> - <td> - <input type="submit" value="delete" name="submit"> - <input type="submit" value="change" name="submit"> - <tr> - </tr> - </form> - </tal:x> - </table> - <h2>Add name</h2> - <table> - <form action="editNameIndex" method="post"> - <tr> - <td><input name="name" size=50> - </td> - <td> - <textarea cols=50 rows=5 name="occurrances"></textarea> - </td> - - <td> - <input type="submit" value="add" name="submit"> - - <tr> - </tr> - </form> - </table> - - <!-- Don't change from here --> - </tal:block> \ No newline at end of file
--- a/zpt/editImageStaff.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html metal:use-macro="here/mainEditFile/macros/page"> -<body> - <tal:block metal:fill-slot="navsel" tal:define="global menusel string:image"/> - - <tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'"> - <form action="updateImage" method="post" enctype="multipart/form-data"> - <p>Show this photo on the homepage: <span tal:replace="structure python:here.ZSQLSelectionFromCRList( - 'publishImage', - yes_no_list, - boxType='radio', - checked=here.getPublishImage())"/> - </p> - <p> - <span tal:condition="here/getImageObj" tal:replace="structure python:here.getImageObj().thumb()"/></p> - -<!-- - <p>Filename:<input type="file" name="file" size="30"></p> - <p>Images should not be too big. Allowed formats: JPEG, TIFF or PNG. Files must have proper extension *.jpg, *.tif or *.png.</p> ---> - <p>Please contact the IT-support (support@mpiwg-berlin.mpg.de) to upload a picture for you.</p> - - <input type="submit"/> - </form> - - </tal:block> - </body> - </html> \ No newline at end of file
--- a/zpt/editMPIWGStaff.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,42 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html metal:use-macro="here/mainEditFile/macros/page"> -<head> -</head> -<body> -<tal:block metal:fill-slot="navsel" tal:define="global menusel string:research" /> -<tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'"> - - <form action="changeCurrentWork" method="post"> - <input type="hidden" name="key" tal:attributes="value person/key"/> - <h3>Short entry</h3> - <p>This entry appears only in the staff lists at: <a href="../staff/fullist.html">Fullist</a> and the - lists of members of you department</p> - <table tal:define="found2 python:person"> - <tr> - <th /> - <th>Show</th> - </tr> - <tr class="fliesstext"> - <td><input tal:attributes="name python:'current_work'; - value python:here.decode(found2.current_work)" size="80" /> - </td> - <td - tal:content="structure python:here.ZSQLSelectionFromCRList( - 'publish', - yes_no_list, - boxType='radio', - checked=found2.current_work_p)" /> - </tr> - </table> - <input type="submit" value="submit"/> - - <h3>Research interests</h3> - <p>This entry isn't displayed anymore, please describe your research interests in your <a href="editProfile">Profile</a></p> - - </form> - <h3>Projects</h3> - <p>Projects cannot be edited from this pages. Entries are automatically generated.</p> -</tal:block> -</body> -</html>
--- a/zpt/editMPIWGStaff_main.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html metal:define-macro="page"> -<head> - <tal:block tal:define="global person python:here.ZSQLInlineSearchU(_table='personal_www',key=here.getKeyUTF8())"/> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> - <link rel="stylesheet" href="editstaff.css" type="text/css"/> - <metal:x metal:define-slot="javascript"/> -</head> -<body onload="kupu = startKupu();"> - <h2 class="title">Edit homepage of <span tal:replace="python:here.decode(person.first_name)"/> <span tal:replace="python:here.decode(person.last_name)"/></h2> - <metal:block metal:define-slot="navsel"/> - <p>Please contact the support group <a href="mailto:support@mpiwg-berlin.mpg.de">support@mpiwg-berlin.mpg.de (Tel. 247)</a>, if you need any help.</p> - - <div class="mainnav"> - <span tal:attributes="class python:here.getPathStyle('maindata', menusel, 'mainmenu')"><a href="editMainData">Contact</a></span> - <span tal:attributes="class python:here.getPathStyle('cv', menusel, 'mainmenu')"><a href="editProfile">Profile</a></span> - <span tal:attributes="class python:here.getPathStyle('publications', menusel, 'mainmenu')"><a href="editPublications">Publications</a></span> - <span tal:attributes="class python:here.getPathStyle('research', menusel, 'mainmenu')"><a href="edit">Research: short entry</a></span> - <span tal:attributes="class python:here.getPathStyle('image', menusel, 'mainmenu')"><a href="editImage">Photo</a></span> - <span tal:attributes="class python:here.getPathStyle('downloads', menusel, 'mainmenu')"><a href="editDownloads">Edit -downloads</a></span> - <!-- <span tal:attributes="class python:here.getPathStyle('cv', menusel, 'mainmenu')"><a href="editCV">Curriculum Vitae</a></span>--> - - <!-- <span tal:attributes="class python:here.getPathStyle('awards', menusel, 'mainmenu')"><a href="editAwards">Awards</a></span>--> - <span tal:attributes="class python:here.getPathStyle('talks', menusel, 'mainmenu')"><a href="editTalks">Talks</a></span> - <span tal:attributes="class python:here.getPathStyle('teaching', menusel, 'mainmenu')"><a href="editTeaching">Teaching</a></span> - <span tal:attributes="class python:here.getPathStyle('additionalLink', menusel, 'mainmenu')"><a href="editAdditionalLinks">Additional links</a></span> - - - - <span class="mainmenu"><a tal:attributes="href python:'http://www.mpiwg-berlin.mpg.de/en/staff/members/'+here.getId()+'/index_html'" target="_blank">View</a></span> - </div> - <div class="content"> - <tal:block metal:define-slot="body"/> - </div> -</body> -</html>
--- a/zpt/editMainData.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,103 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html metal:use-macro="here/mainEditFile/macros/page"> -<body> - <tal:block metal:fill-slot="navsel" tal:define="global menusel string:maindata"/> - <tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'; - global person python:here.ZSQLInlineSearchU(_table='personal_www',key=here.getKeyUTF8())" - > - <form action="editMainData" method="get"> - <table> - <tr> - <td><b>Name</b></td> - <td><input size="30" tal:attributes="value python:here.unicodify(person.last_name)" name="last_name"></td> - </tr> - <tr> - <td><b>First Name</b></td> - <td><input size="30" tal:attributes="value python:here.decode(person.first_name)" name="first_name"></td> - </tr> - <tr> - <td><b>Academic degrees and position</b></td> - <td><textarea tal:content="python:here.decode(person.titles_new)" name="titles_new" cols="60" rows="3"/></td> - </tr> - <tr> - <td><b>Status</b></td> - <td tal:content="python:here.decode(person.status)"/> - </tr> - <tr> - <td><b>Department</b></td> - <td tal:content="python:here.decode(person.department)"/> - </tr> - <tr> - <td><b>Stay</b></td> - <td><span tal:content="python:here.decode(person.date_from)"/> to - <span tal:content="python:here.decode(person.date_to)"/> - </td> - <tr> - <td><b>Funded by (external funding)</b></td> - <td><input size="30" tal:attributes="value python:here.decode(person.funded_by)" name="funded_by"></td> - </tr> - -<!-- <tr> - <td><b>Home institution</b></td> - <td><input size="30" tal:attributes="value python:here.decode(person.home_inst)" name="home_inst"></td> - </tr>--> - </table> - <table> - <tr><th></th><th></th><th align="left">show</th></tr> - <tr> - <td><b>email (MPIWG)</b></td> - <td tal:content="python:here.decode(person.e_mail)"/> - <td valign="top" tal:content="structure python:here.ZSQLSelectionFromCRList( - 'e_mail_p', - yes_no_list, - boxType='radio', - checked=person.e_mail_p)"/> - </tr> - <tr> - <td><b>email (additional)</b></td> - <td><input size="30" name="e_mail2" tal:attributes="value python:here.decode(person.e_mail2)"></td> - <td valign="top" tal:content="structure python:here.ZSQLSelectionFromCRList( - 'e_mail2_p', - yes_no_list, - boxType='radio', - checked=person.e_mail2_p)"/> - </tr> - <tr> - <td><b>Room</b></td> - <td><input size="30" name="room_no" tal:attributes="value python:here.decode(person.room_no)"></td> - <td>(never published)</td> - </tr> - -<!-- <tr> - <td><b>Private homepage</b></td> - <td><input size="30" name="private_homepage" tal:attributes="value python:here.decode(person.private_homepage)"></td> - <td> </td> - </tr> - --> - <tr> - <td><b>Telephone</b></td> - <td><input size="30" name="telefon" tal:attributes="value python:here.decode(person.telefon)"></td> - <td valign="top" tal:content="structure python:here.ZSQLSelectionFromCRList( - 'telefon_p', - yes_no_list, - boxType='radio', - checked=person.telefon_p)"/> - </tr> - <tr> - <td><b>Fax</b></td> - <td><input size="30" name="fax" tal:attributes="value python:here.decode(person.fax)"></td> - <td valign="top" tal:content="structure python:here.ZSQLSelectionFromCRList( - 'fax_p', - yes_no_list, - boxType='radio', - checked=person.fax_p)"/> - </tr> - </table> - <input type="submit" value="submit"> - </form> - <p>To add references to your homepage at other institutions plese use <a href="editAdditionalLinks">the additional links tab</a></p> - </tal:block> - </body> - </html> - \ No newline at end of file
--- a/zpt/editProfile.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,83 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html metal:use-macro="here/mainEditFile/macros/page"> -<metal:x metal:fill-slot="javascript"> -<metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" use-macro="here/kupuEditor/kupumacros/macros/head"> - <metal:macros fill-slot="bootstrap-editor"> - <script type="text/javascript" src="/kupuEditor/kupuinit_form.js"> </script> - <script type="text/javascript" src="/kupuEditor/kupustart_form.js"> </script> - </metal:macros> -</metal:macros> -</metal:x> -<body> - <tal:block metal:fill-slot="navsel" tal:define="global menusel string:cv"/> - -<tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'"> -<form action="editProfile" method="post"> -<input type="hidden" name="oid" tal:attributes="value person/oid"> -<tal:x condition="python:(person.profile is None) | (person.profile=='')"> -<p>You haven't edited your profile yet, this entry is generated automatically from you old CV entry, your current work entry, and research interests entry from you old profile! </p> - -</tal:x> - - - - <div><span class="kupu-tb-buttongroup"> - <button type="button" id="kupu-preview-button" title="preview: alt-p" accesskey="p">Preview</button> - </span> - <span class="kupu-tb-buttongroup"> - <button type="button" id="kupu-save-button" title="save: alt-s" accesskey="s">Publish</button> - </span> - </div> - <metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" use-macro="here/kupuEditor/kupumacros/macros/xmlconfig"> - <metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" fill-slot="dst">saveEditedContent</metal:macros> - </metal:macros> - <metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" use-macro="here/kupuEditor/kupumacros/macros/fulleditor"> - - <!-- <metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" fill-slot="tb_select_styles"> - <span id="kupu-tb-styles"/> - </metal:macros> - <metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" fill-slot="buttongroup_subsuper"> - <span id="kupu-bg-subsuper"/> - <span id="kupu-subscript-button"/> - <span id="kupu-superscript-button"/> - </metal:macros> - - <metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" fill-slot="buttongroup_justify"> - <span id="kupu-justifyleft-button"/> - <span id="kupu-justifycenter-button"/> - <span id="kupu-justifyright-button"/> - </metal:macros> - <metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" fill-slot="buttongroup_list"> - <span id="kupu-list-ol-addbutton"/> - <span id="kupu-list-ul-addbutton"/> - - </metal:macros> - <metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" fill-slot="buttongroup_indent"/> - --> - - <metal:macros fill-slot="toolbox_properties"> - <div class="kupu-toolbox" id="kupu-toolbox-properties"><input type="hidden" class="wide" id="kupu-properties-title" /> <input - type="hidden" class="wide" id="kupu-properties-description" /></div> - </metal:macros> - <metal:macros fill-slot="toolbox_tables"> - <div class="kupu-toolbox" id="kupu-toolbox-properties"><input type="hidden" class="wide" id="kupu-table-classchooser" /> <input - type="hidden" class="wide" id="kupu-table-newrows" /> <input type="hidden" class="wide" id="kupu-table-newcols" /></div> - </metal:macros> - <metal:macros fill-slot="editorframe"> - - <iframe class="kupu-editor-iframe" id="kupu-editor" frameborder="0" scrolling="auto" src="fulldoc" - tal:attributes="src python:here.REQUEST['URL1']+'/getProfile?time='+here.REQUEST.get('time','0')"> - </iframe> - - </metal:macros> - </metal:macros> - - - </form> - - -<br/> -</tal:block> -</body> -</html>
--- a/zpt/editPublications.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,232 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html metal:use-macro="here/mainEditFile/macros/page"> -<body> -<tal:block metal:fill-slot="navsel" tal:define="global menusel string:publications" /> - -<tal:block metal:fill-slot="body" - tal:define="yes_no_list python:'yes\nno'; sortingMode python:'year\npriority'"> - - - - - <h2>Publication list</h2> - <p>(You can not change entries from the <i>Institutsbibliographie</i> here)</p> - <form action="changeSortingMode" method="post"> - <p>Sort by:</p> - <table> - <td valign="top" - tal:content="structure python:here.ZSQLSelectionFromCRList( - 'sortingMode', - sortingMode, - boxType='radio', - checked=here.getSortingMode())" /> - <td><input type="submit" value="change"></td> - </table> - </form> - - <form action="changePublications" method="post"> - <input type="hidden" name="key_main" tal:attributes="value python:here.decode(person.key)"> - <input type="hidden" name="main_fields" - value="publications__title,publications__publish"> - - <tal:block - tal:define="books python:here.ZSQLSimpleSearch('select *,oid from publications where lower(key_main)=\'%s\' and lower(referencetype)in (\'book\') and publish=\'yes\' order by priority'%here.getKey().lower()); - edited_books python:here.ZSQLSimpleSearch('select *,oid from publications where lower(key_main)=\'%s\' and lower(referencetype)in (\'edited book\') and publish=\'yes\' order by priority'%here.getKey().lower()); - not_displayed python:here.ZSQLSimpleSearch('select *,oid from publications where lower(key_main)=\'%s\' and publish=\'no\' order by priority'%here.getKey().lower()); - articles python:here.ZSQLSimpleSearch('select *,oid from publications where lower(key_main)=\'%s\' and lower(referencetype) not in (\'book\',\'edited book\') and publish=\'yes\' order by priority'%here.getKey().lower())"> - - <tal:block tal:condition="books"> - <h3>Books</h3> - <table> - <tr> - <th /> - <th /> - <th>Priority</th> - <th align="left" width="100">Show</th> - </tr> - <tal:x tal:repeat="found python:here.sortBibliography(books)"> - <tr> - <td><a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')" - tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a> - <a - tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td> - <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td> - <td valign="top"><input - tal:attributes="name python:'publications__priority__'+str(found.oid); - value python:here.integer(found.priority)" - size="3" /></td> - <td valign="top" - tal:content="structure python:here.ZSQLSelectionFromCRList( - 'publications__publish__'+str(found.oid), - yes_no_list, - boxType='radio', - checked=found.publish)" /> - - </tr> - <tr> - <td> </td> - <td valign="top"><em>Link:</em><input - tal:attributes="name python:'publications__link__'+str(found.oid); - value python:getattr(found,'link','')" - size="150" /></td> - <td> </td> - <td> </td> - </tr> - </tal:x> - </table> - </tal:block> - - <tal:block tal:condition="edited_books"> - <h3>Edited Books</h3> - <table> - <tr> - <th/> - <th/> - <th>Priority</th> - <th align="left" width="100">Show</th> - </tr> - <tal:x tal:repeat="found python:here.sortBibliography(edited_books)"> - <tr> - <td><a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')" - tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a> - <a - tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td> - <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td> - <td valign="top"><input - tal:attributes="name python:'publications__priority__'+str(found.oid); - value python:here.integer(found.priority)" - size="3" /></td> - <td valign="top" - tal:content="structure python:here.ZSQLSelectionFromCRList( - 'publications__publish__'+str(found.oid), - yes_no_list, - boxType='radio', - checked=found.publish)" /> - </tr> - <tr> - <td> </td> - <td valign="top"><em>Link:</em><input - tal:attributes="name python:'publications__link__'+str(found.oid); - value python:getattr(found,'link','')" - size="150" /></td> - <td> </td> - <td> </td> - </tr> - </tal:x> - </table> - </tal:block> - - <tal:block tal:condition="articles"> - <h3>Articles and Chapters</h3> - <table> - <tr> - <th/> - <th/> - <th>Priority</th> - <th align="left" width="100">Show</th> - </tr> - <tal:x tal:repeat="found python:here.sortBibliography(articles)"> - <tr> - <td><a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')" - tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a> - <a - tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td> - <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td> - <td valign="top"><input - tal:attributes="name python:'publications__priority__'+str(found.oid); - value python:here.integer(found.priority)" - size="3" /></td> - <td valign="top" - tal:content="structure python:here.ZSQLSelectionFromCRList( - 'publications__publish__'+str(found.oid), - yes_no_list, - boxType='radio', - checked=found.publish)" /> - </tr> - <tr> - <td> </td> - <td valign="top"><em>Link:</em><input - tal:attributes="name python:'publications__link__'+str(found.oid); - value python:getattr(found,'link','')" - size="150" /></td> - <td> </td> - <td> </td> - </tr> - </tal:x> - </table> - </tal:block> - - <tal:block tal:condition="not_displayed"> - <h3>Currently not shown</h3> - <table> - <tr> - <th /> - <th /> - <th>Priority</th> - <th align="left" width="100">Show</th> - </tr> - <tal:x tal:repeat="found python:here.sortBibliography(not_displayed)"> - <tr> - <td><a - tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td> - <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td> - <td valign="top"><input - tal:attributes="name python:'publications__priority__'+str(found.oid); - value python:here.integer(found.priority)" - size="3" /></td> - <td valign="top" - tal:content="structure python:here.ZSQLSelectionFromCRList( - 'publications__publish__'+str(found.oid), - yes_no_list, - boxType='radio', - checked=found.publish)" /> - </tr> - <tr> - <td> </td> - <td valign="top"><em>Link:</em><input - tal:attributes="name python:'publications__link__'+str(found.oid); - value python:getattr(found,'link','')" - size="150" /></td> - <td> </td> - <td> </td> - </tr> - </tal:x> - </table> - </tal:block> - - </tal:block> - <input type="submit" value="change"> - </form> - -<br/> <br/> <br/> - - <form action="changePublicationSelectionMode" method="post"> - - <h3>Select the 5 publications to be displayed in the first part of your homepage</h3> - <p>Choose the first 5 of my list following the order of</p> - <table tal:define="sm python:here.getPublicationSelectionMode()"> - <tr tal:condition="python:sm=='priority'"> - <td><span><input type="radio" name="publicationSelectionMode" value="year" />year</span> - <span><input checked type="radio" name="publicationSelectionMode" value="priority" />priority</span></td> - <td><input type="submit" value="change"></td> - </tr> - <tr tal:condition="not:python:sm=='priority'"> - <td><span><input checked type="radio" name="publicationSelectionMode" value="year" /> - year</span> <span><input type="radio" name="publicationSelectionMode" - value="priority" /> priority</span></td> - <td><input type="submit" value="change"></td> - </tr> - </table> - </form> - - <br/><br/> - <h3><a href="addPublicationsBib">Add Publications to your list</a></h3> - <!-- <h4> <a href="addPublications">Add -entries from the Institutsbibliographie</a></h4> - <h4> <a href="newBibliography">Add an entry that cannot be found in the -Institutsbibliographie</a></h4> --> - -</tal:block> -</body> -</html>
--- a/zpt/editTalks.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,66 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html metal:use-macro="here/mainEditFile/macros/page"> -<body> -<tal:block metal:fill-slot="navsel" tal:define="global menusel string:talks" /> - -<tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'"> - <form action="changeResearch" method="post"> - <input type="hidden" name="key_main" tal:attributes="value python:here.decode(person.key)"> - <input type="hidden" name="main_fields" value="talks__title"> - <table tal:define="founds2 python:here.ZSQLInlineSearch(_table='talks',key_main=person.key)"> - <tr> - <th>Date</th> - <th>Title/Place/Link</th> - <th>Priority</th> - <th>Show</th> - </tr> - <tr class="fliesstext" tal:repeat="found2 python:here.sortPriority(founds2)"> - <td valign="top"> - <input tal:attributes="name python:'talks__date__'+str(found2.oid); - value found2/date" size="10" /> - </td> - <td> - <input tal:attributes="name python:'talks__title__'+str(found2.oid); - value python:here.decode(found2.title)" size="80" /><br> - <input tal:attributes="name python:'talks__place__'+str(found2.oid); - value python:here.decode(found2.place)" size="80" /><br> - <input tal:attributes="name python:'talks__link__'+str(found2.oid); - value python:here.decode(found2.link)" size="80" /> - </td> - <td valign="top"> - <input tal:attributes="name python:'talks__priority__'+str(found2.oid); value found2/priority" size="3" /> - </td> - <td valign="top" - tal:content="structure python:here.ZSQLSelectionFromCRList( - 'talks__published__'+str(found2.oid), - yes_no_list, - boxType='radio', - checked=found2.published)" /> - <td> - <a tal:attributes="href python:'deleteField?table=talks&oid=%s'%found2.oid">delete</a> - </td> - </tr> - <tr colspan="4"> - <td>Add new</td> - </tr> - <tr> - <td valign="top"><input tal:attributes="name python:'talks__date__new'" size="10" /></td> - <td><input tal:attributes="name python:'talks__title__new'" size="80"> <br> - <input tal:attributes="name python:'talks__place__new'" size="80" /> <br> - <input tal:attributes="name python:'talks__link__new'" size="80" /></td> - <td><input tal:attributes="name python:'talks__priority__new'" size="3"></td> - <td valign="top" - tal:content="structure python:here.ZSQLSelectionFromCRList( - 'talks__published__new', - yes_no_list, - boxType='radio', - checked='yes')" /> - </tr> - </table> - <input type="submit" value="submit"> - - </form> -</tal:block> -</body> -</html>
--- a/zpt/editTeaching.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,63 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html metal:use-macro="here/mainEditFile/macros/page"> -<body> -<tal:block metal:fill-slot="navsel" tal:define="global menusel string:teaching" /> - -<tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'"> - <form action="changeResearch" method="post"> - <input type="hidden" name="key_main" tal:attributes="value python:here.decode(person.key)"> - <input type="hidden" name="main_fields" value="teaching__title"> - <table tal:define="founds2 python:here.ZSQLInlineSearch(_table='teaching',key_main=person.key)"> - <tr> - <th>Date</th> - <th>Title/Place/Link</th> - <th>Priority</th> - <th>Show</th> - </tr> - <tr class="fliesstext" tal:repeat="found2 python:here.sortPriority(founds2)"> - <td valign="top"><input tal:attributes="name python:'teaching__date__'+str(found2.oid); - value python:here.decode(found2.date)" size="10" /> - </td> - - <td><input tal:attributes="name python:'teaching__title__'+str(found2.oid); - value python:here.decode(found2.title)" size="80" /> <br> - <input tal:attributes="name python:'teaching__place__'+str(found2.oid); - value python:here.decode(found2.place)" size="80" /> <br> - <input tal:attributes="name python:'teaching__link__'+str(found2.oid); - value python:here.decode(found2.link)" size="80" /></td> - - <td valign="top"><input tal:attributes="name python:'teaching__priority__'+str(found2.oid); - value found2/priority" - size="3" /></td> - <td valign="top" - tal:content="structure python:here.ZSQLSelectionFromCRList( - 'teaching__published__'+str(found2.oid), - yes_no_list, - boxType='radio', - checked=found2.published)" /> - <td><a tal:attributes="href python:'deleteField?table=teaching&oid=%s'%found2.oid">delete</a></td> - </tr> - <tr colspan="4"> - <td>Add new</td> - </tr> - <tr> - <td valign="top"><input tal:attributes="name python:'teaching__date__new'" size="10" /></td> - <td><input tal:attributes="name python:'teaching__title__new'" size="80"> <br> - <input tal:attributes="name python:'teaching__place__new'" size="80" /> <br> - <input tal:attributes="name python:'teaching__link__new'" size="80" /></td> - <td><input tal:attributes="name python:'teaching__priority__new'" size="3"></td> - <td valign="top" - tal:content="structure python:here.ZSQLSelectionFromCRList( - 'teaching__published__new', - yes_no_list, - boxType='radio', - checked='yes')" /> - </tr> - </table> - <input type="submit" value="submit"> - - </form> -</tal:block> -</body> -</html>
--- a/zpt/edit_MPIWGDisciplinesThemes.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -<html> -<body> -<h2>Edit Disciplines and themes: <span tal:replace="python:here.WEB_title[0]"/></h2> -<h3>Disciplines</h3> -<form method="post" action="editMPIWGDisciplinesThemes"> -<tal:block tal:replace="python:here.getContent('xdata_09')"/> - -<tal:block tal:repeat="discipline here/getDisciplineList"> - <tal:block tal:condition="python:here.isChecked(discipline,here.getContent('xdata_09'))"> - <input tal:attributes="value discipline" name="disciplines" type="checkbox" checked><span tal:replace="discipline"/> - </tal:block> - <tal:block tal:condition="not:python:here.isChecked(discipline,here.getContent('xdata_09'))"> - <input tal:attributes="value discipline" name="disciplines" type="checkbox"><span tal:replace="discipline"/> - </tal:block> -</tal:block> -<br> -<h3>Themes</h3> -<tal:block tal:repeat="theme here/getThemeList"> - <tal:block tal:condition="python:here.isChecked(theme,here.getContent('xdata_10'))"> - <input tal:attributes="value theme" name="themes" type="checkbox" checked><span tal:replace="theme"/> - </tal:block> - <tal:block tal:condition="not:python:here.isChecked(theme,here.getContent('xdata_10'))"> - <input tal:attributes="value theme" name="themes" type="checkbox"><span tal:replace="theme"/> - </tal:block><br> -</tal:block> -<br> -<input type="submit" value="change"> -</form> -</body> -</html>
--- a/zpt/edit_MPIWGDisciplinesThemesNeu.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html metal:use-macro="here/edit_MPIWGProject_main/macros/page"> -<head> -</head> -<body> -<tal:block metal:fill-slot="navsel" tal:define="global menusel string:themes" /> -<tal:block metal:fill-slot="body"> - <h3>Disciplines</h3> - <form method="post" action="editMPIWGDisciplinesThemes"> - <input type="hidden" name="fromEdit" value="yes" /> - <ul class="plain" tal:repeat="discipline here/getDisciplineList"> - <li tal:condition="python:here.isChecked(discipline,here.getContent('xdata_09'))"> - <input tal:attributes="value discipline" name="disciplines" type="checkbox" checked> - <span tal:replace="discipline" /> - </li> - <li tal:condition="not:python:here.isChecked(discipline,here.getContent('xdata_09'))"> - <input tal:attributes="value discipline" name="disciplines" type="checkbox"> - <span tal:replace="discipline" /> - </li> - </ul> - <br> - <h3>Themes</h3> - <ul class="plain" tal:repeat="theme here/getThemeList"> - <li tal:condition="python:here.isChecked(theme,here.getContent('xdata_10'))"> - <input tal:attributes="value theme" name="themes" type="checkbox" checked> - <span tal:replace="theme" /> - </li> - <li tal:condition="not:python:here.isChecked(theme,here.getContent('xdata_10'))"> - <input tal:attributes="value theme" name="themes" type="checkbox"> - <span tal:replace="theme" /> - </li> - </ul> - <p><input type="submit" value="change"/></p> - </form> -</tal:block> -</body> -</html>
--- a/zpt/edit_MPIWGKeywords.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,44 +0,0 @@ -<html> -<body> -<form method="POST" action="editMPIWGProject"> -<h2>Basis Information</h2> -<table> -<tr> -<td>Project Title</td> -<td><input tal:attributes="name python:'WEB_title'; value python:here.getContent('WEB_title')" size=100/></td> -</tr> -<tal:block tal:repeat="field here/getDataFields"> -<tr> -<td tal:content="field"/> -<td> <input tal:attributes="name field; value python:here.getContent(field)" size=100/></td> -</tr> -<tr tal:condition="python:here.isCheckField(field)"> -<td colspan=2 height="20"> -<tal:block tal:define="checkList python:here.giveCheckList(here,field)"> -<tal:block repeat="item checkList/keys"> -<span tal:replace="item"/>: -<tal:block tal:condition="python:len(checkList[item])>0"> -found -</tal:block> -<tal:block tal:condition="not:python:len(checkList[item])>0"> -<font color="#ff0000">not found</font> -</tal:block> - - -<!--<input tal:repeat="prop python:checkList[item]" - type="radio" - tal:attributes="name python:'val_%s'%field; value python:prop[0].getId()" - tal:content="python:prop[1]"/>--> -</tal:block> -<br> -</tal:block> -</td> -</tr> -</tal:block> -</table> - - -<input type="submit"> -</form> -</body> -</html>
--- a/zpt/edit_MPIWGRelatedPublications.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -<html> -<head> -<meta http-equiv="content-type" content="text/html; charset=utf-8"> -</head> -<body> -<form method="POST" action="editMPIWGProject"> - -<h3>Edit Related Publications</h3> - -<span tal:replace="structure python:here.Epoz('WEB_related_pub', data=here.getContent('WEB_related_pub'), toolbox='/toolbox', lang='en', path='', widget='', style='width: 600px; height: 500px; border: 1px solid #000000;', button='background-color: #EFEFEF; border: 1px solid #A0A0A0; cursor: pointer; margin-right: 1px; margin-bottom: 1px;', css='', charset='utf-8')"/> - - - -<input type="submit"> -</form> -</body> -</html>
--- a/zpt/edit_MPIWGStaff.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,25 +0,0 @@ -<html> -<head> - <title>The title</title> -</head> -<body> - -<div> - -<h1>Edit</h1> -<h2>!Please use this form only if you really know what you do, for the change of names the -../edit methods should be used!</h2> -<form method="post" action="changeMPIWGStaff"> - -<p>LastName: -<input name="lastName" tal:attributes="value here/lastName"/></p> -<p>FirstName: -<input name="firstName" tal:attributes="value here/firstName"/></p> - -<p>Key: -<input name="key" tal:attributes="value here/getKey"/></p> -<input type="submit"> -</form> -</div> -</body> -</html>
--- a/zpt/edit_imageForm.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html metal:use-macro="here/edit_MPIWGProject_main/macros/page"> -<head> -</head> -<body> -<tal:block metal:fill-slot="navsel" tal:define="global menusel string:images" /> -<tal:block metal:fill-slot="body"> - <h3>Edit Image</h3> - <form action="editImage" method="post" enctype="multipart/form-data"> - <table> - <tr><th>Image</th><th>Caption</th></tr> - <tr> - <td><div tal:content="structure python:here.tag(scale=250.0 / here.height)"/></td> - <td><textarea tal:content="structure python:getattr(here,'caption','')" name="caption" rows="3" cols="60"></textarea></td> - </tr> - <tr> - <td><p>Upload new image:<input type="file" name="file" len="50"/></p></td> - </tr> - </table> - <p> - <input type="submit" value="submit"/> - </p> - </form> - - <h3><a href="../manageImages">Back to image list</a></h3> -</tal:block> -</body> -</html>
--- a/zpt/harvest_main.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,56 +0,0 @@ -<html> - -<body> - - <tal:block tal:replace="structure here/versionHeader"/> - <h1 tal:content="structure python:here.getContent('WEB_project_header')">History of Scientific Objectivity, 18th-19th Cs</h1> - - <p><i tal:content="structure python:here.getContent('xdata_01')">Names of responsible persons </i></p> - <p tal:condition="not:python:here.getContent('xdata_08')==''">Other involved scholars: <i tal:content="structure python:here.getContent('xdata_08')">Scholars </i></p> - <p tal:condition="not:python:here.getContent('xdata_12')==''">Cooperation Partners: <i tal:content="structure python:here.getContent('xdata_12')">Partners </i></p> - <br/> - - <div class="indent" tal:content="structure python:here.getContent('WEB_project_description')"> - <p> - In the middle decades of the nineteenth century objectivity established itself as a (if not the) cardinal epistemic virtue in the sciences. From astronomy to paleontology to physiology, new ways of making images, assessing error, and designing experiments were enlisted in the service of objectivity. - </p> - <p> - This triumph of objectivity over rival epistemic virtues like truth and certainty is all the more remarkable because objectivity had emerged only decades before. Only circa 1850 did the modern sense of "objectivity" make its way into dictionaries in the major European languages. The ideals and practices associated with objectivity in the sciences emerge at roughly the same time. - </p> - <p> - The story of how objectivity became so central to science is one of actions as well as words. Objectivity changed how science was done in concrete, specific ways. Photography, self-registering instruments, the method of least squares, and machines for measuring the personal equations of observers were all examples of these new scientific practices of objectivity - </p> - </div> - -<tal:comment> - <tal:block tal:condition="not:python:here.getContent('xdata_11')==''"> - <h2>Related items at the digital research library</h2> - <p tal:content="structure python:here.getContent('xdata_11')"> - Item 1 - <br> - Item 2 - <br> - Item 3 - <br> - </p> - </tal:block> - - <tal:block tal:condition="not:python:here.getContent('WEB_related_pub')==''"> - <h2> Related Publications</h2> - - <p tal:define="pub python:here.getContent('WEB_related_pub')" tal:content="structure pub"> - "Die Kultur der wissenschaftlichen Objektivität," in: Michael Hagner, ed., Ansichten der Wissenschaftsgeschichte (Frankfurt am Main: Fischer Taschenbuchverlag GmbH, 2001): 137-158. - <br> - (with Peter Galison), "The Image of Objectivity," Representations no. 40 (Fall 1992): 81-128. Translated into German (2002) - <br> - "Objectivity and the Escape from Perspective," Social Studies of Science 22(1992): 597-618 - </p> - </tal:block> - - <tal:block tal:condition="not:python:here.getContent('xdata_13')==''"> - <h2>Funding Institutions</h2> - <p tal:content="structure python:here.getContent('xdata_13')">Funding </p> - </tal:block> -</tal:comment> -</body> -</html>
--- a/zpt/harvest_members_main.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,106 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" - "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> -<html> - <body> - -<div class="haupttext"> - <p> </p> - <tal:block tal:define="found python:here.ZSQLInlineSearchU(_table='personal_www',key=here.getKeyUTF8(),publish_the_data='yes')"> - <tal:block tal:condition="found"> - - <tal:block tal:define="founds2 python:here.ZSQLInlineSearch(_table='current_work',id_main=found.id,publish='yes')" tal:condition="founds2"> - <h1>Current work</h1> - - <p class="fliesstext" tal:repeat="found2 founds2"> - <span tal:replace="found2/current"/> - </p> - - </tal:block> - - <tal:block tal:define="founds2 python:here.ZSQLInlineSearch(_table='research_interest',id_main=found.id,published='yes')" tal:condition="founds2"> - <h1>Research interests</h1> - <ul class="liste"> - <li tal:repeat="found2 founds2"> - <span tal:replace="found2/interest"/> - </li> - </ul> - </tal:block> - - -<!-- Curriculum vitae --> - <tal:block tal:condition="not:python:here.ZSQLisEmpty(found.cv)"> - <h1>Curriculum vitae</h1> - <p class="fliesstext" tal:content="structure python:here.formatAscii(found.cv)"> [FMP-Field: CV] </p> - </tal:block> - -<!-- Awards --> - <tal:block tal:condition="not:python:here.ZSQLisEmpty(found.awards)"> - <h1>Awards</h1> - <p class="fliesstext" tal:content="structure python:here.formatAscii(found.awards)"> [FMP-Field: awards, break] </p> - </tal:block> - -<!-- Selected publications --> - <tal:block tal:condition="here/usePublicationsSpecial|python:False"> - <h1>Selected publications</h1> - <ul class="liste"> - <tal:block tal:replace="structure here/specialPublicationsField"/> - <li> - <a tal:attributes="href python:'publications_full?-table=personal_www&id='+found.id">more</a> - </li> - </ul> - </tal:block> - - <tal:block tal:condition="not:here/usePublicationsSpecial|python:False"> - <tal:block tal:condition="python:here.ZSQLInlineSearch(storename='search3',_table='publications',id_main=found.id,_max=10000,publish='yes')"> - <h1>Selected publications</h1> - - <ul class="liste"> - <li tal:repeat="found3 python:here.sortBibliography(here.ZSQLInlineSearch(storename='search3',_table='publications',id_main=found.id,_max=10000,publish='yes'),here.getPublicationSelectionMode())"> - <span tal:replace="structure python:here.en.formatBibliography(here,found3)"/> - </li> - <li tal:condition="python:here.ZSQLFoundCount(storename='search3')>5"> - <a tal:attributes="href python:'publications_full?-table=personal_www&id='+found.id">more</a> - </li> - </ul> - </tal:block> - </tal:block> -<!-- Talks --> - <tal:block tal:define="founds4 python:here.ZSQLInlineSearch(storename='search4',_table='talks',id_main=found.id,_max=10000,_sort='priority',published='yes')" tal:condition="founds4"> - <h1>Talks and presentations</h1> - <ul class="liste"> - <li tal:repeat="found4 python:here.sortPriority(founds4)"> - <span tal:condition="not:python:here.ZSQLisEmpty(found4.link)"> - <a tal:attributes="href found4/link"><span tal:replace="found4/date"/> – <span tal:replace="found4/place"/> – <span tal:replace="found4/title"/></a> - </span> - <span tal:condition="python:here.ZSQLisEmpty(found4.link)"> - <span tal:replace="found4/date"/> – <span tal:replace="found4/place"/> – <span tal:replace="found4/title"/> - </span> - </li> - <li tal:condition="python:here.ZSQLFoundCount(storename='search4')>5"> - <a tal:attributes="href python:'talks_full?-table=personal_www&id='+found.id">more</a> - </li> - </ul> - </tal:block> - -<!-- >Teaching activities --> - <tal:block tal:define="founds5 python:here.ZSQLInlineSearch(storename='search5',_table='teaching',id_main=found.id,_max=1000,_sort='priority')" tal:condition="founds5"> - <h1>Teaching activities</h1> - <ul class="liste"> - <li tal:repeat="found5 python:here.sortPriority(founds5)"> - <span tal:condition="not:python:here.ZSQLisEmpty(found5.link)"> - <a tal:attributes="href found5/link"><span tal:replace="found5/date"/> – <span tal:replace="found5/place"/> – <span tal:replace="found5/title"/> - </a> - </span> - <span tal:condition="python:here.ZSQLisEmpty(found5.link)"> - <span tal:replace="found5/date"/> – <span tal:replace="found5/place"/> – <span tal:replace="found5/title"/> - </span> - </li> - <li tal:condition="python:here.ZSQLFoundCount(storename='search5')>5" class="p_indent"><a tal:attributes="href python:'teaching_full?-table=personal_www&id='+found.id">more</a> - </li> - </ul> - </tal:block> - </tal:block> - </tal:block> -</div> - </body> -</html>
--- a/zpt/members_main.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,100 +0,0 @@ -<html metal:use-macro="here/main_template/macros/page"> -<head> -<title tal:content="template/title">The title</title> -</head> -<body> - -<tal:block metal:fill-slot="body" tal:define="found python:here.ZSQLInlineSearch(_table='personal_www',username=here.getId())[0]"> -<table class="center"> - <td valign="top" width="610"> - - <div id="NameTitle" style="position:absolute; width:365px; height:37px; z-index:3; left: 161px; top: 63px; visibility: visible"> - <h2><span tal:replace="found/title"/> <span tal:replace="found/vorname"/> <span tal:replace="found/name"/></h2> - </div> - <div id="Position" style="position:absolute; width:365px; height:30px; z-index:5; left: 161px; top: 115px; visibility: visible"> - <h3><span tal:replace="found/position"/></h3> - </div> - <div id="StayAtMpiwg" style="position:absolute; width:365px; height:32px; z-index:6; left: 161px; top: 158px; visibility: visible"> - <p class="p_noindent">Residence:<br> - <span tal:replace="found/stay_at_mpiwg"/></p> - </div> - <div id="Adress" style="position:absolute; width:365px; height:90px; z-index:4; left: 161px; top: 210px"> - <p class="p_noindent"> <br> - <br> - <br> - </p> - </div> -<!-- middle right (PIM) --> - <div id="ContactsImg" style="position:absolute; width:355px; height:114px; z-index:1; left: 286px; top: 220px; visibility: visible;"> - <table width="400" border="0"> - <tr> - <td rowspan="4" width="48"><img src="images/EmailResponseOrg.gif" width="40" height="49" align="middle"><img src="bilder/leer.gif" width="1" height="100" align="middle"> - </td> - <tal:block tal:condition="python:found.telefon_p=='yes'"> - <td width="84" height="25"> - <p>tel.:</p> - </td> - <td width="180" height="25"> - <p class="p_noindent" tal:content="found/telefon">[FMP-Field: telefon]</p> - </td> - </tal:block> - </tr> - <tr> - <tal:block tal:condition="python:found.e_mail_p=='yes'"> - <td width="84" height="25"> - <p>email:</p> - </td> - <td width="180" height="25"> - <p class="p_noindent"> <a tal:attributes="href python:'mailto:'+found.e_mail" tal:content="found/e_mail">[FMP-Field: e_mail]</a></p> - </td> - </tal:block> - </tr> - <tr> - <tal:block tal:condition="python:found.fax_p=='yes'"> - <td width="84" height="25"> - <p>fax:</p> - </td> - <td width="180" height="25"> - <p class="p_noindent" tal:content="found/fax">[FMP-Field: fax]</p> - </td> - </tal:block> - </tr> - <tr> - <tal:block tal:condition="not:python:here.ZSQLisEmpty(found.private_homepage)"> - <td width="84" height="25"> - <p>homepage:</p> - </td> - <td width="180" height="25"> - <p class="p_noindent"><a tal:attributes="href found/private_homepage" target="_new" tal:content="found/private_homepage">[FMP-Field: private_homepage]</a></p> - </td> - </tal:block> - </tr> - </table> -<!-- middle right (PIM) END --> -</div> - <!-- bottom right --> - - <div id="Daten" style="position:absolute; z-index:10; left: 173px; top: 350px; width: 578px; height: 589px; visibility: visible"> - - <div id="Teaching" style="position:relative; width:581px; z-index:14;"> - <img src="images/en/Fieldnames72_NBProjectsMPI.jpg" width="211" height="33"> - <p> </p> - <tal:block tal:repeat="projects python:here.getProjectsOfMember(email=here.getId())"> - <p tal:repeat="project python:projects[1]" class="p_noindent"> <a tal:attributes="href python:project.absolute_url+'/index.html'"><span tal:replace="python:project.WEB_title[0].encode('utf-8')"/></a></p> - <br/> - </tal:block> - <p> - - </p> - </div> - - -</table> -</tal:block> - </body> -</html> -<!-- to be done institutsbiliographie integrieren -images - -published yes or no abfragen --->
--- a/zpt/newBibliographyEntry.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html metal:use-macro="here/mainEditFile/macros/page"> -<body> -<tal:block metal:fill-slot="navsel" tal:define="global menusel string:publications" /> -<tal:block metal:fill-slot="body" tal:define="mapping python:here.metadata.main.meta.bib.generateMappingForType(type=here.REQUEST['_docType'])"> - <h3>Add a separate publication</h3> - <p>Type: <b tal:content="python:here.REQUEST['_docType']"/></p> - <form action="" method="get"> - <input type="hidden" name="-format" value="editPublications"> - <input type="hidden" name="-table" value="bibliography"> - <input type="hidden" name="_docType" tal:attributes="value here/REQUEST/_docType"> - <input type="hidden" name="_addEntry" value="yes"> - <table> - <tal:block tal:repeat="mapElement python:here.metadata.main.meta.bib.getFields()"> - <tr tal:condition="python:mapping[mapElement][1]!=''"> - <td tal:content="python:mapping[mapElement][1].encode('utf-8')"/> - - <td> - <input size="80" tal:attributes="name mapElement"/> - </tr> - </tal:block> - </table> - <input type="submit" value="add"/> - </form> - </tal:block> -</body> -</html> - \ No newline at end of file
--- a/zpt/newBibliographyEntryDocType.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html metal:use-macro="here/mainEditFile/macros/page"> -<body> -<tal:block metal:fill-slot="navsel" tal:define="global menusel string:publications" /> -<tal:block metal:fill-slot="body"> -<h2>Add a separate publication</h2> - -<form method="get" action="newBibliography"> -<span>Type of publication: </span> -<span tal:replace="structure python:here.ZSQLOptionsFromCRList('_docType',here.getDocTypes())"/> -<input type="submit" value="submit"> -</form> -</tal:block> -</body> -</html>
--- a/zpt/no_project.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ -<html metal:use-macro="here/main_template/macros/page"> -<body metal:fill-slot="body"> -<p>This page didn't exit at the selected time!</p> -<p>There is an actual version at:</p> -<p><a tal:attributes="href python:here.REQUEST['URL1']" Tal:content="python:here.REQUEST['URL1']"/></p> -</body> -</html>
--- a/zpt/previewFrame.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ -<html> -<body> -<h2>Preview</h2> -<p> -<a tal:attributes="href python:here.REQUEST['URL1']+'/edit?fromPreview=True'">Edit</a> -<a tal:attributes="href python:here.REQUEST['URL1']+'/saveFromPreview'">Save and Publish</a> -</p> -<iframe tal:attributes="src python:here.REQUEST['URL1']+'/previewTemplate'" width="100%" height="100%"></iframe> -</body> -</html>
--- a/zpt/project/extendedBibliography_template.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,86 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html metal:define-macro="page"> -<metal:x metal:use-macro="here/main_template/macros/page"> - <head> -<tal:block metal:fill-slot="title"> - <title tal:content="string:${here/getNumber} ${here/getProjectTitle}-Bibliography" /> -</tal:block> -<tal:block metal:fill-slot="head" - tal:define="global proBaseUrl string:$root/${secmap/research}/projects; - global dept here/getDepartmentId;" /> - </head> - <body> - - <!-- middle column --> - <div class="center" metal:fill-slot="center"> - <tal:block tal:replace="structure here/versionHeader" /> - <tal:x tal:define="started here/getStartedAt" tal:condition="here/isArchivedProject"> - <p> - (<span tal:condition="started" tal:content="string:$started-" /><span tal:condition="not:started">Completed:</span> <span - tal:content="here/getCompletedAt" />) - </p> - </tal:x> - - <h1 tal:content="here/getProjectTitle">History of Scientific Objectivity, 18th-19th Cs</h1> - <p class="maintext_authors"> - <tal:block tal:repeat="person here/getResponsibleScientistsList"> - <a tal:omit-tag="python:not (person['username'] and here.isActiveMember(person['key']))" - tal:attributes="href string:$root/${secmap/staff}/members/${person/username}" tal:content="person/name"> Name of - responsible person</a> - <tal:block tal:condition="not:repeat/person/end">, </tal:block> - </tal:block> - </p> - - <p class="maintext_more" tal:define="others here/getInvolvedScholars" tal:condition="others"> - Other involved scholars: <span tal:content="structure others">Scholars </span> - </p> - <p class="maintext_more" tal:define="partners here/getCooperationPartners" tal:condition="partners"> - Cooperation Partners: <span tal:content="structure partners">Partners</span> - </p> - - <h2>Extended Bibliography</h2> - - <tal:block - tal:define=" - wgb python:here.getPublicationsOfTypes('workingGroupBook'); - books python:here.getPublicationsOfTypes('book'); - edited_books python:here.getPublicationsOfTypes('edited book'); - articles python:here.getPublicationsOfTypes(['book','edited book'],neg=True);"> - - <tal:block tal:condition="wgb"> - <h3>Working Group Books</h3> - <ul class="publicationlist"> - <li tal:repeat="found3 wgb"><span tal:replace="structure python:here.decode(here.formatBibliography(found3))" /></li> - </ul> - </tal:block> - <tal:block tal:condition="books"> - <h3>Books</h3> - <ul class="publicationlist"> - <li tal:repeat="found3 books"><span tal:replace="structure python:here.decode(here.formatBibliography(found3))" /> - </li> - </ul> - </tal:block> - - <tal:block tal:condition="edited_books"> - <h3>Edited Books</h3> - <ul class="publicationlist"> - <li tal:repeat="found3 edited_books"><span - tal:replace="structure python:here.decode(here.formatBibliography(found3))" /></li> - </ul> - </tal:block> - - <tal:block tal:condition="articles"> - <h3>Articles and Chapters</h3> - <ul class="publicationlist"> - <li tal:repeat="found3 articles"><span tal:replace="structure python:here.decode(here.formatBibliography(found3))" /> - </li> - </ul> - </tal:block> - </tal:block> - - </div> - - </body> -</metal:x> -</html> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/zpt/project/image/edit_basic.zpt Fri May 03 18:23:01 2013 +0200 @@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html metal:use-macro="here/edit_MPIWGProject_main/macros/page"> +<head> +</head> +<body> +<tal:block metal:fill-slot="navsel" tal:define="global menusel string:images" /> +<tal:block metal:fill-slot="body"> + <h3>Edit Image</h3> + <form action="editImage" method="post" enctype="multipart/form-data"> + <table> + <tr><th>Image</th><th>Caption</th></tr> + <tr> + <td><div tal:content="structure python:here.tag(scale=250.0 / here.height)"/></td> + <td><textarea tal:content="structure python:getattr(here,'caption','')" name="caption" rows="3" cols="60"></textarea></td> + </tr> + <tr> + <td><p>Upload new image:<input type="file" name="file" len="50"/></p></td> + </tr> + </table> + <p> + <input type="submit" value="submit"/> + </p> + </form> + + <h3><a href="../manageImages">Back to image list</a></h3> +</tal:block> +</body> +</html>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/zpt/project/image/projectImageView.zpt Fri May 03 18:23:01 2013 +0200 @@ -0,0 +1,20 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <title tal:content="here/title_or_id"/> + <link rel="stylesheet" type="text/css" href="http://www.mpiwg-berlin.mpg.de/en/mpiwg.css" /> + <link rel="shortcut icon" href="http://www.mpiwg-berlin.mpg.de/favicon.ico" /> + </head> + <body> + <div id="wrapper"> + <div class="content"> + <div align="left" tal:define="imTag python:getattr(here,'tag',None)"> + <img tal:condition="imTag" tal:replace="structure python:imTag()"> + </div> + <p tal:content="structure python:getattr(here,'caption','')">J.-A.-D. Ingres: Mme Moitessier, 1856. l/Lw. 120 x 92,1 cm. London, National Gallery.</p> + </div> + </div> + </body> +</html>
--- a/zpt/projectImageView.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> - <title tal:content="here/title_or_id"/> - <link rel="stylesheet" type="text/css" href="http://www.mpiwg-berlin.mpg.de/en/mpiwg.css" /> - <link rel="shortcut icon" href="http://www.mpiwg-berlin.mpg.de/favicon.ico" /> - </head> - <body> - <div id="wrapper"> - <div class="content"> - <div align="left" tal:define="imTag python:getattr(here,'tag',None)"> - <img tal:condition="imTag" tal:replace="structure python:imTag()"> - </div> - <p tal:content="structure python:getattr(here,'caption','')">J.-A.-D. Ingres: Mme Moitessier, 1856. l/Lw. 120 x 92,1 cm. London, National Gallery.</p> - </div> - </div> - </body> -</html>
--- a/zpt/project_main.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,78 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" - "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> -<html metal:use-macro="here/main_template/macros/page"> -<head> - <title> Max Planck Institute for the History of Science </title> -</head> -<body> -<tal:block metal:fill-slot="body"> - <tal:block tal:replace="structure here/versionHeader"/> - <h1 tal:content="structure python:here.getContent('WEB_project_header')">History of Scientific Objectivity, 18th-19th Cs</h1> - - <p><i tal:content="structure python:here.getUrlFromPerson(here.getContent('xdata_01'))">Names of responsible persons </i></p> - <p tal:condition="not:python:here.getContent('xdata_08')==''">Other involved scholars: <i tal:content="structure python:here.getUrlFromPerson(here.getContent('xdata_08'))">Scholars </i></p> - <p tal:condition="not:python:here.getContent('xdata_12')==''">Cooperation Partners: <i tal:content="structure python:here.getContent('xdata_12')">Partners </i></p> - <br/> - - <div class="indent" tal:content="structure python:here.getContent('WEB_project_description')"> - <p> - In the middle decades of the nineteenth century objectivity established itself as a (if not the) cardinal epistemic virtue in the sciences. From astronomy to paleontology to physiology, new ways of making images, assessing error, and designing experiments were enlisted in the service of objectivity. - </p> - <p> - This triumph of objectivity over rival epistemic virtues like truth and certainty is all the more remarkable because objectivity had emerged only decades before. Only circa 1850 did the modern sense of "objectivity" make its way into dictionaries in the major European languages. The ideals and practices associated with objectivity in the sciences emerge at roughly the same time. - </p> - <p> - The story of how objectivity became so central to science is one of actions as well as words. Objectivity changed how science was done in concrete, specific ways. Photography, self-registering instruments, the method of least squares, and machines for measuring the personal equations of observers were all examples of these new scientific practices of objectivity - </p> - </div> - - <tal:block tal:define="contexts python:here.getContexts(parents=here.getContent('xdata_05'),depth=1)" tal:condition="contexts"> - <h2>This activity is part of</h2> - <ul type="none"> - <li tal:repeat="context contexts"> - <a tal:content="python:context[0].getContent('WEB_title')" tal:attributes="href python:context[0].absolute_url()+'/index.html'"/> - </li> - </ul> - </tal:block> - - <tal:block tal:define="contexts python:here.getContexts(childs=here.getContent('xdata_05'),depth=1)" tal:condition="contexts"> - <h2>Research activities covered by this activity</h2> - <ul type="none"> - <li tal:repeat="context contexts"> - <a tal:content="python:context[0].getContent('WEB_title')" tal:attributes="href python:context[0].absolute_url()+'/index_html'"/> - </li> - </ul> - </tal:block> - - <tal:block tal:condition="not:python:here.getContent('xdata_11')==''"> - <h2>Related items at the digital research library</h2> - <p tal:content="structure python:here.getContent('xdata_11')"> - Item 1 - <br> - Item 2 - <br> - Item 3 - <br> - </p> - </tal:block> - - <tal:block tal:condition="not:python:here.getContent('WEB_related_pub')==''"> - <h2> Related Publications</h2> - - <p tal:define="pub python:here.getContent('WEB_related_pub')" tal:content="structure pub"> - "Die Kultur der wissenschaftlichen Objektivität," in: Michael Hagner, ed., Ansichten der Wissenschaftsgeschichte (Frankfurt am Main: Fischer Taschenbuchverlag GmbH, 2001): 137-158. - <br> - (with Peter Galison), "The Image of Objectivity," Representations no. 40 (Fall 1992): 81-128. Translated into German (2002) - <br> - "Objectivity and the Escape from Perspective," Social Studies of Science 22(1992): 597-618 - </p> - </tal:block> - - <tal:block tal:condition="not:python:here.getContent('xdata_13')==''"> - <h2>Funding Institutions</h2> - <p tal:content="structure python:here.getContent('xdata_13')">Funding </p> - </tal:block> - -</tal:block> -</body> -</html>
--- a/zpt/publications_full_main.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,69 +0,0 @@ -<html metal:use-macro="here/main_template/macros/page"> -<head> -<title tal:content="template/title">The title</title> -</head> -<body> - -<tal:block metal:fill-slot="body" tal:define="found python:here.ZSQLFind()[0]"> -<table> - <td valign="top" width="610"> - <div id="Photo" style="position:absolute; width:200px; height:265px; z-index:2; left:483px; top:61px; visibility:visible"> - [FMP-if: image .neq.] - <b><img src="http://www.mpiwg-berlin.mpg.de/[FMP-Image: image]"></b> - [FMP-else] [/FMP-if] - </div> - <div id="NameTitle" style="position:absolute; width:323px; height:37px; z-index:3; left: 161px; top: 63px; visibility: visible"> - <h3><span tal:replace="found/title"/> <span tal:replace="found/vorname"/> <span tal:replace="found/name"/></h3> - </div> - <div id="Position" style="position:absolute; width:323px; height:30px; z-index:5; left: 161px; top: 115px; visibility: visible"> - <h4><span tal:replace="found/position"/></h4> - </div> - <div id="StayAtMpiwg" style="position:absolute; width:323px; height:32px; z-index:6; left: 161px; top: 158px; visibility: visible"> - <p>Residence:<br> - <span tal:replace="found/stay_at_mpiwg"/></p> - </div> - <div id="Adress" style="position:absolute; width:323px; height:90px; z-index:4; left: 161px; top: 210px"> - <p>Max Planck Institute for the History of Science<br> - Wilhelmstraße 44<br> - D - 10117 Berlin<br> - Germany</p> - <p class="p_indent"> <img src="bilder/RightArrowSmall.jpg" width="17" height="9" border="0"> - <a tal:attributes="href python:'members/'+found.username"> - main </a> </p> - </div> - - - -<!-- middle right (PIM) --> - <div id="ContactsImg" style="position:absolute; width:355px; height:114px; z-index:1; left: 286px; top: 329px; visibility: visible;"> - <table width="400" border="0"> - - <div id="Conferences" style="position:relative; width:581px; z-index:15;"> - <img src="images/en/Fieldnames72_NBPublications.jpg" width="211" height="33"> - <p/> - <tal:block tal:repeat="found3 python:here.ZSQLInlineSearch(storename='search3',_table='publications',id_main=found.id,_sort='priority')"> - <p class="p_indent"> <img src="bilder/RightArrowSmall.jpg" width="17" height="9" border="0"> - <span tal:replace="structure python:here.formatBibliography(here,found3)"/> - <p> - </tal:block> - - <!--<p class="p_indent"> <a href="institutsbiblio/FMPro?-db=personal-www&-max=1&-Lay=ALL&-format=search_inst_bib.html&ID=[FMP-Field: ID]&-Error=null.html&-find" target="_new"> - search the institute's bibliography </a> --> - <!-- Please do not delete --> - - <p> - <!-- Please do not delete --> - </p> - </div> - - -</table> -</tal:block> - </body> -</html> -<!-- to be done institutsbiliographie integrieren -images -weitere seiten fuer mehr als 5 treffer (publ./talks/teaching) -bilbiography einfuegen -published yes or no abfragen --->
--- a/zpt/talks_full_main.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,71 +0,0 @@ -<html metal:use-macro="here/main_template/macros/page"> -<head> -<title tal:content="template/title">The title</title> -</head> -<body> - -<tal:block metal:fill-slot="body" tal:define="found python:here.ZSQLFind()[0]"> -<table> - <td valign="top" width="610"> - <div id="Photo" style="position:absolute; width:200px; height:265px; z-index:2; left:483px; top:61px; visibility:visible"> - [FMP-if: image .neq.] - <b><img src="http://www.mpiwg-berlin.mpg.de/[FMP-Image: image]"></b> - [FMP-else] [/FMP-if] - </div> - <div id="NameTitle" style="position:absolute; width:323px; height:37px; z-index:3; left: 161px; top: 63px; visibility: visible"> - <h3><span tal:replace="found/title"/> <span tal:replace="found/vorname"/> <span tal:replace="found/name"/></h3> - </div> - <div id="Position" style="position:absolute; width:323px; height:30px; z-index:5; left: 161px; top: 115px; visibility: visible"> - <h4><span tal:replace="found/position"/></h4> - </div> - <div id="StayAtMpiwg" style="position:absolute; width:323px; height:32px; z-index:6; left: 161px; top: 158px; visibility: visible"> - <p>Residence:<br> - <span tal:replace="found/stay_at_mpiwg"/></p> - </div> - <div id="Adress" style="position:absolute; width:323px; height:90px; z-index:4; left: 161px; top: 210px"> - <p>Max Planck Institute for the History of Science<br> - Wilhelmstraße 44<br> - D - 10117 Berlin<br> - Germany</p> - <p class="p_indent"> <img src="bilder/RightArrowSmall.jpg" width="17" height="9" border="0"> - <a tal:attributes="href python:'members/'+found.username"> - main </a> </p> - </div> - - - -<!-- middle right (PIM) --> - <div id="ContactsImg" style="position:absolute; width:355px; height:114px; z-index:1; left: 286px; top: 329px; visibility: visible;"> - <table width="400" border="0"> - <tal:block tal:define="founds4 python:here.ZSQLInlineSearch(storename='search4',_table='talks',id_main=found.id,_sort='priority')"> - - <div tal:condition="founds4" id="Publications" style="position:relative; width:581px; z-index:16;"> - <img src="images/en/Fieldnames72_NBTalksPres.jpg" width="211" height="33"> - <p> </p> - <tal:block tal:repeat="found4 founds4"> - - <p tal:condition="not:python:here.ZSQLisEmpty(found4.link)" class="p_indent"> <a tal:attributes="href found4/link"><img src="bilder/RightArrowSmall.jpg" width="17" height="9" border="0"> - <span tal:replace="found4/date"/> – <span tal:replace="found4/place"/> – <span tal:replace="found4/title"/> - </a></p> - - <p tal:condition="python:here.ZSQLisEmpty(found4.link)" class="p_indent"><img src="bilder/RightArrowSmall.jpg" width="17" height="9" border="0"> - <span tal:replace="found4/date"/> – <span tal:replace="found4/place"/> – <span tal:replace="found4/title"/> - </p> - </tal:block> - - <p> - <!-- Please do not delete --> - </p> - </div> - </tal:block> - -</table> -</tal:block> - </body> -</html> -<!-- to be done institutsbiliographie integrieren -images -weitere seiten fuer mehr als 5 treffer (publ./talks/teaching) -bilbiography einfuegen -published yes or no abfragen --->
--- a/zpt/teaching_full_main.zpt Fri May 03 12:00:34 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,62 +0,0 @@ -<html metal:use-macro="here/main_template/macros/page"> -<head> -<title tal:content="template/title">The title</title> -</head> -<body> - -<tal:block metal:fill-slot="body" tal:define="found python:here.ZSQLFind()[0]"> -<table> - <td valign="top" width="610"> - <div id="Photo" style="position:absolute; width:200px; height:265px; z-index:2; left:483px; top:61px; visibility:visible"> - [FMP-if: image .neq.] - <b><img src="http://www.mpiwg-berlin.mpg.de/[FMP-Image: image]"></b> - [FMP-else] [/FMP-if] - </div> - <div id="NameTitle" style="position:absolute; width:323px; height:37px; z-index:3; left: 161px; top: 63px; visibility: visible"> - <h3><span tal:replace="found/title"/> <span tal:replace="found/vorname"/> <span tal:replace="found/name"/></h3> - </div> - <div id="Position" style="position:absolute; width:323px; height:30px; z-index:5; left: 161px; top: 115px; visibility: visible"> - <h4><span tal:replace="found/position"/></h4> - </div> - <div id="StayAtMpiwg" style="position:absolute; width:323px; height:32px; z-index:6; left: 161px; top: 158px; visibility: visible"> - <p>Residence:<br> - <span tal:replace="found/stay_at_mpiwg"/></p> - </div> - <div id="Adress" style="position:absolute; width:323px; height:90px; z-index:4; left: 161px; top: 210px"> - <p>Max Planck Institute for the History of Science<br> - Wilhelmstraße 44<br> - D - 10117 Berlin<br> - Germany</p> - <p class="p_indent"> <img src="bilder/RightArrowSmall.jpg" width="17" height="9" border="0"> - <a tal:attributes="href python:'members/'+found.username"> - main </a> </p> - </div> - - - -<!-- middle right (PIM) --> - <div id="ContactsImg" style="position:absolute; width:355px; height:114px; z-index:1; left: 286px; top: 329px; visibility: visible;"> - <table width="400" border="0"> - - <tal:block tal:define="founds5 python:here.ZSQLInlineSearch(storename='search5',_table='teaching',id_main=found.id,_max=5,_sort='priority')"> - - <div tal:condition="founds5" id="Teaching" style="position:relative; width:581px; z-index:18;"> - <img src="images/en/Fieldnames72_NBTeaching.jpg" width="211" height="33"> - <p> </p> - <tal:block tal:repeat="found5 founds5"> - - <p tal:condition="not:python:here.ZSQLisEmpty(found5.link)" class="p_indent"> <a tal:attributes="href found4/link"><img src="bilder/RightArrowSmall.jpg" width="17" height="9" border="0"> - <span tal:replace="found5/date"/> – <span tal:replace="found5/place"/> – <span tal:replace="found5/title"/> - </a></p> - - <p tal:condition="python:here.ZSQLisEmpty(found5.link)" class="p_indent"><img src="bilder/RightArrowSmall.jpg" width="17" height="9" border="0"> - <span tal:replace="found5/date"/> – <span tal:replace="found5/place"/> – <span tal:replace="found5/title"/> - </p> - </tal:block> -</div> - </tal:block> -</table> -</tal:block> - </body> -</html> -