comparison 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
comparison
equal deleted inserted replaced
89:2f52650cb539 90:c940af028112
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html metal:use-macro="here/pro_sec_template/macros/page">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <tal:block metal:fill-slot="title">
7 <title tal:content="string:${here/getNumber} ${here/getProjectTitle}" />
8 </tal:block>
9 <tal:block metal:fill-slot="head">
10 <meta name="description" content="project"/>
11 <tal:block
12 tal:define="global proBaseUrl string:$root/${secmap/research}/projects;
13 global images here/getImageList;
14 global dept here/getDepartmentId;" />
15 </head>
16 <body>
17
18 <!-- middle column -->
19 <div class="center project" metal:fill-slot="center">
20 <!-- version header -->
21 <h2 tal:condition="not:here/isCurrentVersion">
22 This is an outdated version of this project! For the current version, please refer to
23 <a tal:define="parentUrl python:here.aq_parent.getUrl(baseUrl=proBaseUrl)"
24 tal:attributes="href parentUrl" tal:content="parentUrl"/>
25 </h2>
26 <tal:x tal:define="started here/getStartedAt" tal:condition="here/isArchivedProject">
27 <p>
28 (<span tal:condition="started" tal:content="string:$started-"/><span tal:condition="not:started">Completed:</span>
29 <span tal:content="here/getCompletedAt"/>)
30 </p>
31 </tal:x>
32 <!-- /version header -->
33
34 <h1 class="mpiwg-title" tal:content="here/getProjectTitle">History of Scientific Objectivity, 18th-19th Cs</h1>
35 <h3 class="authors mpiwg-authors">
36 <tal:block tal:repeat="person here/getResponsibleScientistsList">
37 <a class="mpiwg-author"
38 tal:define="username person/username|nothing; key person/key|nothing;"
39 tal:omit-tag="python:not username or not here.getStaffFolder().isActiveMember(key=key)"
40 tal:attributes="href string:$root/${secmap/staff}/members/$username" tal:content="person/name">
41 Name of responsible person
42 </a><tal:block tal:condition="not:repeat/person/end">, </tal:block>
43 </tal:block>
44 </h3>
45
46 <h3 class="authors" tal:define="others here/getInvolvedScholars" tal:condition="others">
47 Other involved scholars: <span tal:content="structure others">Scholars </span>
48 </h3>
49 <h3 class="authors" tal:define="partners here/getCooperationPartners" tal:condition="partners">
50 Cooperation Partners: <span tal:content="structure partners">Partners</span>
51 </h3>
52
53 <div class="description">
54 <!-- inline image -->
55 <div class="figure" tal:condition="images" tal:repeat="image python:images">
56 <div class="image">
57 <a tal:condition="image/width" tal:attributes="href python:image.getUrl()+'/showImage'" target="_blank"><img
58 tal:attributes="src image/getUrl" alt="" /></a>
59 <pre tal:condition="not:image/width">empty image</pre>
60 </div>
61 <div class="figcaption" tal:content="structure image/caption">J.-A.-D. Ingres: Mme Moitessier, 1856. Oel/Lw. 120 x 92,1
62 cm. London, National Gallery.</div>
63 </div>
64 <!-- inline image -->
65 <div tal:content="structure python:here.getDescription(filter=True)">Project description</div>
66 </div>
67
68 </div>
69
70 <!-- right column -->
71 <div class="sidebar" metal:fill-slot="sidebar">
72
73 <!-- this project is part of -->
74 <div class="sideblock"
75 tal:define="parents here/getSuperProjects;" tal:condition="parents">
76 <div class="project parent">
77 Part of:
78 <a tal:define="parent python:parents[-1]" tal:content="parent/getLabel"
79 tal:attributes="href python:parent.getUrl(baseUrl=proBaseUrl)+test(here.isArchivedProject(),'?showArchive=yes','')" />
80 </div>
81 <!-- end parent -->
82 </div>
83 <!-- sideblock -->
84
85 <!-- related projects -->
86 <div class="sideblock" tal:define="projects here/getRelatedProjectList" tal:condition="projects">
87 <h2>Related Projects</h2>
88 <div class="project" tal:repeat="project projects">
89 <a tal:attributes="href string:$proBaseUrl/${project/getProjectId}"
90 tal:content="project/getProjectLabel" />
91 </div>
92 <!-- end item -->
93 </div>
94 <!-- sideblock -->
95
96 <!-- related publications -->
97 <tal:block tal:define="publications here/getPublicationList">
98 <div class="sideblock" tal:condition="publications">
99 <h2>Related Publications</h2>
100 <tal:block tal:repeat="publication publications">
101 <div class="item" tal:define="bookid publication/getBookId" tal:condition="publication/text">
102 <tal:y condition="not:bookid">
103 <tal:x tal:define="img publication/publicationImage1 | nothing" tal:condition="img">
104 <a target="_blank" tal:attributes="href img/absolute_url"> <img width="150"
105 tal:attributes="src img/absolute_url" />
106 </a>
107 <br />
108 </tal:x>
109 <a tal:define="link publication/link | nothing;" tal:omit-tag="not:link" tal:content="structure publication/text"
110 tal:attributes="href link" />
111 </tal:y>
112 <tal:y condition="bookid">
113 <tal:x
114 tal:define="book python:here.books[bookid]; bookurl python:book.getUrl(baseUrl=root+'/'+secmap['resources']+'/books')">
115 <a tal:attributes="href bookurl"><img width="150" tal:attributes="src book/getImageUrl" /></a>
116 <br />
117 <a tal:attributes="href bookurl" tal:content="structure publication/text" />
118 </tal:x>
119 </tal:y>
120 <tal:x tal:condition="python:hasattr(publication, 'description')">
121 <div tal:content="structure publication/description" />
122 </tal:x>
123 </div><!-- end item -->
124 </tal:block>
125 </div>
126 <!-- sideblock -->
127
128 <div class="sideblock" tal:condition="here/hasAdditionalPublications">
129 <h2>Additional Publications</h2>
130 <div class="item">
131 <a class="internal" tal:attributes="href python:here.getUrl(baseUrl=proBaseUrl)+'/additional_publications_html'">
132 Publications in the context of this project
133 </a>
134 </div>
135 </div>
136 </tal:block>
137 <!-- related publications -->
138
139 <!-- projects covered -->
140 <div class="sideblock"
141 tal:define="showArchive python:(request.get('showArchive','no')=='yes');
142 children here/getSubProjects;"
143 tal:condition="children">
144 <h2>
145 Projects
146 <span class="proj_state">
147 <a href="?" tal:omit-tag="python:not (here.isArchivedProject() or showArchive)">current</a>
148 &nbsp;
149 <a href="?showArchive=yes" tal:omit-tag="python:here.isArchivedProject() or showArchive">completed</a>
150 </span>
151 </h2>
152 <tal:y tal:repeat="child children">
153 <tal:x tal:condition="python:not (child.isArchivedProject() or showArchive)">
154 <div class="project">
155 <a tal:content="child/getLabel"
156 tal:attributes="href python:child.getUrl(baseUrl=proBaseUrl)" />
157 </div>
158 </tal:x>
159 <tal:x tal:condition="python:child.isArchivedProject() and (here.isArchivedProject() or showArchive)">
160 <div class="project inactive" tal:define="started child/getStartedAt">
161 <a tal:content="child/getLabel"
162 tal:attributes="href python:child.getUrl(baseUrl=proBaseUrl)" />
163 (<span tal:condition="started" tal:content="string:$started-"/><tal:x tal:condition="not:started">Completed: </tal:x><span tal:content="child/getCompletedAt"/>)
164 </div>
165 </tal:x>
166 </tal:y>
167 </div>
168 <!-- projects covered -->
169
170 <!-- custom info blocks -->
171 <div class="sideblock" tal:repeat="block here/getInfoBlockList">
172 <h2 tal:content="block/getTitle">Info block</h2>
173 <div class="item" tal:repeat="item block/getItems">
174 <a class="external" tal:attributes="href item/link" tal:omit-tag="not:item/link"
175 tal:content="structure item/text">
176 info item
177 </a>
178 </div>
179 </div>
180
181 <!-- related digital sources -->
182 <div class="sideblock" tal:define="sources here/getRelatedDigitalSources" tal:condition="sources">
183 <h2>OLD! Related digital sources</h2>
184 <div class="item" tal:content="structure sources">
185 digital sources
186 </div>
187 </div>
188
189 <!-- funding institutions -->
190 <div class="sideblock" tal:define="funding here/getFundingInstitutions" tal:condition="funding">
191 <h2>Funding Institutions</h2>
192 <div class="item" tal:content="structure funding">
193 Funding
194 </div>
195 </div>
196 <!-- sideblock -->
197
198 </div>
199 <!-- sidebar -->
200
201 </body>
202 </html>