diff zpt/staff/member_index_html.zpt @ 3:ee3eb9a6665a

MPIWGStaffFolder shows members from db now.
author casties
date Fri, 08 Feb 2013 20:42:18 +0100
parents
children 3c98cc79dd14
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/zpt/staff/member_index_html.zpt	Fri Feb 08 20:42:18 2013 +0100
@@ -0,0 +1,166 @@
+<!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>
+    </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" /> &#150; <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" />
+              &#150; <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&szlig;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:condition="python:here.getProjectsOfMember(key=key)">
+      <h2>Projects</h2>
+      <div class="project" tal:repeat="project python:here.getProjectsOfMember(key=key)">
+        <tal:x tal:condition="python:here.isActual(project)">
+          <a tal:attributes="href python:root+'/'+secmap['research']+'/projects/'+project.getId()+'/index.html'"
+            tal:content="python:here.decode(project.getContent('WEB_title'))" />
+        </tal:x>
+      </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>
\ No newline at end of file