view zpt/staff/pubman/show_publications.zpt @ 170:485bf377913a

fix staff editing pages.
author casties
date Fri, 07 Jun 2013 16:29:34 +0200
parents f84f492f8e11
children
line wrap: on
line source

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
	  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" metal:use-macro="here/main_template/macros/page">
<head>
<tal:block metal:fill-slot="head">
</tal:block>
</head>
<body>
  <div class="center" metal:fill-slot="center">

    <h1>
      <span tal:replace="options/member/title" /> 
      <span tal:replace="options/member/first_name" /> 
      <span tal:replace="options/member/last_name" />
    </h1>

    <p>
      <a class="internal" tal:attributes="href string:$root/$section/members/${here/getId}">Main entry</a>
    </p>

    <h1>Selected publications</h1>
    
    <tal:block
      tal:define="
			     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>
        <h2 class="line">Books</h2>
        <ul class="plain">
          <li class="reference" tal:repeat="book books">
            <span tal:replace="structure python:book[1]" />
            <a class="external" target="_blank" 
              tal:attributes="href python:'http://pubman.mpiwg-berlin.mpg.de/pubman/faces/viewItemFullPage.jsp?itemId='+book[0]">More</a>
            <span 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></span>
            <span tal:repeat="ident python:book[3]"><a class="external" tal:attributes="href ident">See also</a></span>
  		    <span tal:repeat="ident python:book[4]"><a class="external" tal:attributes="href python:ident[1]" tal:content="python:ident[0]">See also</a></span>
          </li>
        </ul>
      </tal:block>

      <tal:block>
        <h2 class="line">Book Chapters</h2>      
        <ul class="plain">
          <li class="reference" tal:repeat="book book_article">
            <span tal:replace="structure python:book[1]" />
            <a class="external" target="_blank" tal:attributes="href python:'http://pubman.mpiwg-berlin.mpg.de/pubman/faces/viewItemFullPage.jsp?itemId='+book[0]">More</a>
            <span tal:repeat="ident python:book[3]"><a class="external" tal:attributes="href ident">See also</a></span>
            <span tal:repeat="ident python:book[4]"><a class="external" tal:attributes="href python:ident[1]" tal:content="python:ident[0]">See also:</a></span>
          </li>
        </ul>
      </tal:block>

      <tal:block>
        <h2 class="line">Articles</h2>
        <ul class="plain">
          <li class="reference" tal:repeat="book articles">
            <span tal:replace="structure python:book[1]" /> 
            <a class="external" target="_blank" tal:attributes="href python:'http://pubman.mpiwg-berlin.mpg.de/pubman/faces/viewItemFullPage.jsp?itemId='+book[0]">More</a>
            <span tal:repeat="ident python:book[3]"><a class="external" tal:attributes="href ident">See also</a></span>
            <span tal:repeat="ident python:book[4]"><a class="external" tal:attributes="href python:ident[1]" tal:content="python:ident[0]">See also</a></span>
          </li>
        </ul>
      </tal:block>

    </tal:block>

    <p>
      <a class="external" target="_blank" tal:attributes="href python:options['member'].getConeId()">More publications on PubMan</a>
    </p>
  </div>
   
</body>
</html>