annotate zpt/project/project_template.zpt @ 81:975a8d88e315

new editable info blocks for projects. removed RelatedDigitalSources. updateAllProjects converts to info block.
author casties
date Fri, 10 May 2013 17:32:53 +0200
parents b1893c4c9d2c
children
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 -->
80
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
17 <div class="center project" metal:fill-slot="center">
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
18 <!-- version header -->
44
05754bca0114 updated project not current warning.
casties
parents: 43
diff changeset
19 <h2 tal:condition="not:here/isCurrentVersion">
05754bca0114 updated project not current warning.
casties
parents: 43
diff changeset
20 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
21 <a tal:define="parentUrl python:here.aq_parent.getUrl(baseUrl=proBaseUrl)"
05754bca0114 updated project not current warning.
casties
parents: 43
diff changeset
22 tal:attributes="href parentUrl" tal:content="parentUrl"/>
05754bca0114 updated project not current warning.
casties
parents: 43
diff changeset
23 </h2>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
24 <tal:x tal:define="started here/getStartedAt" tal:condition="here/isArchivedProject">
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
25 <p>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
26 (<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
27 <span tal:content="here/getCompletedAt"/>)
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
28 </p>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
29 </tal:x>
80
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
30 <!-- /version header -->
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
31
35
38cbbeaf266b more work on projects.
casties
parents: 34
diff changeset
32 <h1 tal:content="here/getProjectTitle">History of Scientific Objectivity, 18th-19th Cs</h1>
80
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
33 <h3 class="authors">
35
38cbbeaf266b more work on projects.
casties
parents: 34
diff changeset
34 <tal:block tal:repeat="person here/getResponsibleScientistsList">
80
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
35 <a tal:define="username person/username|nothing; key person/key|nothing;"
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
36 tal:omit-tag="python:not username or not here.getStaffFolder().isActiveMember(key=key)"
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
37 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
38 responsible person</a><tal:block tal:condition="not:repeat/person/end">, </tal:block>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
39 </tal:block>
80
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
40 </h3>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
41
80
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
42 <h3 class="authors" tal:define="others here/getInvolvedScholars" tal:condition="others">
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
43 Other involved scholars: <span tal:content="structure others">Scholars </span>
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
44 </h3>
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
45 <h3 class="authors" tal:define="partners here/getCooperationPartners" tal:condition="partners">
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
46 Cooperation Partners: <span tal:content="structure partners">Partners</span>
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
47 </h3>
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
48
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
49 <div class="description">
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
50 <!-- inline image -->
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
51 <div class="figure" tal:condition="images" tal:repeat="image python:images">
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
52 <div class="image">
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
53 <a tal:condition="image/width" tal:attributes="href python:image.getUrl()+'/showImage'" target="_blank"><img
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
54 tal:attributes="src image/getUrl" alt="" /></a>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
55 <pre tal:condition="not:image/width">empty image</pre>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
56 </div>
80
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
57 <div class="figcaption" tal:content="structure image/caption">J.-A.-D. Ingres: Mme Moitessier, 1856. Oel/Lw. 120 x 92,1
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
58 cm. London, National Gallery.</div>
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
59 </div>
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
60 <!-- inline image -->
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
61 <div tal:content="structure python:here.getDescription(filter=True)">Project description</div>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
62 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
63
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
64 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
65
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
66 <!-- right column -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
67 <div class="sidebar" metal:fill-slot="sidebar">
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
68
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
69 <!-- this project is part of -->
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
70 <div class="sideblock"
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
71 tal:define="parents here/getSuperProjects;" tal:condition="parents">
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
72 <div class="project parent">
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
73 Part of:
40
fd8e78bbc5ed more work on projects.
casties
parents: 39
diff changeset
74 <a tal:define="parent python:parents[-1]" tal:content="parent/getLabel"
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
75 tal:attributes="href python:parent.getUrl(baseUrl=proBaseUrl)+test(here.isArchivedProject(),'?showArchive=yes','')" />
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
76 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
77 <!-- end parent -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
78 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
79 <!-- sideblock -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
80
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
81 <!-- related projects -->
61
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
82 <div class="sideblock" tal:define="projects here/getRelatedProjectList" tal:condition="projects">
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
83 <h2>Related Projects</h2>
80
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
84 <div class="project" tal:repeat="project projects">
61
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
85 <a tal:attributes="href string:$proBaseUrl/${project/getProjectId}"
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
86 tal:content="project/getProjectLabel" />
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
87 </div>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
88 <!-- end item -->
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
89 </div>
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
90 <!-- sideblock -->
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
91
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
92 <!-- related publications -->
61
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
93 <tal:block tal:define="publications here/getPublicationList">
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
94 <div class="sideblock" tal:condition="publications">
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
95 <h2>Related Publications</h2>
61
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
96 <tal:block tal:repeat="publication publications">
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
97 <div class="item" tal:define="bookid publication/getBookId" tal:condition="publication/text">
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
98 <tal:y condition="not:bookid">
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
99 <tal:x tal:define="img publication/publicationImage1 | nothing" tal:condition="img">
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
100 <a target="_blank" tal:attributes="href img/absolute_url"> <img width="150"
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
101 tal:attributes="src img/absolute_url" />
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
102 </a>
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
103 <br />
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
104 </tal:x>
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
105 <a tal:define="link publication/link | nothing;" tal:omit-tag="not:link" tal:content="structure publication/text"
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
106 tal:attributes="href link" />
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
107 </tal:y>
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
108 <tal:y condition="bookid">
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
109 <tal:x
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
110 tal:define="book python:here.books[bookid]; bookurl python:book.getUrl(baseUrl=root+'/'+secmap['resources']+'/books')">
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
111 <a tal:attributes="href bookurl"><img width="150" tal:attributes="src book/getImageUrl" /></a>
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
112 <br />
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
113 <a tal:attributes="href bookurl" tal:content="structure publication/text" />
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
114 </tal:x>
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
115 </tal:y>
63
fd6931bd49c8 more cleaning up projects.
casties
parents: 61
diff changeset
116 <tal:x tal:condition="python:hasattr(publication, 'description')">
61
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
117 <div tal:content="structure publication/description" />
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
118 </tal:x>
80
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
119 </div><!-- end item -->
61
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
120 </tal:block>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
121 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
122 <!-- sideblock -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
123
61
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
124 <div class="sideblock" tal:condition="here/hasAdditionalPublications">
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
125 <h2>Additional Publications</h2>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
126 <div class="item">
74
e424b68244c8 better template for additional project publications.
casties
parents: 63
diff changeset
127 <a class="internal" tal:attributes="href python:here.getUrl(baseUrl=proBaseUrl)+'/additional_publications_html'">
61
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
128 Publications in the context of this project
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
129 </a>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
130 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
131 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
132 </tal:block>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
133 <!-- related publications -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
134
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
135 <!-- projects covered -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
136 <div class="sideblock"
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
137 tal:define="showArchive python:(request.get('showArchive','no')=='yes');
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
138 children here/getSubProjects;"
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
139 tal:condition="children">
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
140 <h2>
43
196db636a8fd fixed sorting of project lists.
casties
parents: 40
diff changeset
141 Projects
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
142 <span class="proj_state">
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
143 <a href="?" tal:omit-tag="python:not (here.isArchivedProject() or showArchive)">current</a>
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
144 &nbsp;
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
145 <a href="?showArchive=yes" tal:omit-tag="python:here.isArchivedProject() or showArchive">completed</a>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
146 </span>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
147 </h2>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
148 <tal:y tal:repeat="child children">
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
149 <tal:x tal:condition="python:not (child.isArchivedProject() or showArchive)">
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
150 <div class="project">
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
151 <a tal:content="child/getLabel"
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
152 tal:attributes="href python:child.getUrl(baseUrl=proBaseUrl)" />
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
153 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
154 </tal:x>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
155 <tal:x tal:condition="python:child.isArchivedProject() and (here.isArchivedProject() or showArchive)">
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
156 <div class="project inactive" tal:define="started child/getStartedAt">
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
157 <a tal:content="child/getLabel"
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
158 tal:attributes="href python:child.getUrl(baseUrl=proBaseUrl)" />
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
159 (<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
160 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
161 </tal:x>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
162 </tal:y>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
163 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
164 <!-- projects covered -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
165
81
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
166 <!-- custom info blocks -->
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
167 <div class="sideblock" tal:repeat="block here/getInfoBlockList">
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
168 <h2 tal:content="block/getTitle">Info block</h2>
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
169 <div class="item" tal:repeat="item block/getItems">
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
170 <a class="external" tal:attributes="href item/link" tal:omit-tag="not:item/link"
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
171 tal:content="structure item/text">
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
172 info item
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
173 </a>
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
174 </div>
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
175 </div>
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
176
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
177 <!-- related digital sources -->
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
178 <div class="sideblock" tal:define="sources here/getRelatedDigitalSources" tal:condition="sources">
81
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
179 <h2>OLD! Related digital sources</h2>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
180 <div class="item" tal:content="structure sources">
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
181 digital sources
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
182 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
183 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
184
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
185 <!-- funding institutions -->
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
186 <div class="sideblock" tal:define="funding here/getFundingInstitutions" tal:condition="funding">
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
187 <h2>Funding Institutions</h2>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
188 <div class="item" tal:content="structure funding">
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
189 Funding
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
190 </div>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
191 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
192 <!-- sideblock -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
193
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
194 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
195 <!-- sidebar -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
196
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
197 </body>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
198 </html>