diff zpt/addPublications.zpt @ 0:bca61e893fcc

first checkin of MPIWGWeb r2 branch from CVS into mercurial
author casties
date Thu, 10 Jan 2013 17:52:13 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/zpt/addPublications.zpt	Thu Jan 10 17:52:13 2013 +0100
@@ -0,0 +1,42 @@
+<!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" tal:define="yes_no_list python:'yes\nno'">
+
+  <h3>Add entries from the <i>Institutsbibliographie</i></h3>
+  <p>On this page you can search the Institutsbibliographie for your publications and add them to the list of publications that appears on your staff-page.</p>
+  <form name="search" action="addPublications" method="get">
+  <table>
+    <tr>
+      <td>Author</td>
+      <td tal:content="structure python:here.ZSQLsearchOptions(fieldname='author')" />
+      <td><input name="author" len="30"></td>
+    </tr>
+    <tr>
+      <td>Title</td>
+      <td tal:content="structure python:here.ZSQLsearchOptions(fieldname='title')" />
+      <td><input name="title" len="30"></td>
+    </tr>
+  </table>
+  <input type="submit" value="search">
+  </form>
+  <form name="add" action="addPublications" method="get">
+  <input type="hidden" value="add" name="mode">
+  <tal:block tal:condition="python:here.REQUEST.get('fromSearch','0')=='1'">
+    <table>
+      <tr tal:repeat="foundb python:here.ZSQLFind(_table='institutsbiblio')">
+        <td><input type="checkbox" tal:attributes="value python:str(foundb.id)" name="addEntries"></td>
+        <td tal:content="structure python:here.decode(here.formatBiblHelp(None,'','',foundb))" />
+      </tr>
+    </table>
+    <input type="submit" value="add" name="submit">
+  </tal:block>
+  </form>
+  <!-- <h3><a href="newBibliography">Add a separate entry</a></h3> -->
+  <h3><a href="editPublications">Back to publication list</a></h3>
+</tal:block>
+</html>
+