view zpt/staff/member_index_html.zpt @ 56:a6ace48c2bf2

publication management f?r projekte
author dwinter
date Tue, 30 Apr 2013 18:35:08 +0200
parents f59bdd5f4890
children 5cb46852ac05
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_test/$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.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]" />
      </p>
      <p tal:condition="python:len(publications)>5">
        <a class="internal" tal:attributes="href string:$baseUrl/publicationsFull">more</a>
      </p>
      <p>
      <a target="_blank"
          tal:attributes="href python:member.getConeId()">
          See all publications (pubman)</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: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:member.getConeId()">
          See publications on pubman</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>