view zpt/project/edit_publications.zpt @ 235:7fcb9b18c4d1

CLOSED - # 147: changePublikation in Projects funktioniert nicht https://it-dev.mpiwg-berlin.mpg.de/tracs/webpage/ticket/147 Link war falsch auf der Seite: changePublications statt changeAdditionalPublications
author dwinter
date Wed, 04 Dec 2013 10:42:22 +0100
parents b5ff783027d6
children
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/edit_template/macros/page">
<head>
</head>
<body>
<tal:block metal:fill-slot="navsel" tal:define="global menusel string:publications" />
<tal:block metal:fill-slot="body">
  <h2>Project publications</h2>
  <table>
    <tal:block tal:repeat="publication here/getPublicationList">
      <tr tal:define="pubid publication/getId">
        <td>
          <a tal:attributes="href string:$root/managePublications?name=$pubid&op=up">up</a><br>
          <a tal:attributes="href string:$root/managePublications?name=$pubid&op=down">down</a>
        </td>
        <td tal:content="string:[${publication/place}]"/>
        <td tal:content="structure python:getattr(publication,'text','')" />
        <td>
          <a tal:attributes="href string:$root/$pubid/editPublication">Edit</a><br/> 
          <a tal:attributes="href string:$root/deletePublication?id=$pubid">Delete</a>
        </td>
      </tr>
    </tal:block>
  </table>

  <h3>Add a project publication</h3>
  <form tal:attributes="action string:$root/addPublication" method="post">
    <p><b>Bibliographical entry:</b><br/>
      <textarea name="text" rows="2" cols="80"></textarea>
    </p>
    <p><b>Link:</b> <input name="link" size="60"/> (optional, can be link to MPIWG book page)</p>
    <p><input type="submit" value="submit"/></p>
  </form>

  <h2>Additional publications</h2>
  <tal:block tal:define="books here/getAdditionalPublicationList" tal:condition="exists:here/mpiwgPubman">
    <ul class="publicationlist">
      <li tal:repeat="book books">
        <a tal:attributes="href python:'http://pubman.mpiwg-berlin.mpg.de/pubman/faces/viewItemFullPage.jsp?itemId='+book.escidocid" 
           tal:content="structure python:here.mpiwgPubman.getEntryFromPubman(book.escidocid)"/>
      </li>
    </ul>
  </tal:block>

  <h3><a tal:attributes="href string:$root/addAdditionalPublicationsFromPubman"> Add publication to additional publication list</a></h3>
  <h3><a tal:attributes="href string:$root/changeAdditionalPublications"> Change additional publication list</a></h3>
</tal:block>
</body>
</html>