Mercurial > hg > MPIWGWeb
view zpt/staff/member_index_html.zpt @ 40:fd8e78bbc5ed
more work on projects.
new member template uses new getProjectsOfMember.
new isActiveMember in MPIWGStaffFolder.
author | casties |
---|---|
date | Fri, 26 Apr 2013 21:18:01 +0200 |
parents | 3c98cc79dd14 |
children | f59bdd5f4890 |
line wrap: on
line source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html metal:use-macro="here/main_template/macros/page"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <metal:block metal:fill-slot="head"> <tal:x tal:define="global member options/member; global key member/getKey; global username member/getUsername; global content member/getContent; global baseUrl string:$root/${secmap/staff}/members/$username" /> </metal:block> </head> <body> <!-- center text --> <div class="center" metal:fill-slot="center"> <div> <!-- image --> <tal:block tal:define="imgUrl member/getPublishedImageUrl" tal:condition="imgUrl"> <img tal:attributes="src python:'%s&dw=165'%imgUrl" style="float: left; margin-right: 22px;" /> </tal:block> <!-- name and title --> <h1> <span tal:replace="content/first_name" /> <span tal:replace="content/last_name" /> </h1> <!-- status --> <h3 tal:content="content/status" /> <h3 tal:content="content/titles_new" /> <h3 tal:condition="content/funded_by"> Funded by the <span tal:replace="content/funded_by" /> </h3> <p> Residence: <span tal:replace="content/date_stay_at_mpiwg" /> </p> </div> <!-- profile --> <div> <tal:x tal:condition="python:not content.profile"> <tal:y tal:replace="structure python:here.generateProfileForPerson(member)" /> </tal:x> <tal:x tal:condition="content/profile"> <h2>Profile</h2> <tal:x tal:content="structure content/profile"> [FMP-Field: CV] </tal:x> </tal:x> </div> <!-- publications --> <tal:block tal:define="publications python:here.ZDBInlineSearch(_table='publications',key_main=key,_op_key_main='eq',publish='yes')" tal:condition="publications"> <h2>Selected publications</h2> <!--<p tal:repeat="publication python:member.sortBibliography(publications,content.publications_sort,max=5)"> <a tal:omit-tag="not:publication/link" tal:attributes="href publication/link" tal:content="structure python:here.formatBibliography(here,publication)" /> </p> <p tal:condition="python:len(publications)>5"> <a class="internal" tal:attributes="href string:$baseUrl/publications_full">more</a> </p>--> <p tal:repeat="publication python:member.getPublications()"> <a tal:content="structure python:publication" /> </p> <p tal:condition="python:len(publications)>5"> <a class="internal" tal:attributes="href string:$baseUrl/publications_full">more</a> </p> </tal:block> <!-- Talks --> <tal:block tal:define="talks python:here.ZDBInlineSearch(_table='talks',key_main=key,_op_key_main='eq',_sort='priority',published='yes')" tal:condition="talks"> <h2>Talks and presentations</h2> <div class="namelist"> <tal:block tal:repeat="talk python:here.ZDBSlice(talks,size=5)"> <div class="name"> <a tal:omit-tag="not:talk/link" tal:attributes="href talk/link" tal:content="talk/date" /> </div> <div class="definition"> <a tal:omit-tag="not:talk/link" tal:attributes="href talk/link"> <span tal:replace="talk/place" /> – <i><span tal:replace="talk/title" /></i> </a> </div> </tal:block> </div> <p tal:condition="python:len(talks)>5"> <a tal:attributes="href string:$baseUrl/talks_full">more</a> </p> </tal:block> <!-- Teaching activities --> <tal:block tal:define="teachings python:here.ZDBInlineSearch(_table='teaching',key_main=key,_op_key_main='eq',_sort='priority')" tal:condition="teachings"> <h2>Teaching activities</h2> <div class="namelist"> <tal:block tal:repeat="teaching python:here.ZDBSlice(teachings, size=5)"> <div class="name"> <a tal:omit-tag="not:teaching/link" tal:attributes="href teaching/link"> <span tal:replace="teaching/date" /> </a> </div> <div class="definition"> <a tal:omit-tag="not:teaching/link" tal:attributes="href teaching/link"> <span tal:replace="teaching/place" /> – <i><span tal:replace="teaching/title" /></i> </a> </div> </tal:block> <p tal:condition="python:len(teachings)>5"> <a tal:attributes="href string:$baseUrl/teaching_full">more</a> </p> </div> </tal:block> </div> <!-- center --> <!--sidebar content --> <div class="sidebar" metal:fill-slot="sidebar"> <div class="sideblock"> <h2>Contact</h2> <div class="item noline"> Max Planck Institute for the History of Science <br /> Boltzmannstraße 22 <br /> 14195 Berlin <br /> Germany </div> <div class="item" tal:condition="python:content.telefon_p=='yes'"> tel.:<span tal:content="content/telefon">[FMP-Field: telefon]</span> <br /> </div> <div class="item" tal:condition="python:content.fax_p=='yes'"> fax:<span tal:content="content/fax">[FMP-Field: fax]</span> <br /> </div> <div class="item internal" tal:condition="python:content.e_mail_p=='yes'"> <a class="maillink" tal:attributes="href string:mailto:${content/e_mail}" tal:content="content/e_mail">[FMP-Field: e_mail]</a> </div> <div class="item external" tal:condition="python:content.e_mail2_p=='yes'"> <a class="maillink" tal:attributes="href string:mailto:${content/e_mail2}" tal:content="content/e_mail2">[FMP-Field: e_mail2]</a> (external) </div> </div> <div class="sideblock" tal:define="projects python:here.getProjectFolder().getProjectsOfMember(key=key)" tal:condition="projects"> <h2>Projects</h2> <div class="project" tal:repeat="project projects"> <a tal:attributes="href python:project.getUrl(baseUrl=root+'/'+secmap['research']+'/projects/')" tal:content="project/getLabel" /> </div> </div> <div class="sideblock"> <h2>Related Material</h2> <div class="item download" tal:condition="python:getattr(here,'cv_publish','no')=='yes'"> <a target="_blank" href="downloadCV">Download Curriculum Vitae</a> </div> <div class="item download" tal:condition="python:getattr(here,'publications_publish','no')=='yes'"> <a target="_blank" href="downloadPublications">Download Publication List</a> <br /> </div> <div class="item internal"> <a target="_blank" tal:attributes="href python:'http://edoc.mpg.de/display.epl?nmbF=2&nmbK=9&cntDate=5&allType=1&moreFields=less&field1=all&field2=persons&persType2=all&personValue2=%s&wts=arc&scol=11&smode=AND&phrase=similar&nohp=10&outfor=bib&mode=admSearch'%content.last_name"> See publications on Edoc-Server</a> </div> <div class="item internal" tal:repeat="addLink python:here.ZDBInlineSearch(_table='additionallink',key_main=key,_op_key_main='eq',_sort='priority',published='yes')"> <a target="_blank" tal:content="addLink/title" tal:attributes="href addLink/link"> Daston on the History of Science (listen to CBC-Interview, Fall 2007)</a> </div> </div> </div> <!-- sidebar --> </body> </html>