Mercurial > hg > MPIWGWeb
diff zpt/project/project_index_xml.zpt @ 276:c886c0cb3455
added xml export for projects.
author | casties |
---|---|
date | Mon, 23 Feb 2015 22:47:36 +0100 |
parents | |
children | d8a4ae8db589 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/zpt/project/project_index_xml.zpt Mon Feb 23 22:47:36 2015 +0100 @@ -0,0 +1,50 @@ +<?xml version="1.0"?> +<project xmlns:tal="http://xml.zope.org/namespaces/tal" + xmlns:metal="http://xml.zope.org/namespaces/metal"> + <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="image/getUrl"/> + <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> + <!-- TODO: see show_publications --> + </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> \ No newline at end of file