annotate zpt/project/project_template.zpt @ 57:84879a3f91a6

getLastArrivals
author dwinter
date Tue, 30 Apr 2013 22:34:00 +0200
parents a6ace48c2bf2
children 04fb655633ef
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
3 <html metal:use-macro="here/pro_sec_template/macros/page">
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
4 <head>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
6 <tal:block metal:fill-slot="title">
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
7 <title tal:content="string:${here/getNumber} ${here/getProjectTitle}" />
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
8 </tal:block>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
9 <tal:block metal:fill-slot="head"
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
10 tal:define="global proBaseUrl string:$root/${secmap/research}/projects;
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
11 global images here/getImageList;
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
12 global dept here/getDepartmentId;" />
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
13 </head>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
14 <body>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
15
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
16 <!-- middle column -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
17 <div class="center" metal:fill-slot="center">
44
05754bca0114 updated project not current warning.
casties
parents: 43
diff changeset
18 <h2 tal:condition="not:here/isCurrentVersion">
05754bca0114 updated project not current warning.
casties
parents: 43
diff changeset
19 This is an outdated version of this project! For the current version, please refer to
05754bca0114 updated project not current warning.
casties
parents: 43
diff changeset
20 <a tal:define="parentUrl python:here.aq_parent.getUrl(baseUrl=proBaseUrl)"
05754bca0114 updated project not current warning.
casties
parents: 43
diff changeset
21 tal:attributes="href parentUrl" tal:content="parentUrl"/>
05754bca0114 updated project not current warning.
casties
parents: 43
diff changeset
22 </h2>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
23 <tal:x tal:define="started here/getStartedAt" tal:condition="here/isArchivedProject">
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
24 <p>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
25 (<span tal:condition="started" tal:content="string:$started-"/><span tal:condition="not:started">Completed:</span>
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
26 <span tal:content="here/getCompletedAt"/>)
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
27 </p>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
28 </tal:x>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
29
35
38cbbeaf266b more work on projects.
casties
parents: 34
diff changeset
30 <h1 tal:content="here/getProjectTitle">History of Scientific Objectivity, 18th-19th Cs</h1>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
31 <p class="maintext_authors">
35
38cbbeaf266b more work on projects.
casties
parents: 34
diff changeset
32 <tal:block tal:repeat="person here/getResponsibleScientistsList">
50
e30a4bd074db more cleaning up projects.
casties
parents: 49
diff changeset
33 <a tal:define="username person/username|nothing" tal:omit-tag="python:not username or not here.getStaffFolder().isActiveMember(key=person.get('key',None))"
e30a4bd074db more cleaning up projects.
casties
parents: 49
diff changeset
34 tal:attributes="href string:$root/${secmap/staff}/members/$username" tal:content="person/name"> Name of
35
38cbbeaf266b more work on projects.
casties
parents: 34
diff changeset
35 responsible person</a><tal:block tal:condition="not:repeat/person/end">, </tal:block>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
36 </tal:block>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
37 </p>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
38
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
39 <p class="maintext_more" tal:define="others here/getInvolvedScholars" tal:condition="others">
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
40 Other involved scholars: <span tal:content="structure others">Scholars </span>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
41 </p>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
42 <p class="maintext_more" tal:define="partners here/getCooperationPartners" tal:condition="partners">
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
43 Cooperation Partners: <span tal:content="structure partners">Partners</span>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
44 </p>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
45
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
46 <!-- inline image -->
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
47 <div class="pic_inline_container" tal:condition="images">
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
48 <tal:block tal:repeat="image python:images">
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
49 <div class="pic_inline">
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
50 <a tal:condition="image/width"
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
51 tal:attributes="href python:request['URL1']+'/'+image.getId()+'/showImage'" target="image"><img width="220"
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
52 tal:attributes="src image/absolute_url" alt=""/><!-- <img tal:replace="structure python:image.tag(scale=min(220.0/image.width,1), border='0')" />
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
53 --></a>
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
54 <pre tal:condition="not:image/width">empty image</pre>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
55 </div>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
56 <div class="caption_inline" tal:content="structure image/caption">
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
57 J.-A.-D. Ingres: Mme Moitessier, 1856. Oel/Lw. 120 x 92,1 cm. London, National Gallery.
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
58 </div>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
59 </tal:block>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
60 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
61 <!-- inline image -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
62
49
e40ff9829108 improved old project inline image handling.
casties
parents: 44
diff changeset
63 <div tal:content="structure python:here.getDescription(filter=True)">Project description</div>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
64
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
65 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
66
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
67 <!-- right column -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
68 <div class="sidebar" metal:fill-slot="sidebar">
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
69
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
70 <!-- this project is part of -->
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
71 <div class="sideblock"
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
72 tal:define="parents here/getSuperProjects;" tal:condition="parents">
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
73 <div class="project parent">
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
74 Part of:
40
fd8e78bbc5ed more work on projects.
casties
parents: 39
diff changeset
75 <a tal:define="parent python:parents[-1]" tal:content="parent/getLabel"
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
76 tal:attributes="href python:parent.getUrl(baseUrl=proBaseUrl)+test(here.isArchivedProject(),'?showArchive=yes','')" />
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
77 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
78 <!-- end parent -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
79 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
80 <!-- sideblock -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
81
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
82 <!-- related projects -->
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
83 <div class="sideblock" tal:define="projects here/getRelatedProjects" tal:condition="projects">
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
84 <h2>Related Projects</h2>
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
85 <div class="item" tal:repeat="project python:projects">
40
fd8e78bbc5ed more work on projects.
casties
parents: 39
diff changeset
86 <a tal:attributes="href python:proBaseUrl+'/'+project.objid"
fd8e78bbc5ed more work on projects.
casties
parents: 39
diff changeset
87 tal:content="python:project.projectWEB_title" />
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
88 </div>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
89 <!-- end item -->
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
90 </div>
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
91 <!-- sideblock -->
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
92
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
93 <!-- related publications -->
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
94 <tal:block tal:define="publications here/getRelatedPublications;">
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
95 <div class="sideblock" tal:condition="publications">
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
96 <h2>Related Publications</h2>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
97 <div class="item" tal:repeat="publication publications">
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
98 <tal:y condition="not:python:publication.hasLinkToBookPage(mode='cached')">
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
99 <tal:x condition="python:hasattr(publication,'publicationImage1')">
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
100 <a target="_blank" tal:attributes="href python:publication.publicationImage1.absolute_url()"> <img width="150"
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
101 tal:attributes="src python:publication.publicationImage1.absolute_url()" />
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
102 </a>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
103 <a tal:condition="python:hasattr(publication,'publicationImage2')" target="_blank"
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
104 tal:attributes="href python:publication.publicationImage2.absolute_url()"> <img width="150"
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
105 tal:condition="python:hasattr(publication,'publicationImage2')"
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
106 tal:attributes="src python:publication.publicationImage2.absolute_url()" />
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
107 </a>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
108 <br />
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
109 </tal:x>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
110 </tal:y>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
111 <tal:y condition="python:publication.hasLinkToBookPage(mode='cached')"
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
112 tal:define="urls python:publication.getImageUrls(mode='cached')">
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
113 <tal:x condition="python:len(urls)>0">
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
114 <a target="_blank" tal:attributes="href python:urls[0]"><img width="150" tal:attributes="src python:urls[0]" /></a>
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
115 <a tal:condition="python:len(urls)>1" target="_blank" tal:attributes="href python:urls[1]"><img width="150"
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
116 tal:attributes="src python:urls[1]" /></a>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
117 <br />
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
118 </tal:x>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
119 </tal:y>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
120 <a tal:define="link publication/link | nothing;" tal:omit-tag="not:link" tal:content="structure python:publication.text"
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
121 tal:attributes="href link"/>
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
122 <br />
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
123 <tal:x tal:condition="python:hasattr(publication,'description')"
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
124 tal:content="structure python:publication.description" />
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
125 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
126 <!-- end item -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
127 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
128 <!-- sideblock -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
129
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
130 <div class="sideblock" tal:condition="python:here.hasExtendedPublicationList()">
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
131 <h2>Further Publications</h2>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
132 <div class="item">
56
a6ace48c2bf2 publication management f?r projekte
dwinter
parents: 50
diff changeset
133 <a href="publicationsFull">Publications in the context of this project</a>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
134 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
135 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
136 </tal:block>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
137 <!-- related publications -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
138
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
139 <!-- projects covered -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
140 <div class="sideblock"
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
141 tal:define="showArchive python:(request.get('showArchive','no')=='yes');
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
142 children here/getSubProjects;"
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
143 tal:condition="children">
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
144 <h2>
43
196db636a8fd fixed sorting of project lists.
casties
parents: 40
diff changeset
145 Projects
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
146 <span class="proj_state">
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
147 <a href="?" tal:omit-tag="python:not (here.isArchivedProject() or showArchive)">current</a>
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
148 &nbsp;
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
149 <a href="?showArchive=yes" tal:omit-tag="python:here.isArchivedProject() or showArchive">completed</a>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
150 </span>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
151 </h2>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
152 <tal:y tal:repeat="child children">
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
153 <tal:x tal:condition="python:not (child.isArchivedProject() or showArchive)">
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
154 <div class="project">
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
155 <a tal:content="child/getLabel"
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
156 tal:attributes="href python:child.getUrl(baseUrl=proBaseUrl)" />
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
157 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
158 </tal:x>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
159 <tal:x tal:condition="python:child.isArchivedProject() and (here.isArchivedProject() or showArchive)">
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
160 <div class="project inactive" tal:define="started child/getStartedAt">
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
161 <a tal:content="child/getLabel"
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
162 tal:attributes="href python:child.getUrl(baseUrl=proBaseUrl)" />
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
163 (<span tal:condition="started" tal:content="string:$started-"/><tal:x tal:condition="not:started">Completed: </tal:x><span tal:content="child/getCompletedAt"/>)
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
164 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
165 </tal:x>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
166 </tal:y>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
167 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
168 <!-- projects covered -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
169
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
170 <!-- related digital sources -->
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
171 <div class="sideblock" tal:define="sources here/getRelatedDigitalSources" tal:condition="sources">
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
172 <h2>Related digital sources</h2>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
173 <div class="item" tal:content="structure sources">
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
174 digital sources
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
175 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
176 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
177
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
178 <!-- funding institutions -->
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
179 <div class="sideblock" tal:define="funding here/getFundingInstitutions" tal:condition="funding">
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
180 <h2>Funding Institutions</h2>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
181 <div class="item" tal:content="structure funding">
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
182 Funding
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
183 </div>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
184 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
185 <!-- sideblock -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
186
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
187 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
188 <!-- sidebar -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
189
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
190 </body>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
191 </html>