Mercurial > hg > MPIWGWeb
comparison 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 |
comparison
equal
deleted
inserted
replaced
275:3f9ba7a8cb27 | 276:c886c0cb3455 |
---|---|
1 <?xml version="1.0"?> | |
2 <project xmlns:tal="http://xml.zope.org/namespaces/tal" | |
3 xmlns:metal="http://xml.zope.org/namespaces/metal"> | |
4 <id tal:content="here/getId"/> | |
5 <title tal:content="here/getProjectTitle">History of Scientific Objectivity, 18th-19th Cs</title> | |
6 <label tal:content="here/getLabel"/> | |
7 <projectstarted tal:content="here/getStartedAt"/> | |
8 <projectcompleted tal:content="here/getCompletedAt"/> | |
9 <type tal:content="here/getProjectType"/> | |
10 <number tal:content="here/getNumber"/> | |
11 <active tal:content="here/isActiveProject"/> | |
12 <responsiblescientists tal:attributes="textlist here/getResponsibleScientists"> | |
13 <scientist tal:repeat="person here/getResponsibleScientistsList" | |
14 tal:attributes="username person/username|nothing; key person/key|nothing"/> | |
15 </responsiblescientists> | |
16 <involvedscholars tal:content="here/getInvolvedScholars"/> | |
17 <cooperationpartners tal:content="here/getCooperationPartners"/> | |
18 <images> | |
19 <image tal:repeat="image here/getImageList"> | |
20 <src tal:content="image/getUrl"/> | |
21 <link tal:content="image/getLink"/> | |
22 <caption tal:content="image/caption"/> | |
23 </image> | |
24 </images> | |
25 <description tal:content="python:here.getDescription(filter=True)">Project description</description> | |
26 <relatedprojects> | |
27 <project tal:repeat="project here/getRelatedProjectList" | |
28 tal:attributes="id project/getProjectId" tal:content="project/getProjectLabel"/> | |
29 </relatedprojects> | |
30 <relatedpublications> | |
31 <publication tal:repeat="publication here/getPublicationList" | |
32 tal:attributes="bookid publication/getBookId|nothing; image publication/publicationImage1/absolute_url|nothing; link publication/link; description publication/description|nothing;" | |
33 tal:content="publication/text|nothing"/> | |
34 </relatedpublications> | |
35 <pubmanpublications> | |
36 <!-- TODO: see show_publications --> | |
37 </pubmanpublications> | |
38 <infoblocks> | |
39 <infoblock tal:repeat="block here/getInfoBlockList"> | |
40 <title tal:content="block/getTitle"></title> | |
41 <item tal:repeat="item block/getItems" | |
42 tal:attributes="link item/link" tal:content="item/text"/> | |
43 </infoblock> | |
44 </infoblocks> | |
45 <tal:block tal:define="cal here/getProjectCalendar"> | |
46 <projectcalendar tal:condition="cal" | |
47 tal:attributes="url cal/url; only_upcoming python:cal.getFlag('only_upcoming'); num python:cal.getFlag('show_num', 5)"/> | |
48 </tal:block> | |
49 <fundinginstitutions tal:content="here/getFundingInstitutions"/> | |
50 </project> |