view zpt/staff/edit_publications.zpt @ 243:980794794bb5

added preferences for number of publications, talks, and teachings on profile page.
author casties
date Fri, 07 Feb 2014 14:53:37 +0100
parents 5b7f136b3463
children 5584046a6a04
line wrap: on
line source

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html metal:use-macro="here/mainEditFile/macros/page">
<body>
  <tal:block metal:fill-slot="navsel" tal:define="global menusel string:publications" />
  <tal:block metal:fill-slot="body">

    <form method="post" tal:attributes="action string:$root/editPublications">

    <h3>Selection mode</h3>
    <p>
     <input type="radio" name="selectionMode" value="year" 
      tal:attributes="checked python:here.content.publications_mode=='year'" />
      Show the five most recent publications. (no further action needed)<br/>
      <input type="radio" name="selectionMode" value="priority"
        tal:attributes="checked python:here.content.publications_mode=='priority'" />
      Show selected publications.
    </p>
    <p>
      Number of items on profile page: <input name="publications_num" size="2" tal:attributes="value python:here.content.publications_num or 5"/>
    </p>
    <p>
      <input type="submit" value="Set mode" />
    </p>
    </form>

    <h3>Publications</h3>

    <table>
      <tr>
        <th>Priority</th><th>Citation</th><th>Collection</th>
      </tr>
      <tr tal:repeat="entry python:here.getSelectedPublications()">
        <td valign="top" tal:content="string:[${entry/priority}]" />
        <tal:x define="entry  python:here.mpiwgPubman.getEntryFromPubman(entry.escidocid,withContext=True)">
        <tal:x condition="python:entry[1]=='escidoc:644427'">
        <td valign="top" tal:content="structure python:entry[0]"/>
        <td valign="top">General</td>
        </tal:x>
        <tal:x condition="not:python:entry[1]=='escidoc:644427'">
        <td valign="top" tal:content="structure python:entry[0]"/>
        <td valign="top">Institute</td>
        </tal:x>
        
        </tal:x>
        
      </tr>
    </table>  

    <div tal:condition="python:here.content.publications_mode=='priority'">
      <p>
        <a tal:attributes="href string:$root/changePublications">Change the selected publications</a>
      </p>
      <p>
        <a tal:attributes="href string:$root/addPublicationsFromPubman">Add an entry to the selected publications</a>
      </p>
    </div>

  </tal:block>
</body>
</html>