changeset 134:9f45ed6ffeab

bugs in publications zeigt jetzt auch links
author dwinter
date Fri, 31 May 2013 11:39:30 +0200
parents 1dc5fee412da
children dafb1110bfbe
files MPIWGStaff.py zpt/staff/member_index_html.zpt zpt/staff/pubman/show_publications.zpt
diffstat 3 files changed, 19 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/MPIWGStaff.py	Thu May 30 22:21:21 2013 +0200
+++ b/MPIWGStaff.py	Fri May 31 11:39:30 2013 +0200
@@ -757,11 +757,11 @@
                 
                 
                 if publicationType is not None: #publicaitions typ ist gesetzt 
-                    
+                   
                     if not ((entry[1] == publicationType) or  (entry[1] == typesLongShort.get(publicationType,''))) : #stimmt nicht dann weiter
                         continue;
                     
-                pubs.append((selPub.escidocid,entry[0],entry[2]));
+                pubs.append((selPub.escidocid,entry[0],entry[2],entry[3],entry[4]));
                 count+=1
                 
             return pubs
--- a/zpt/staff/member_index_html.zpt	Thu May 30 22:21:21 2013 +0200
+++ b/zpt/staff/member_index_html.zpt	Fri May 31 11:39:30 2013 +0200
@@ -51,10 +51,14 @@
       tal:define="publications python:here.ZDBInlineSearch(_table='pubmanbiblio',key_main=key,_op_key_main='eq')"
       tal:condition="publications">
       <h2>Selected publications</h2>
-      <p class="reference" tal:repeat="publication python:member.getPublicationsFromPubman(limit=5)">
+      <div class="reference" tal:repeat="publication python:member.getPublicationsFromPubman(limit=5)">
         <a tal:attributes="href python:'http://pubman.mpiwg-berlin.mpg.de/pubman/faces/viewItemFullPage.jsp?itemId='+publication[0]"
           tal:content="structure python:publication[1]" />
-      </p>
+        <div  tal:condition="python:publication[2] is not None"><a class="internal" tal:attributes="href python:'/en/resources/publications/'+here.getBookLinkFromID(publication[2])">Book page</a></div>
+        <div tal:repeat="ident python:publication[3]"><a class="external" tal:attributes="href ident">See also</a></div>
+        <div tal:repeat="ident python:publication[4]"><a class="external" tal:attributes="href python:ident[1]" tal:content="python:ident[0]">See also:</a></div>
+               
+      </div>
       <p tal:condition="python:len(publications)>5">
         <a class="internal" tal:attributes="href string:$baseUrl/publications_full_html">More</a>
       </p>
--- a/zpt/staff/pubman/show_publications.zpt	Thu May 30 22:21:21 2013 +0200
+++ b/zpt/staff/pubman/show_publications.zpt	Fri May 31 11:39:30 2013 +0200
@@ -31,17 +31,23 @@
         <ul class="plain">
           <li class="reference" tal:repeat="book books"><div><a tal:attributes="href python:'http://pubman.mpiwg-berlin.mpg.de/pubman/faces/viewItemFullPage.jsp?itemId='+book[0]"><span
                 tal:replace="structure python:book[1]" /> </a></div>
-                <div tal:condition="python:book[2] is not None"><a tal:attributes="href python:'/en/resources/publications/'+here.getBookLinkFromID(book[2])">Book page</a></div>
-                
+                <div  tal:condition="python:book[2] is not None"><a class="internal" tal:attributes="href python:'/en/resources/publications/'+here.getBookLinkFromID(book[2])">Book page</a></div>
+                  <div tal:repeat="ident python:book[3]"><a class="external" tal:attributes="href ident">See also</a></div>
+        		  <div tal:repeat="ident python:book[4]"><a class="external" tal:attributes="href python:ident[1]" tal:content="python:ident[0]">See also:</a></div>
+       
           </li>
         </ul>
       </tal:block>
 
       <tal:block>
         <h3>Book Chapters</h3>
+       
         <ul class="plain">
           <li class="reference" tal:repeat="book book_article"><a tal:attributes="href python:'http://pubman.mpiwg-berlin.mpg.de/pubman/faces/viewItemFullPage.jsp?itemId='+book[0]"><span
                 tal:replace="structure python:book[1]" /></a>
+                      <div tal:repeat="ident python:book[3]"><a class="external" tal:attributes="href ident">See also</a></div>
+        		  <div tal:repeat="ident python:book[4]"><a class="external" tal:attributes="href python:ident[1]" tal:content="python:ident[0]">See also:</a></div>
+       
           </li>
         </ul>
       </tal:block>
@@ -51,6 +57,9 @@
         <ul class="plain">
           <li class="reference" tal:repeat="book articles"><a tal:attributes="href python:'http://pubman.mpiwg-berlin.mpg.de/pubman/faces/viewItemFullPage.jsp?itemId='+book[0]"><span
                 tal:replace="structure python:book[1]" /> </a>
+                      <div tal:repeat="ident python:book[3]"><a class="external" tal:attributes="href ident">See also</a></div>
+        		  <div tal:repeat="ident python:book[4]"><a class="external" tal:attributes="href python:ident[1]" tal:content="python:ident[0]">See also:</a></div>
+       
           </li>
         </ul>
       </tal:block>