view zpt/project/project_index_xml.zpt @ 280:7626731d1abe

add pubman ids to project xml dump.
author casties
date Wed, 18 Mar 2015 12:09:40 +0100
parents d8a4ae8db589
children
line wrap: on
line source

<?xml version="1.0"?>
<project xmlns:tal="http://xml.zope.org/namespaces/tal"
  xmlns:metal="http://xml.zope.org/namespaces/metal"
  tal:define="rootUrl here/en/MPIWGrootURL;">
  <id tal:content="here/getId"/>
  <title tal:content="here/getProjectTitle">History of Scientific Objectivity, 18th-19th Cs</title>
  <label tal:content="here/getLabel"/>
  <projectstarted tal:content="here/getStartedAt"/>
  <projectcompleted tal:content="here/getCompletedAt"/>
  <type tal:content="here/getProjectType"/>
  <number tal:content="here/getNumber"/>
  <active tal:content="here/isActiveProject"/>
  <responsiblescientists tal:attributes="textlist here/getResponsibleScientists">
    <scientist tal:repeat="person here/getResponsibleScientistsList" 
      tal:attributes="username person/username|nothing; key person/key|nothing"/>
  </responsiblescientists>
  <involvedscholars tal:content="here/getInvolvedScholars"/>
  <cooperationpartners tal:content="here/getCooperationPartners"/>
  <images>
    <image tal:repeat="image here/getImageList">
      <src tal:content="python:image.getUrl(baseUrl=here.getId())"/>
      <link tal:content="image/getLink"/>
      <caption tal:content="image/caption"/>
    </image>
  </images>
  <description tal:content="python:here.getDescription(filter=True)">Project description</description>
  <relatedprojects>
    <project tal:repeat="project here/getRelatedProjectList" 
      tal:attributes="id project/getProjectId" tal:content="project/getProjectLabel"/>
  </relatedprojects>
  <relatedpublications>
    <publication tal:repeat="publication here/getPublicationList"
      tal:attributes="bookid publication/getBookId|nothing; image publication/publicationImage1/absolute_url|nothing; link publication/link; description publication/description|nothing;"
      tal:content="publication/text|nothing"/>
  </relatedpublications>
  <pubmanpublications>
    <pubmanid tal:repeat="pub here/getAdditionalPublicationList" 
      tal:attributes="weight pub/priority" tal:content="pub/escidocid"/>
  </pubmanpublications>
  <infoblocks>
    <infoblock tal:repeat="block here/getInfoBlockList">
      <title tal:content="block/getTitle"></title>
      <item tal:repeat="item block/getItems"
        tal:attributes="link item/link" tal:content="item/text"/>
    </infoblock>
  </infoblocks>
  <tal:block tal:define="cal here/getProjectCalendar">
  <projectcalendar tal:condition="cal" 
    tal:attributes="url cal/url; only_upcoming python:cal.getFlag('only_upcoming'); num python:cal.getFlag('show_num', 5)"/>
  </tal:block>
  <fundinginstitutions tal:content="here/getFundingInstitutions"/>
</project>