Mercurial > hg > MPIWGWeb
changeset 110:b554becd8226
Incomplete - # 74: More Link auf den pers?nlichne Homepages
https://it-dev.mpiwg-berlin.mpg.de/tracs/webpage/ticket/74
author | dwinter |
---|---|
date | Tue, 28 May 2013 09:47:43 +0200 |
parents | f8e914a4992d |
children | 7f651bf040c4 |
files | MPIWGStaff.py css/mpiwg.css zpt/staff/pubman/show_publications.zpt |
diffstat | 3 files changed, 33 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/MPIWGStaff.py Mon May 27 23:12:33 2013 +0200 +++ b/MPIWGStaff.py Tue May 28 09:47:43 2013 +0200 @@ -728,7 +728,7 @@ def getPublicationsFromPubman(self,limit=None,publicationType=None): - if self.content.publications_mode=="year" or publicationType is not None: + if self.content.publications_mode=="year": coneId = self.getConeId(); if coneId: pubs= self.folder.getPublicationsFromPubman(coneId,limit=limit,publicationType=publicationType) @@ -742,9 +742,27 @@ 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))) + + entry = self.mpiwgPubman.getEntryFromPubman(selPub.escidocid,extendedData=True); + + #TODO getEntryFromPubmanShould return long texts + typesLongShort={'http://purl.org/eprint/type/Book':'book', + 'http://purl.org/eprint/type/BookItem':'book-item', + 'http://purl.org/escidoc/metadata/ves/publication-types/article':'article'}; + + + + + + 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])); + count+=1 return pubs return {}
--- a/css/mpiwg.css Mon May 27 23:12:33 2013 +0200 +++ b/css/mpiwg.css Tue May 28 09:47:43 2013 +0200 @@ -6,7 +6,7 @@ div.hierlist li.li_project a{ - padding-left:0px; + /*padding-left:0px;*/ } body {
--- a/zpt/staff/pubman/show_publications.zpt Mon May 27 23:12:33 2013 +0200 +++ b/zpt/staff/pubman/show_publications.zpt Tue May 28 09:47:43 2013 +0200 @@ -18,17 +18,18 @@ </p> <h2>Selected publications</h2> + <tal:block tal:define=" - books python:here.getPublicationsFromPubman(publicationType='http://purl.org/eprint/type/Book'); - book_article python:here.getPublicationsFromPubman(publicationType='http://purl.org/eprint/type/BookItem'); - articles python:here.getPublicationsFromPubman(publicationType='http://purl.org/escidoc/metadata/ves/publication-types/article'); + books python:here.getPublicationsFromPubman(publicationType='http://purl.org/eprint/type/Book',limit=15); + book_article python:here.getPublicationsFromPubman(publicationType='http://purl.org/eprint/type/BookItem',limit=15); + articles python:here.getPublicationsFromPubman(publicationType='http://purl.org/escidoc/metadata/ves/publication-types/article',limit=30); "> <tal:block> <h3>Books</h3> <ul class="plain"> - <li class="reference" tal:repeat="book books"><a tal:attributes="href python:''"><span + <li class="reference" tal:repeat="book books"><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> </li> </ul> @@ -37,7 +38,7 @@ <tal:block> <h3>Book Chapters</h3> <ul class="plain"> - <li class="reference" tal:repeat="book book_article"><a tal:attributes="href python:''"><span + <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> </li> </ul> @@ -46,7 +47,7 @@ <tal:block> <h3>Articles</h3> <ul class="plain"> - <li class="reference" tal:repeat="book articles"><a tal:attributes="href python:''"><span + <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> </li> </ul> @@ -59,7 +60,10 @@ <a href="/institutsbiblio/FMPro?-db=personal-www&-max=1&-Lay=ALL&-format=search_inst_bib.html&ID=[FMP-Field: ID]&-Error=null.html&-find" target="_new"> search the institute's bibliography </a> --> - +<div class="item external"> + <a target="_blank" tal:attributes="href python:options['member'].getConeId()"> More publications on PubMan</a> + </div> </div> + </body> </html> \ No newline at end of file