changeset 201:81a8177ca354

shows where a entry comes from in editing mode
author dwinter
date Wed, 26 Jun 2013 16:49:31 +0200
parents 5b7f136b3463
children c3c834cf1a6d
files MPIWGStaff.py zpt/staff/pubman/add_publications.zpt
diffstat 2 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MPIWGStaff.py	Wed Jun 26 16:02:53 2013 +0200
+++ b/MPIWGStaff.py	Wed Jun 26 16:49:31 2013 +0200
@@ -863,7 +863,7 @@
             
     
             
-            entries= self.mpiwgPubman.search(data,contexts=["escidoc:85274","escidoc:38279","escidoc:644427"])
+            entries= self.mpiwgPubman.search(data,contexts=["escidoc:85274","escidoc:38279","escidoc:644427"],resultWithContext=True)
             pt=PageTemplateFile('zpt/staff/pubman/add_publications.zpt', globals()).__of__(self)
             
            
--- a/zpt/staff/pubman/add_publications.zpt	Wed Jun 26 16:02:53 2013 +0200
+++ b/zpt/staff/pubman/add_publications.zpt	Wed Jun 26 16:49:31 2013 +0200
@@ -34,8 +34,14 @@
         <table>
           <tr tal:repeat="entry python:options['values'].items()">
             <td><input type="checkbox" value="add" tal:attributes="name python:entry[0]" /></td>
-            <td><tal:x tal:replace="structure python:entry[1]" /></td>
-          </tr>
+            <td><tal:x tal:replace="structure python:entry[1][0]" /></td>
+             <tal:x condition="python:entry[1][1]=='escidoc:644427'">
+        		<td valign="top">General</td>
+ 		     </tal:x>
+       		 <tal:x condition="not:python:entry[1][1]=='escidoc:644427'">
+        	<td valign="top">Institute</td>
+        </tal:x>
+        </tr>
         </table>
         <p>
           <input type="submit" value="Add to selected publications" />