Mercurial > hg > MPIWGWeb
annotate zpt/staff/member_index_html.zpt @ 252:e5b444dab055
add $langroot for absolute urls for switching en<->de
author | casties |
---|---|
date | Mon, 19 May 2014 11:54:08 +0200 |
parents | 980794794bb5 |
children |
rev | line source |
---|---|
3 | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
241 | 3 <html xmlns:tal="http://xml.zope.org/namespaces/tal" xmlns:metal="http://xml.zope.org/namespaces/metal" |
4 xmlns="http://www.w3.org/1999/xhtml" metal:use-macro="here/main_template/macros/page"> | |
3 | 5 <head> |
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
7 <metal:block metal:fill-slot="head"> | |
90 | 8 <meta name="description" content="member"/> |
9 <tal:block | |
3 | 10 tal:define="global member options/member; global key member/getKey; |
11 global username member/getUsername; global content member/getContent; | |
191
90d44df497a6
updated breadcrumb handling, works for members now.
casties
parents:
140
diff
changeset
|
12 global baseUrl string:$root/${secmap/staff}/members/$username; |
90d44df497a6
updated breadcrumb handling, works for members now.
casties
parents:
140
diff
changeset
|
13 global crumbs member/getBreadcrumbs;" /> |
3 | 14 </metal:block> |
15 </head> | |
16 <body> | |
17 <!-- center text --> | |
18 <div class="center" metal:fill-slot="center"> | |
19 <div> | |
20 <!-- image --> | |
140 | 21 <div class="figure" tal:define="imgUrl member/getPublishedImageUrl" tal:condition="imgUrl"> |
22 <img tal:attributes="src string:$imgUrl&dw=165"/> | |
23 </div> | |
3 | 24 <!-- name and title --> |
25 <h1> | |
90 | 26 <span class="mpiwg-first_name" tal:content="content/first_name" /> |
27 <span class="mpiwg-last_name" tal:content="content/last_name" /> | |
3 | 28 </h1> |
29 <!-- status --> | |
30 <h3 tal:content="content/status" /> | |
31 <h3 tal:content="content/titles_new" /> | |
32 <h3 tal:condition="content/funded_by"> | |
33 Funded by the <span tal:replace="content/funded_by" /> | |
34 </h3> | |
35 <p> | |
36 Residence: <span tal:replace="content/date_stay_at_mpiwg" /> | |
37 </p> | |
38 </div> | |
100 | 39 |
3 | 40 <!-- profile --> |
140 | 41 <div class="clear"> |
42 <tal:x tal:condition="content/profile"> | |
43 | |
44 <h2 class="line">Profile</h2> | |
45 | |
46 <div class="profile" tal:content="structure content/profile"> [FMP-Field: CV] </div> | |
47 </tal:x> | |
86 | 48 <tal:x tal:condition="not:content/profile"> |
49 <tal:y tal:replace="structure member/generateProfileForPerson" /> | |
3 | 50 </tal:x> |
51 </div> | |
100 | 52 |
3 | 53 <!-- publications --> |
86 | 54 <tal:block |
243
980794794bb5
added preferences for number of publications, talks, and teachings on profile page.
casties
parents:
242
diff
changeset
|
55 tal:define="show_num python:content.publications_num or 5; publications python:member.getPublicationsFromPubman(limit=show_num+1)" |
3 | 56 tal:condition="publications"> |
140 | 57 |
58 <h2 class="line">Selected publications</h2> | |
59 | |
60 <ul class="plain"> | |
61 <li class="reference" tal:repeat="publication publications"> | |
62 <span tal:content="structure python:publication[1]"/> | |
63 <a class="external" target="_blank" | |
64 tal:attributes="href python:'http://pubman.mpiwg-berlin.mpg.de/pubman/faces/viewItemFullPage.jsp?itemId='+publication[0]">More</a> | |
65 <span tal:condition="python:publication[2] is not None"><a class="internal" tal:attributes="href python:'/en/resources/publications/'+here.getBookLinkFromID(publication[2])">Book page</a></span> | |
66 <span tal:repeat="ident python:publication[3]"><a class="external" target="_blank" tal:attributes="href ident">See also</a></span> | |
67 <span tal:repeat="ident python:publication[4]"><a class="external" target="_blank" tal:attributes="href python:ident[1]" tal:content="python:ident[0]">See also</a></span> | |
68 </li> | |
69 </ul> | |
243
980794794bb5
added preferences for number of publications, talks, and teachings on profile page.
casties
parents:
242
diff
changeset
|
70 <p tal:condition="python:len(publications)>show_num"> |
140 | 71 <a class="internal" tal:attributes="href string:$baseUrl/publications_full_html">More publications</a> |
3 | 72 </p> |
73 </tal:block> | |
217 | 74 |
3 | 75 <!-- Talks --> |
243
980794794bb5
added preferences for number of publications, talks, and teachings on profile page.
casties
parents:
242
diff
changeset
|
76 <tal:block tal:define="calendar member/getTalksCal; show_num python:content.talks_num or 5"> |
217 | 77 <tal:block tal:condition="calendar"> |
243
980794794bb5
added preferences for number of publications, talks, and teachings on profile page.
casties
parents:
242
diff
changeset
|
78 <tal:block tal:define="upcoming python:calendar.getFlag('only_upcoming', False); |
242
0b7a95c02f68
added preference for number of talks from calendar on profile page.
casties
parents:
241
diff
changeset
|
79 talks python:test(upcoming, calendar.getAllItemsFromTodayOn()[:show_num], calendar.getNext(show_num, reverse=True))" tal:condition="talks"> |
217 | 80 |
238
5f5d7f07c1bd
added "show only upcoming" option for talks from calendar.
casties
parents:
224
diff
changeset
|
81 <h2 class="line" tal:condition="upcoming">Upcoming talks and presentations</h2> |
5f5d7f07c1bd
added "show only upcoming" option for talks from calendar.
casties
parents:
224
diff
changeset
|
82 <h2 class="line" tal:condition="not:upcoming">Talks and presentations</h2> |
140 | 83 |
217 | 84 <table class="items shorter"> |
85 <tr tal:repeat="talk talks"> | |
86 <tal:block tal:define="url python:talk.getValue('url')"> | |
87 <td width="25%" tal:content="python:talk.getDate()" /> | |
238
5f5d7f07c1bd
added "show only upcoming" option for talks from calendar.
casties
parents:
224
diff
changeset
|
88 <td><a class="external" target="_blank" tal:omit-tag="not:url" tal:attributes="href url"><span tal:replace="python:talk.getValue('location')" /> |
217 | 89 – <i><span tal:replace="python:talk.getValue('title')" /></i> |
90 </a></td> | |
91 </tal:block> | |
92 </tr> | |
93 </table> | |
243
980794794bb5
added preferences for number of publications, talks, and teachings on profile page.
casties
parents:
242
diff
changeset
|
94 <p tal:condition="python:len(calendar.getItems())>show_num"> |
217 | 95 <a class="internal" tal:attributes="href string:$baseUrl/talks_full_html">More</a> |
96 </p> | |
97 </tal:block> | |
98 </tal:block> | |
99 <tal:block tal:condition="not:calendar"> | |
100 <tal:block tal:define="talks member/getTalks" tal:condition="talks"> | |
101 | |
102 <h2 class="line">Talks and presentations</h2> | |
103 | |
104 <table class="items shorter"> | |
243
980794794bb5
added preferences for number of publications, talks, and teachings on profile page.
casties
parents:
242
diff
changeset
|
105 <tr tal:repeat="talk python:here.ZDBSlice(talks,size=show_num)"> |
217 | 106 <td width="25%" tal:content="talk/date" /> |
241 | 107 <td><a class="external" target="_blank" tal:omit-tag="not:talk/link" tal:attributes="href talk/link"> <span tal:replace="talk/place" /> – <i><span |
217 | 108 tal:replace="talk/title" /></i> |
109 </a></td> | |
110 </tr> | |
111 </table> | |
243
980794794bb5
added preferences for number of publications, talks, and teachings on profile page.
casties
parents:
242
diff
changeset
|
112 <p tal:condition="python:len(talks)>show_num"> |
217 | 113 <a class="internal" tal:attributes="href string:$baseUrl/talks_full_html">More</a> |
114 </p> | |
115 </tal:block> | |
116 </tal:block> | |
3 | 117 </tal:block> |
217 | 118 |
3 | 119 <!-- Teaching activities --> |
243
980794794bb5
added preferences for number of publications, talks, and teachings on profile page.
casties
parents:
242
diff
changeset
|
120 <tal:block tal:define="teachings member/getTeaching; show_num python:content.teachings_num or 5" tal:condition="teachings"> |
140 | 121 |
122 <h2 class="line">Teaching activities</h2> | |
123 | |
100 | 124 <table class="items shorter"> |
243
980794794bb5
added preferences for number of publications, talks, and teachings on profile page.
casties
parents:
242
diff
changeset
|
125 <tr tal:repeat="teaching python:here.ZDBSlice(teachings, size=show_num)"> |
140 | 126 <td width="25%"> |
3 | 127 <a tal:omit-tag="not:teaching/link" tal:attributes="href teaching/link"> <span tal:replace="teaching/date" /> |
128 </a> | |
100 | 129 </td> |
130 <td> | |
3 | 131 <a tal:omit-tag="not:teaching/link" tal:attributes="href teaching/link"> <span tal:replace="teaching/place" /> |
132 – <i><span tal:replace="teaching/title" /></i> | |
133 </a> | |
100 | 134 </td> |
135 </tr> | |
136 </table> | |
243
980794794bb5
added preferences for number of publications, talks, and teachings on profile page.
casties
parents:
242
diff
changeset
|
137 <p tal:condition="python:len(teachings)>show_num"> |
100 | 138 <a class="internal" tal:attributes="href string:$baseUrl/teaching_full_html">More</a> |
139 </p> | |
3 | 140 </tal:block> |
100 | 141 |
142 </div><!-- /center --> | |
3 | 143 |
144 | |
145 <!--sidebar content --> | |
146 <div class="sidebar" metal:fill-slot="sidebar"> | |
147 <div class="sideblock"> | |
148 <h2>Contact</h2> | |
149 <div class="item noline"> | |
86 | 150 Max Planck Institute for the History of Science <br /> Boltzmannstraße 22 <br /> 14195 Berlin <br /> Germany |
3 | 151 </div> |
152 <div class="item" tal:condition="python:content.telefon_p=='yes'"> | |
86 | 153 tel.: <span tal:content="content/telefon">[FMP-Field: telefon]</span> <br /> |
3 | 154 </div> |
155 <div class="item" tal:condition="python:content.fax_p=='yes'"> | |
86 | 156 fax: <span tal:content="content/fax">[FMP-Field: fax]</span> <br /> |
3 | 157 </div> |
86 | 158 <div class="item" tal:condition="python:content.e_mail_p=='yes'"> |
159 <a class="email" tal:attributes="href string:mailto:${content/e_mail}" tal:content="content/e_mail">[FMP-Field: | |
3 | 160 e_mail]</a> |
161 </div> | |
86 | 162 <div class="item" tal:condition="python:content.e_mail2_p=='yes'"> |
163 <a class="email" tal:attributes="href string:mailto:${content/e_mail2}" tal:content="content/e_mail2">[FMP-Field: | |
3 | 164 e_mail2]</a> (external) |
165 </div> | |
166 </div> | |
167 | |
86 | 168 <div class="sideblock" tal:define="projects python:here.getProjectFolder().getProjectsOfMember(key=key)" |
169 tal:condition="projects"> | |
3 | 170 <h2>Projects</h2> |
40 | 171 <div class="project" tal:repeat="project projects"> |
224 | 172 <a tal:attributes="href python:project.getUrl(baseUrl=root+'/'+secmap['research']+'/projects')" |
86 | 173 tal:content="project/getLabel" /> |
3 | 174 </div> |
175 </div> | |
176 | |
177 <div class="sideblock"> | |
178 <h2>Related Material</h2> | |
195 | 179 <div class="item download" tal:condition="python:here.content.cv_p=='yes'"> |
3 | 180 <a target="_blank" href="downloadCV">Download Curriculum Vitae</a> |
181 </div> | |
195 | 182 <div class="item download" tal:condition="python:here.content.publications_p=='yes'"> |
86 | 183 <a target="_blank" href="downloadPublications">Download Publication List</a> <br /> |
3 | 184 </div> |
86 | 185 <div class="item external"> |
186 <a target="_blank" tal:attributes="href python:member.getConeId()"> See publications on PubMan</a> | |
3 | 187 </div> |
86 | 188 <div class="item external" |
3 | 189 tal:repeat="addLink python:here.ZDBInlineSearch(_table='additionallink',key_main=key,_op_key_main='eq',_sort='priority',published='yes')"> |
190 <a target="_blank" tal:content="addLink/title" tal:attributes="href addLink/link"> Daston on the History of Science | |
191 (listen to CBC-Interview, Fall 2007)</a> | |
192 </div> | |
193 </div> | |
194 </div> | |
195 <!-- sidebar --> | |
196 </body> | |
197 </html> |