annotate zpt/project/project_index_html.zpt @ 90:c940af028112

add styles and meta-tags for search.
author casties
date Wed, 15 May 2013 18:48:36 +0200
parents zpt/project/project_template.zpt@975a8d88e315
children 45c7b240ee93
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>
90
c940af028112 add styles and meta-tags for search.
casties
parents: 81
diff changeset
9 <tal:block metal:fill-slot="head">
c940af028112 add styles and meta-tags for search.
casties
parents: 81
diff changeset
10 <meta name="description" content="project"/>
c940af028112 add styles and meta-tags for search.
casties
parents: 81
diff changeset
11 <tal:block
c940af028112 add styles and meta-tags for search.
casties
parents: 81
diff changeset
12 tal:define="global proBaseUrl string:$root/${secmap/research}/projects;
c940af028112 add styles and meta-tags for search.
casties
parents: 81
diff changeset
13 global images here/getImageList;
c940af028112 add styles and meta-tags for search.
casties
parents: 81
diff changeset
14 global dept here/getDepartmentId;" />
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
15 </head>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
16 <body>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
17
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
18 <!-- middle column -->
80
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
19 <div class="center project" metal:fill-slot="center">
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
20 <!-- version header -->
44
05754bca0114 updated project not current warning.
casties
parents: 43
diff changeset
21 <h2 tal:condition="not:here/isCurrentVersion">
05754bca0114 updated project not current warning.
casties
parents: 43
diff changeset
22 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
23 <a tal:define="parentUrl python:here.aq_parent.getUrl(baseUrl=proBaseUrl)"
05754bca0114 updated project not current warning.
casties
parents: 43
diff changeset
24 tal:attributes="href parentUrl" tal:content="parentUrl"/>
05754bca0114 updated project not current warning.
casties
parents: 43
diff changeset
25 </h2>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
26 <tal:x tal:define="started here/getStartedAt" tal:condition="here/isArchivedProject">
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
27 <p>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
28 (<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
29 <span tal:content="here/getCompletedAt"/>)
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
30 </p>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
31 </tal:x>
80
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
32 <!-- /version header -->
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
33
90
c940af028112 add styles and meta-tags for search.
casties
parents: 81
diff changeset
34 <h1 class="mpiwg-title" tal:content="here/getProjectTitle">History of Scientific Objectivity, 18th-19th Cs</h1>
c940af028112 add styles and meta-tags for search.
casties
parents: 81
diff changeset
35 <h3 class="authors mpiwg-authors">
35
38cbbeaf266b more work on projects.
casties
parents: 34
diff changeset
36 <tal:block tal:repeat="person here/getResponsibleScientistsList">
90
c940af028112 add styles and meta-tags for search.
casties
parents: 81
diff changeset
37 <a class="mpiwg-author"
c940af028112 add styles and meta-tags for search.
casties
parents: 81
diff changeset
38 tal:define="username person/username|nothing; key person/key|nothing;"
c940af028112 add styles and meta-tags for search.
casties
parents: 81
diff changeset
39 tal:omit-tag="python:not username or not here.getStaffFolder().isActiveMember(key=key)"
c940af028112 add styles and meta-tags for search.
casties
parents: 81
diff changeset
40 tal:attributes="href string:$root/${secmap/staff}/members/$username" tal:content="person/name">
c940af028112 add styles and meta-tags for search.
casties
parents: 81
diff changeset
41 Name of responsible person
c940af028112 add styles and meta-tags for search.
casties
parents: 81
diff changeset
42 </a><tal:block tal:condition="not:repeat/person/end">, </tal:block>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
43 </tal:block>
80
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
44 </h3>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
45
80
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
46 <h3 class="authors" tal:define="others here/getInvolvedScholars" tal:condition="others">
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
47 Other involved scholars: <span tal:content="structure others">Scholars </span>
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
48 </h3>
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
49 <h3 class="authors" tal:define="partners here/getCooperationPartners" tal:condition="partners">
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
50 Cooperation Partners: <span tal:content="structure partners">Partners</span>
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
51 </h3>
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
52
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
53 <div class="description">
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
54 <!-- inline image -->
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
55 <div class="figure" tal:condition="images" tal:repeat="image python:images">
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
56 <div class="image">
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
57 <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
58 tal:attributes="src image/getUrl" alt="" /></a>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
59 <pre tal:condition="not:image/width">empty image</pre>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
60 </div>
80
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
61 <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
62 cm. London, National Gallery.</div>
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
63 </div>
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
64 <!-- inline image -->
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
65 <div tal:content="structure python:here.getDescription(filter=True)">Project description</div>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
66 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
67
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
68 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
69
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
70 <!-- right column -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
71 <div class="sidebar" metal:fill-slot="sidebar">
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
72
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
73 <!-- this project is part of -->
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
74 <div class="sideblock"
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
75 tal:define="parents here/getSuperProjects;" tal:condition="parents">
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
76 <div class="project parent">
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
77 Part of:
40
fd8e78bbc5ed more work on projects.
casties
parents: 39
diff changeset
78 <a tal:define="parent python:parents[-1]" tal:content="parent/getLabel"
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
79 tal:attributes="href python:parent.getUrl(baseUrl=proBaseUrl)+test(here.isArchivedProject(),'?showArchive=yes','')" />
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
80 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
81 <!-- end parent -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
82 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
83 <!-- sideblock -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
84
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
85 <!-- related projects -->
61
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
86 <div class="sideblock" tal:define="projects here/getRelatedProjectList" tal:condition="projects">
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
87 <h2>Related Projects</h2>
80
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
88 <div class="project" tal:repeat="project projects">
61
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
89 <a tal:attributes="href string:$proBaseUrl/${project/getProjectId}"
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
90 tal:content="project/getProjectLabel" />
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
91 </div>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
92 <!-- end item -->
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
93 </div>
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
94 <!-- sideblock -->
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
95
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
96 <!-- related publications -->
61
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
97 <tal:block tal:define="publications here/getPublicationList">
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
98 <div class="sideblock" tal:condition="publications">
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
99 <h2>Related Publications</h2>
61
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
100 <tal:block tal:repeat="publication publications">
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
101 <div class="item" tal:define="bookid publication/getBookId" tal:condition="publication/text">
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
102 <tal:y condition="not:bookid">
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
103 <tal:x tal:define="img publication/publicationImage1 | nothing" tal:condition="img">
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
104 <a target="_blank" tal:attributes="href img/absolute_url"> <img width="150"
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
105 tal:attributes="src img/absolute_url" />
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
106 </a>
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
107 <br />
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
108 </tal:x>
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
109 <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
110 tal:attributes="href link" />
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
111 </tal:y>
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
112 <tal:y condition="bookid">
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
113 <tal:x
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
114 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
115 <a tal:attributes="href bookurl"><img width="150" tal:attributes="src book/getImageUrl" /></a>
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
116 <br />
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
117 <a tal:attributes="href bookurl" tal:content="structure publication/text" />
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
118 </tal:x>
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
119 </tal:y>
63
fd6931bd49c8 more cleaning up projects.
casties
parents: 61
diff changeset
120 <tal:x tal:condition="python:hasattr(publication, 'description')">
61
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
121 <div tal:content="structure publication/description" />
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
122 </tal:x>
80
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
123 </div><!-- end item -->
61
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
124 </tal:block>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
125 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
126 <!-- sideblock -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
127
61
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
128 <div class="sideblock" tal:condition="here/hasAdditionalPublications">
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
129 <h2>Additional Publications</h2>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
130 <div class="item">
74
e424b68244c8 better template for additional project publications.
casties
parents: 63
diff changeset
131 <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
132 Publications in the context of this project
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
133 </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
81
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
170 <!-- custom info blocks -->
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
171 <div class="sideblock" tal:repeat="block here/getInfoBlockList">
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
172 <h2 tal:content="block/getTitle">Info block</h2>
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
173 <div class="item" tal:repeat="item block/getItems">
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
174 <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
175 tal:content="structure item/text">
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
176 info item
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
177 </a>
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
178 </div>
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
179 </div>
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
180
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
181 <!-- related digital sources -->
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
182 <div class="sideblock" tal:define="sources here/getRelatedDigitalSources" tal:condition="sources">
81
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
183 <h2>OLD! Related digital sources</h2>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
184 <div class="item" tal:content="structure sources">
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
185 digital sources
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
186 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
187 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
188
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
189 <!-- funding institutions -->
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
190 <div class="sideblock" tal:define="funding here/getFundingInstitutions" tal:condition="funding">
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
191 <h2>Funding Institutions</h2>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
192 <div class="item" tal:content="structure funding">
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
193 Funding
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
194 </div>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
195 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
196 <!-- sideblock -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
197
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
198 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
199 <!-- sidebar -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
200
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
201 </body>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
202 </html>