view zpt/staff/member_index_html.zpt @ 134:9f45ed6ffeab

bugs in publications zeigt jetzt auch links
author dwinter
date Fri, 31 May 2013 11:39:30 +0200
parents 5f766d7f3a09
children f84f492f8e11
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">
  <meta name="description" content="member"/>
  <tal:block
    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 class="mpiwg-first_name" tal:content="content/first_name" /> 
        <span class="mpiwg-last_name" tal:content="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="not:content/profile">
        <tal:y tal:replace="structure member/generateProfileForPerson" />
      </tal:x>
      <tal:x tal:condition="content/profile">
        <h2>Profile</h2>
        <div class="profile" tal:content="structure content/profile"> [FMP-Field: CV] </div>
      </tal:x>
    </div>
    
    <!-- publications -->
    <tal:block
      tal:define="publications python:here.ZDBInlineSearch(_table='pubmanbiblio',key_main=key,_op_key_main='eq')"
      tal:condition="publications">
      <h2>Selected publications</h2>
      <div class="reference" tal:repeat="publication python:member.getPublicationsFromPubman(limit=5)">
        <a tal:attributes="href python:'http://pubman.mpiwg-berlin.mpg.de/pubman/faces/viewItemFullPage.jsp?itemId='+publication[0]"
          tal:content="structure python:publication[1]" />
        <div  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></div>
        <div tal:repeat="ident python:publication[3]"><a class="external" tal:attributes="href ident">See also</a></div>
        <div tal:repeat="ident python:publication[4]"><a class="external" tal:attributes="href python:ident[1]" tal:content="python:ident[0]">See also:</a></div>
               
      </div>
      <p tal:condition="python:len(publications)>5">
        <a class="internal" tal:attributes="href string:$baseUrl/publications_full_html">More</a>
      </p>
      <!-- <p>
        <a class="external" target="_blank" tal:attributes="href member/getConeId">See all publications (PubMan)</a>
      </p> -->
    </tal:block>
    
    <!-- Talks -->
    <tal:block tal:define="talks member/getTalks" tal:condition="talks">
      <h2>Talks and presentations</h2>
      <table class="items shorter">
        <tr tal:repeat="talk python:here.ZDBSlice(talks,size=5)">
          <td>
            <a tal:omit-tag="not:talk/link" tal:attributes="href talk/link" tal:content="talk/date" />
          </td>
          <td>
            <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>
          </td>
        </tr>
      </table>
      <p tal:condition="python:len(talks)>5">
        <a class="internal" tal:attributes="href string:$baseUrl/talks_full_html">More</a>
      </p>
    </tal:block>
    
    <!-- Teaching activities -->
    <tal:block tal:define="teachings member/getTeaching" tal:condition="teachings">
      <h2>Teaching activities</h2>
      <table class="items shorter">
        <tr tal:repeat="teaching python:here.ZDBSlice(teachings, size=5)">
          <td>
            <a tal:omit-tag="not:teaching/link" tal:attributes="href teaching/link"> <span tal:replace="teaching/date" />
            </a>
          </td>
          <td>
            <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>
          </td>
        </tr>
      </table>
      <p tal:condition="python:len(teachings)>5">
        <a class="internal" tal:attributes="href string:$baseUrl/teaching_full_html">More</a>
      </p>
    </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" tal:condition="python:content.e_mail_p=='yes'">
        <a class="email" tal:attributes="href string:mailto:${content/e_mail}" tal:content="content/e_mail">[FMP-Field:
          e_mail]</a>
      </div>
      <div class="item" tal:condition="python:content.e_mail2_p=='yes'">
        <a class="email" 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 external">
        <a target="_blank" tal:attributes="href python:member.getConeId()"> See publications on PubMan</a>
      </div>
      <div class="item external"
        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>