comparison 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
comparison
equal deleted inserted replaced
2:ddf6c1a27a4b 3:ee3eb9a6665a
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html metal:use-macro="here/main_template/macros/page">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <metal:block metal:fill-slot="head">
7 <tal:x
8 tal:define="global member options/member; global key member/getKey;
9 global username member/getUsername; global content member/getContent;
10 global baseUrl string:$root/${secmap/staff}/members/$username" />
11 </metal:block>
12 </head>
13 <body>
14 <!-- center text -->
15 <div class="center" metal:fill-slot="center">
16 <div>
17 <!-- image -->
18 <tal:block tal:define="imgUrl member/getPublishedImageUrl" tal:condition="imgUrl">
19 <img tal:attributes="src python:'%s&dw=165'%imgUrl" style="float: left; margin-right: 22px;" />
20 </tal:block>
21 <!-- name and title -->
22 <h1>
23 <span tal:replace="content/first_name" /> <span tal:replace="content/last_name" />
24 </h1>
25 <!-- status -->
26 <h3 tal:content="content/status" />
27 <h3 tal:content="content/titles_new" />
28 <h3 tal:condition="content/funded_by">
29 Funded by the <span tal:replace="content/funded_by" />
30 </h3>
31 <p>
32 Residence: <span tal:replace="content/date_stay_at_mpiwg" />
33 </p>
34 </div>
35 <!-- profile -->
36 <div>
37 <tal:x tal:condition="python:not content.profile">
38 <tal:y tal:replace="structure python:here.generateProfileForPerson(member)" />
39 </tal:x>
40 <tal:x tal:condition="content/profile">
41 <h2>Profile</h2>
42 <tal:x tal:content="structure content/profile"> [FMP-Field: CV] </tal:x>
43 </tal:x>
44 </div>
45 <!-- publications -->
46 <tal:block tal:define="publications python:here.ZDBInlineSearch(_table='publications',key_main=key,_op_key_main='eq',publish='yes')"
47 tal:condition="publications">
48 <h2>Selected publications</h2>
49 <p tal:repeat="publication python:member.sortBibliography(publications,content.publications_sort,max=5)">
50 <a tal:omit-tag="not:publication/link" tal:attributes="href publication/link"
51 tal:content="structure python:here.formatBibliography(here,publication)" />
52 </p>
53 <p tal:condition="python:len(publications)>5">
54 <a class="internal" tal:attributes="href string:$baseUrl/publications_full">more</a>
55 </p>
56 </tal:block>
57 <!-- Talks -->
58 <tal:block tal:define="talks python:here.ZDBInlineSearch(_table='talks',key_main=key,_op_key_main='eq',_sort='priority',published='yes')"
59 tal:condition="talks">
60 <h2>Talks and presentations</h2>
61 <div class="namelist">
62 <tal:block tal:repeat="talk python:here.ZDBSlice(talks,size=5)">
63 <div class="name">
64 <a tal:omit-tag="not:talk/link" tal:attributes="href talk/link" tal:content="talk/date" />
65 </div>
66 <div class="definition">
67 <a tal:omit-tag="not:talk/link" tal:attributes="href talk/link"> <span tal:replace="talk/place" /> &#150; <i><span
68 tal:replace="talk/title" /></i>
69 </a>
70 </div>
71 </tal:block>
72 </div>
73 <p tal:condition="python:len(talks)>5">
74 <a tal:attributes="href string:$baseUrl/talks_full">more</a>
75 </p>
76 </tal:block>
77 <!-- Teaching activities -->
78 <tal:block tal:define="teachings python:here.ZDBInlineSearch(_table='teaching',key_main=key,_op_key_main='eq',_sort='priority')"
79 tal:condition="teachings">
80 <h2>Teaching activities</h2>
81 <div class="namelist">
82 <tal:block tal:repeat="teaching python:here.ZDBSlice(teachings, size=5)">
83 <div class="name">
84 <a tal:omit-tag="not:teaching/link" tal:attributes="href teaching/link"> <span tal:replace="teaching/date" />
85 </a>
86 </div>
87 <div class="definition">
88 <a tal:omit-tag="not:teaching/link" tal:attributes="href teaching/link"> <span tal:replace="teaching/place" />
89 &#150; <i><span tal:replace="teaching/title" /></i>
90 </a>
91 </div>
92 </tal:block>
93 <p tal:condition="python:len(teachings)>5">
94 <a tal:attributes="href string:$baseUrl/teaching_full">more</a>
95 </p>
96 </div>
97 </tal:block>
98 </div>
99 <!-- center -->
100
101
102 <!--sidebar content -->
103 <div class="sidebar" metal:fill-slot="sidebar">
104 <div class="sideblock">
105 <h2>Contact</h2>
106 <div class="item noline">
107 Max Planck Institute for the History of Science
108 <br />
109 Boltzmannstra&szlig;e 22
110 <br />
111 14195 Berlin
112 <br />
113 Germany
114 </div>
115 <div class="item" tal:condition="python:content.telefon_p=='yes'">
116 tel.:<span tal:content="content/telefon">[FMP-Field: telefon]</span>
117 <br />
118 </div>
119 <div class="item" tal:condition="python:content.fax_p=='yes'">
120 fax:<span tal:content="content/fax">[FMP-Field: fax]</span>
121 <br />
122 </div>
123 <div class="item internal" tal:condition="python:content.e_mail_p=='yes'">
124 <a class="maillink" tal:attributes="href string:mailto:${content/e_mail}" tal:content="content/e_mail">[FMP-Field:
125 e_mail]</a>
126 </div>
127 <div class="item external" tal:condition="python:content.e_mail2_p=='yes'">
128 <a class="maillink" tal:attributes="href string:mailto:${content/e_mail2}" tal:content="content/e_mail2">[FMP-Field:
129 e_mail2]</a> (external)
130 </div>
131 </div>
132
133 <div class="sideblock" tal:condition="python:here.getProjectsOfMember(key=key)">
134 <h2>Projects</h2>
135 <div class="project" tal:repeat="project python:here.getProjectsOfMember(key=key)">
136 <tal:x tal:condition="python:here.isActual(project)">
137 <a tal:attributes="href python:root+'/'+secmap['research']+'/projects/'+project.getId()+'/index.html'"
138 tal:content="python:here.decode(project.getContent('WEB_title'))" />
139 </tal:x>
140 </div>
141 </div>
142
143 <div class="sideblock">
144 <h2>Related Material</h2>
145 <div class="item download" tal:condition="python:getattr(here,'cv_publish','no')=='yes'">
146 <a target="_blank" href="downloadCV">Download Curriculum Vitae</a>
147 </div>
148 <div class="item download" tal:condition="python:getattr(here,'publications_publish','no')=='yes'">
149 <a target="_blank" href="downloadPublications">Download Publication List</a>
150 <br />
151 </div>
152 <div class="item internal">
153 <a target="_blank"
154 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">
155 See publications on Edoc-Server</a>
156 </div>
157 <div class="item internal"
158 tal:repeat="addLink python:here.ZDBInlineSearch(_table='additionallink',key_main=key,_op_key_main='eq',_sort='priority',published='yes')">
159 <a target="_blank" tal:content="addLink/title" tal:attributes="href addLink/link"> Daston on the History of Science
160 (listen to CBC-Interview, Fall 2007)</a>
161 </div>
162 </div>
163 </div>
164 <!-- sidebar -->
165 </body>
166 </html>