Mercurial > hg > MPIWGWeb
diff zpt/project/edit_publications.zpt @ 61:04fb655633ef
more cleaning up projects.
| author | casties |
|---|---|
| date | Thu, 02 May 2013 18:32:01 +0200 |
| parents | dc41deabc8f8 |
| children | fd6931bd49c8 |
line wrap: on
line diff
--- a/zpt/project/edit_publications.zpt Thu May 02 11:26:57 2013 +0200 +++ b/zpt/project/edit_publications.zpt Thu May 02 18:32:01 2013 +0200 @@ -6,42 +6,42 @@ <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/getRelatedPublications"> - <tr> + <tal:block tal:repeat="publication here/getPublicationList"> + <tr tal:define="pubid publication/getId"> <td> - <a tal:attributes="href python:here.absolute_url()+'/managePublications?pubName='+publication.getId()+'&op=up'">up</a><br> - <a tal:attributes="href python:here.absolute_url()+'/managePublications?pubName='+publication.getId()+'&op=down'">down</a> + <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 python:publication.getId()+'/editPublication'">Edit</a><br/> - <a tal:attributes="href python:'deletePublication?id='+publication.getId()">Delete</a> + <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 publication</h3> - <form action="addPublication" method="post"> + <h3>Add a project publication</h3> + <form tal:attributes="action string:$root/addPublication" method="post"> <textarea name="text" rows="3" cols="80"></textarea> <p><input type="submit" value="submit"/></p> </form> -<!-- <p>(If the publications from your current project description are not showing in this list, click <a href="copyPublicationsToList">here</a> to copy them.)</p> -<h3><tal:x condition="python:here.hasExtendedPublicationList()"> - <a href="publicationList/editEntries"> - Manage Extended Publication List</a> - </tal:x> - <tal:x condition="not:python:here.hasExtendedPublicationList()"> - <a href="createExtendedPublicationList"> - Create Extended Publication List</a> - </tal:x> -</h3>--> + <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 href="addPublicationsFromPubman"> Add publication to extended list</a></h3> -<h3><a href="changePublications"> Change publication list</a></h3> + <h3><a tal:attributes="href string:$root/addPublicationsFromPubman"> Add publication to additional publication list</a></h3> + <h3><a tal:attributes="href string:$root/changePublications"> Change additional publication list</a></h3> </tal:block> </body> </html>
