Mercurial > hg > MPIWGWeb
changeset 73:33c663a08025
projekte publicationen jetzt nach typen geordnet
author | dwinter |
---|---|
date | Sun, 05 May 2013 17:09:49 +0200 |
parents | 5cb46852ac05 |
children | e424b68244c8 |
files | MPIWGStaff.py zpt/project/pubman/show_publications.zpt zpt/staff/member_index_html.zpt zpt/staff/pubman/add_publications.zpt |
diffstat | 4 files changed, 41 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/MPIWGStaff.py Sun May 05 13:56:07 2013 +0200 +++ b/MPIWGStaff.py Sun May 05 17:09:49 2013 +0200 @@ -1622,7 +1622,11 @@ selPubs= self.getSelectedPublications() pubs=[] + count =0 for selPub in selPubs: + if limit and count >= limit: + break + count+=1 logging.debug("searchFor:%s"%selPub.escidocid) pubs.append((selPub.escidocid,self.mpiwgPubman.getEntryFromPubman(selPub.escidocid))) @@ -1651,7 +1655,10 @@ if data.get("method") == "search": - entries= self.mpiwgPubman.search(data) + + + + entries= self.mpiwgPubman.search(data,contexts=["escidoc:85274","escidoc:38279"]) pt=PageTemplateFile(os.path.join(package_home(globals()),'zpt/staff/pubman','add_publications.zpt')).__of__(self)
--- a/zpt/project/pubman/show_publications.zpt Sun May 05 13:56:07 2013 +0200 +++ b/zpt/project/pubman/show_publications.zpt Sun May 05 17:09:49 2013 +0200 @@ -37,13 +37,40 @@ </p> <h2>Selected publications</h2> - <tal:block tal:define="books here/getAdditionalPublicationList;"> - <ul class="publicationlist"> + + <tal:block tal:define="publications here/getAdditionalPublicationList;"> + <tal:x define="publicationsSorted python:here.mpiwgPubman.getEntriesFromPubman(publications)"> + <h2>Books</h2> + <ul class="publicationlist"> + <li tal:repeat="found3 python:publicationsSorted['book'] "> + + <a tal:attributes="href python:'http://pubman.mpiwg-berlin.mpg.de/pubman/faces/viewItemFullPage.jsp?itemId='+found3[0]" + tal:content="structure python:found3[1]"/> + </li> + </ul> + <h2>Chapters</h2> + <ul class="publicationlist"> + <li tal:repeat="found3 python:publicationsSorted['book-item']"> + <a tal:attributes="href python:'http://pubman.mpiwg-berlin.mpg.de/pubman/faces/viewItemFullPage.jsp?itemId='+found3[0]" + tal:content="structure python:found3[1]"/> + </li> + </ul> + <h2>Articles</h2> + <ul class="publicationlist"> + <li tal:repeat="found3 python:publicationsSorted['book-item']"> + <a tal:attributes="href python:'http://pubman.mpiwg-berlin.mpg.de/pubman/faces/viewItemFullPage.jsp?itemId='+found3[0]" + tal:content="structure python:found3[1]"/> + </li> + </ul> + </tal:x> + + <!-- - <ul class="publicationlist"> + <li tal:repeat="found3 books"> <a tal:attributes="href python:'http://pubman.mpiwg-berlin.mpg.de/pubman/faces/viewItemFullPage.jsp?itemId='+found3.escidocid" tal:content="structure python:here.mpiwgPubman.getEntryFromPubman(found3.escidocid)"/> </li> - </ul> + </ul>--> </tal:block> </div>
--- a/zpt/staff/member_index_html.zpt Sun May 05 13:56:07 2013 +0200 +++ b/zpt/staff/member_index_html.zpt Sun May 05 17:09:49 2013 +0200 @@ -7,7 +7,7 @@ <tal:x tal:define="global member options/member; global key member/getKey; global username member/getUsername; global content member/getContent; - global baseUrl string:$root/${secmap/staff}/members_test/$username" /> + global baseUrl string:$root/${secmap/staff}/members/$username" /> </metal:block> </head> <body>
--- a/zpt/staff/pubman/add_publications.zpt Sun May 05 13:56:07 2013 +0200 +++ b/zpt/staff/pubman/add_publications.zpt Sun May 05 17:09:49 2013 +0200 @@ -18,8 +18,8 @@ <div tal:condition="python:options.has_key('values')"> <form action="" method="post"> - <input type="hidden" name="method" value="add"/> - + <input type="hidden" name="method" value="add"/> + <table>