source: indico/indico/MaKaC/webinterface/stylesheets/cdsagenda_inline_minutes.xsl @ 036d56

burotelhello-world-walkthroughipv6new-webexprov-dual-interfacev0.97-seriesv0.98-seriesv0.98.2v0.98.3v0.98b1v0.98b2v0.99v1.0v1.1
Last change on this file since 036d56 was 036d56, checked in by Pedro Ferreira <jose.pedro.ferreira@…>, 3 years ago

[FIXED] cdsagenda broken meeting styles

  • The cdsagenda, cdsagenda_inline_minutes and cdsagenda_olist showed a strange behaviour when being resized. That was due to a center tag that made them look bad in those situations.
  • Altough this was fixed, there is still another center tag in cdsagenda_inline_minutes and cdsagenda_olist that should probably be taken off as well, as the center tag is deprecated. -fixes #6
  • Property mode set to 100644
File size: 15.1 KB
Line 
1<?xml version='1.0'?>
2<!-- $Id: cdsagenda_inline_minutes.xsl,v 1.17 2009/06/19 12:44:11 jose Exp $
3
4     This file is part of CDS Indico.
5     Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 CERN.
6
7     CDS Indico is free software; you can redistribute it and/or
8     modify it under the terms of the GNU General Public License as
9     published by the Free Software Foundation; either version 2 of the
10     License, or (at your option) any later version.
11
12     CDS Indico is distributed in the hope that it will be useful, but
13     WITHOUT ANY WARRANTY; without even the implied warranty of
14     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15     General Public License for more details.
16
17     You should have received a copy of the GNU General Public License
18     along with CDS Indico; if not, write to the Free Software Foundation, Inc.,
19     59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
20-->
21
22<xsl:stylesheet version='1.0' 
23   xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
24
25<xsl:include href="include/date.xsl"/>
26<xsl:include href="include/common.xsl"/>
27<xsl:include href="include/agenda.xsl"/>
28<xsl:output method="html"/>
29
30<!-- Global object: Agenda -->
31<xsl:template match="iconf">
32
33
34<table width="99%" border="0" cellpadding="0" cellspacing="0">
35<tr>
36  <td>
37
38  <xsl:call-template name="header"/>
39
40<xsl:for-each select="./session|./contribution|./break">
41<xsl:sort select="./startDate"/>
42<xsl:variable name="day" select="substring(./startDate,0,11)"/>
43<xsl:if test="count(preceding::session[position()=1 and substring(./startDate,0,11)=$day]) = 0 and count(preceding::contribution[position()=1 and substring(./startDate,0,11)=$day]) = 0 and count(preceding::break[position()=1 and substring(./startDate,0,11)=$day]) = 0">
44        <a name="{$day}"/>
45        <br/><xsl:text disable-output-escaping="yes">&#38;nbsp;</xsl:text><br/><xsl:text disable-output-escaping="yes">&#38;nbsp;</xsl:text><b>
46        <xsl:call-template name="prettydate">
47                <xsl:with-param name="dat" select="substring(./startDate,0,11)"/>
48        </xsl:call-template>
49        </b>
50        <hr/>
51</xsl:if>
52<xsl:if test="name(.)='contribution' or name(.)='break'">
53<xsl:text disable-output-escaping="yes">
54&#60;table width="100%" cellpadding="4" cellspacing="0" border="0"&#62;
55</xsl:text>
56</xsl:if>
57<xsl:apply-templates select="."/>
58<xsl:if test="name(.)='contribution' or name(.)='break'">
59<xsl:text disable-output-escaping="yes">
60&#60;/table&#62;
61</xsl:text>
62</xsl:if>
63</xsl:for-each>
64  </td>
65</tr>
66</table>
67
68</xsl:template>
69
70
71
72<xsl:template match="session">
73<xsl:variable name="ids" select="./ID"/>
74<a name="{./ID}"/>
75<table width="100%" cellpadding="1" cellspacing="0" border="0">
76<tr class="headerselected" bgcolor="#000060">
77  <td valign="top" class="headerselected" align="left">
78    <font color="white">
79    <b>
80    <font size="+1" face="arial" color="white">
81    <xsl:value-of select="./title" disable-output-escaping="yes"/>     
82    </font>
83    </b>
84    </font>
85    <font size="-2">
86    (<xsl:value-of select="substring(./startDate,12,5)"/>
87    <xsl:if test="substring(./endDate,12,5) != '00:00'">-&gt;<xsl:value-of select="substring(./endDate,12,5)"/></xsl:if>)
88    </font>
89  </td>
90  <td valign="top" align="right">
91    <xsl:choose>
92    <xsl:when test="./description != '' or count(child::convener) != 0 or count(child::material) != 0 or count(child::location) != 0">
93    <table bgcolor="#f0c060" cellpadding="0" cellspacing="0" border="0" class="results">
94    <xsl:if test="./description != ''">
95    <tr>
96       <td valign="top">
97       <b><strong>
98        Description:
99        </strong></b>
100      </td>
101      <td valign="top" width="400" style="text-align: justify;">
102        <xsl:apply-templates select="./description"/>
103      </td>
104    </tr>
105    </xsl:if>
106    <xsl:if test="count(child::convener) != 0">
107    <tr>
108      <td valign="top">
109        <b><strong>
110        Chairperson:
111        </strong></b>
112      </td> 
113      <td>
114        <small>
115        <xsl:apply-templates select="./convener"/>
116        </small>
117      </td>
118    </tr>
119    </xsl:if>
120    <xsl:if test="count(child::location) != 0 and (../location/name != ./location/name or ../location/room != ./location/room)">
121    <tr>
122      <td valign="top">
123        <b><strong>
124        Location:
125        </strong></b>
126      </td>
127      <td>
128        <small>
129        <xsl:apply-templates select="./location"/>
130        </small>
131      </td>
132    </tr>
133    </xsl:if>
134    <xsl:if test="count(child::material) != 0">
135    <tr>
136      <td valign="top">
137        <b><strong>
138        Material:
139        </strong></b>
140      </td>
141      <td>
142        <small>
143        <xsl:for-each select="./material">
144        <xsl:apply-templates select="."><xsl:with-param name="sessionId" select="../ID"/></xsl:apply-templates>
145        </xsl:for-each>
146        </small>
147      </td>
148    </tr>
149    </xsl:if>
150    <xsl:if test="@broadcasturl != ''">
151    <tr>
152      <td valign="top">
153        <b><strong>
154          Broadcast:
155        </strong></b>
156      </td>
157      <td>
158        <small>
159        <a href="{@broadcasturl}">
160        <img src="images/camera.gif" alt="" border="0" width="33" height="24"/>
161        </a>
162        </small>
163      </td>
164    </tr>
165    </xsl:if>
166    </table>
167    </xsl:when>
168    <xsl:otherwise>
169    <xsl:text disable-output-escaping="yes">&#38;nbsp;</xsl:text>
170    </xsl:otherwise>
171    </xsl:choose>
172  </td>
173  <td style="padding-right:4px; width:23px">
174    <xsl:call-template name="displayModifIcons">
175      <xsl:with-param name="alignMenuRight">true</xsl:with-param>
176      <xsl:with-param name="item" select="."/>
177      <xsl:with-param name="confId" select="../ID"/>
178      <xsl:with-param name="sessId" select="./ID"/>
179      <xsl:with-param name="contId">null</xsl:with-param>
180      <xsl:with-param name="subContId">null</xsl:with-param>
181      <xsl:with-param name="uploadURL">Indico.Urls.UploadAction.session</xsl:with-param>
182    </xsl:call-template>
183  </td>
184</tr>
185</table>
186<xsl:if test="count(./contribution|./break) != 0">
187<table width="100%" cellpadding="4" cellspacing="0" border="0">
188<xsl:for-each select="./contribution|./break">
189        <xsl:apply-templates select="."/>
190</xsl:for-each>
191</table>
192</xsl:if>
193<br/>
194</xsl:template>
195
196
197
198<xsl:template match="contribution">
199<xsl:variable name="idt" select="./ID"/>
200<tr>
201  <td align="center" valign="top" width="1%">
202    <font color="black">
203    <b><xsl:text disable-output-escaping="yes">&#38;nbsp;</xsl:text>
204    <xsl:if test="substring(./startDate,12,5) != '00:00'">
205    <xsl:value-of select="substring(./startDate,12,5)"/> 
206    </xsl:if>
207    </b>
208    </font>
209    <xsl:if test="@broadcasturl != ''">
210    <br/><a href="{@broadcasturl}">
211    <img src="images/camera.gif" border="0" width="33" height="24"/>
212    <br/>(video broadcast)</a>
213    </xsl:if>
214  </td>
215  <xsl:choose>
216  <xsl:when test="(./location/name != ../location/name and ./location/name != '') or (./location/room != ../location/room and ./location/room != '' and ./location/room != '0--')">
217  <td align="center" valign="top" class="header" width="1%">
218    <xsl:apply-templates select="./location"/>
219  </td>
220  </xsl:when>
221  <xsl:otherwise>
222    <td width="1%" align="center" valign="top"></td>
223  </xsl:otherwise>
224  </xsl:choose>
225  <xsl:choose>
226  <xsl:when test="count(preceding-sibling::contribution) mod 2 = 1">
227  <xsl:text disable-output-escaping="yes">
228  &#60;td colspan="2" width="75%" valign="top" bgcolor="#E4E4E4"&#62;
229    &#60;table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#E4E4E4"&#62;
230  </xsl:text>
231  </xsl:when>
232  <xsl:otherwise>
233  <xsl:text disable-output-escaping="yes">
234  &#60;td colspan="2" width="75%" valign="top" bgcolor="#F6F6F6"&#62;
235    &#60;table class="tablepre" width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#F6F6F6"&#62;
236  </xsl:text>
237  </xsl:otherwise>
238  </xsl:choose>
239    <tr>
240      <td valign="top" align="left">
241        <font class="headline"><b>
242        <xsl:value-of select="./title" disable-output-escaping="yes"/>
243        </b></font> 
244        <xsl:if test="./duration != '00:00'"><small><font color="red"> (<xsl:call-template name="prettyduration"><xsl:with-param name="duration" select="./duration"/></xsl:call-template>) </font></small></xsl:if>
245        <xsl:if test="count(child::repno) != 0">(
246                <xsl:for-each select="./repno">
247                        <xsl:apply-templates select="."/> 
248            <xsl:text disable-output-escaping="yes">&#38;nbsp;</xsl:text>
249                </xsl:for-each>
250        )</xsl:if>
251        <xsl:if test="count(child::material) != 0">
252        (<xsl:for-each select="./material">
253        <xsl:apply-templates select="."><xsl:with-param name="contribId" select="../ID"/></xsl:apply-templates>
254        <xsl:text disable-output-escaping="yes">&#38;nbsp;</xsl:text>
255        </xsl:for-each>)
256        </xsl:if>
257      </td>
258      <td align="right">
259        <xsl:if test="count(child::speakers) != 0">
260        <xsl:apply-templates select="./speakers"/>
261        </xsl:if>
262      </td>
263      <td>
264        <xsl:if test="name(..) = 'session'">
265        <xsl:call-template name="displayModifIcons">       
266          <xsl:with-param name="item" select="."/>
267          <xsl:with-param name="confId" select="../../ID"/>
268          <xsl:with-param name="sessId" select="../ID"/>
269          <xsl:with-param name="contId" select="./ID" />
270          <xsl:with-param name="subContId">null</xsl:with-param>
271          <xsl:with-param name="alignMenuRight">true</xsl:with-param>
272        <xsl:with-param name="uploadURL">Indico.Urls.UploadAction.contribution</xsl:with-param>
273        </xsl:call-template>
274          </xsl:if>
275          <xsl:if test="name(..) != 'session'">
276        <xsl:call-template name="displayModifIcons">       
277          <xsl:with-param name="item" select="."/>
278          <xsl:with-param name="confId" select="../ID"/>
279          <xsl:with-param name="sessId">null</xsl:with-param>
280          <xsl:with-param name="contId" select="./ID" />
281          <xsl:with-param name="subContId">null</xsl:with-param>
282          <xsl:with-param name="alignMenuRight">true</xsl:with-param>
283          <xsl:with-param name="uploadURL">Indico.Urls.UploadAction.contribution</xsl:with-param>
284        </xsl:call-template>
285        </xsl:if>
286      </td>
287    </tr>       
288    <xsl:if test="./abstract != ''">
289    <tr>
290      <td colspan="3" style="text-align: justify">
291        <xsl:apply-templates select="./abstract"/>
292      </td>
293    </tr>
294    </xsl:if>
295    <xsl:for-each select="./material">
296      <xsl:if test="./minutesText != ''">
297      <tr>
298        <td align="center" style="padding-top:10px;padding-bottom:10px" colspan="2">
299          <table border="1" bgcolor="white" cellpadding="2" align="center" width="100%">
300            <tr>
301              <td align="center"><b>Minutes</b></td>
302            </tr>
303            <tr>
304                <td><xsl:apply-templates select="./minutesText"/></td>
305            </tr>
306          </table>
307        </td>
308      </tr>
309      </xsl:if>
310    </xsl:for-each>
311    <xsl:for-each select="subcontribution">
312      <xsl:apply-templates select="."/>
313    </xsl:for-each>
314    <xsl:text disable-output-escaping="yes">
315    &#60;/table&#62;
316  &#60;/td&#62;
317    </xsl:text>
318</tr>
319</xsl:template>
320
321
322<xsl:template match="subcontribution">
323        <xsl:variable name="idt" select="./ID"/>
324        <tr>
325                <td align="left">
326                <ul>
327                <li>
328                <b class="headline"><small>
329                <xsl:value-of select="./title" disable-output-escaping="yes"/>
330                </small></b>
331                <xsl:if test="./duration != '00:00'">
332                        <small><font color="red"> (<xsl:call-template name="prettyduration"><xsl:with-param name="duration" select="./duration"/></xsl:call-template>) </font></small>
333                </xsl:if>
334                <font color="black">
335        <xsl:if test="count(child::repno) != 0">(
336                <xsl:for-each select="./repno">
337                        <xsl:apply-templates select="."/> 
338            <xsl:text disable-output-escaping="yes">&#38;nbsp;</xsl:text>
339                </xsl:for-each>
340        )</xsl:if>
341                <xsl:if test="count(child::material) != 0">
342                        (<xsl:for-each select="./material">
343                        <xsl:apply-templates select="."><xsl:with-param name="contribId" select="../../ID"/><xsl:with-param name="subContId" select="../ID"/></xsl:apply-templates>
344                        <xsl:text disable-output-escaping="yes">&#38;nbsp;</xsl:text>
345                        </xsl:for-each>)
346                </xsl:if>
347                <xsl:if test="./abstract != ''">
348                        <br/><xsl:apply-templates select="./abstract"/>
349                </xsl:if>
350    <xsl:for-each select="./material">
351      <xsl:if test="./minutesText != ''">
352      <br/>
353          <table border="1" bgcolor="white" cellpadding="2" align="center">
354            <tr>
355              <td align="center"><b>Minutes</b></td>
356            </tr>
357            <tr>
358                <td><p class="minutes"><xsl:value-of select="./minutesText" disable-output-escaping="yes"/></p></td>
359            </tr>
360          </table>
361      </xsl:if>
362    </xsl:for-each>
363                </font>
364                </li>
365                </ul>
366
367                </td>
368                <td align="right">
369                <xsl:if test="count(child::speakers) != 0">
370                        <xsl:apply-templates select="./speakers"/>
371                </xsl:if>
372                </td>
373        <td>
374        <xsl:if test="name(../..) = 'session'">
375            <xsl:call-template name="displayModifIcons">       
376              <xsl:with-param name="item" select="."/>
377              <xsl:with-param name="confId" select="../../../ID"/>
378              <xsl:with-param name="sessId" select="../../ID"/>
379              <xsl:with-param name="contId" select="../ID" />
380              <xsl:with-param name="subContId" select="./ID"/>
381              <xsl:with-param name="alignMenuRight">true</xsl:with-param>
382              <xsl:with-param name="uploadURL">Indico.Urls.UploadAction.subContribution</xsl:with-param>
383            </xsl:call-template>
384              </xsl:if>
385              <xsl:if test="name(../..) != 'session'">
386            <xsl:call-template name="displayModifIcons">       
387              <xsl:with-param name="item" select="."/>
388              <xsl:with-param name="confId" select="../../ID"/>
389              <xsl:with-param name="sessId">null</xsl:with-param>
390              <xsl:with-param name="contId" select="../ID" />
391              <xsl:with-param name="subContId" select="./ID"/>
392              <xsl:with-param name="alignMenuRight">true</xsl:with-param>
393              <xsl:with-param name="uploadURL">Indico.Urls.UploadAction.subContribution</xsl:with-param>
394            </xsl:call-template>
395            </xsl:if>
396        </td>
397        </tr>
398</xsl:template>
399
400
401<xsl:template match="break">
402<tr class="header">
403        <td align="center" valign="top" width="1%">
404                <font color="black">
405                <b><xsl:text disable-output-escaping="yes">&#38;nbsp;</xsl:text>
406                <xsl:if test="substring(./startDate,12,5) != '00:00'">
407                        <xsl:value-of select="substring(./startDate,12,5)"/> 
408                </xsl:if>
409                </b>
410                </font>
411        </td>
412        <td colspan="3">
413                <center>
414
415                <xsl:call-template name="displayModifIcons">
416                    <xsl:with-param name="item" select="."/>
417                </xsl:call-template>
418
419                <xsl:value-of select="./name" disable-output-escaping="yes"/>
420                </center>
421        </td>
422</tr>
423</xsl:template>
424
425
426<xsl:template match="chair|announcer|convener">
427        <xsl:for-each select="./user|./UnformatedUser">
428        <xsl:apply-templates select=".">
429                <xsl:with-param name="span"></xsl:with-param>
430        </xsl:apply-templates>
431        <xsl:if test="count(following-sibling) != 0">,</xsl:if>
432        </xsl:for-each>
433</xsl:template>
434
435
436<xsl:template match="convener|speakers">
437        <xsl:for-each select="./user|./UnformatedUser">
438        <xsl:apply-templates select=".">
439                <xsl:with-param name="span"></xsl:with-param>
440        </xsl:apply-templates>
441        <xsl:if test="count(following-sibling) != 0">,<xsl:text disable-output-escaping="yes"> </xsl:text></xsl:if>
442        </xsl:for-each>
443</xsl:template>
444
445
446</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.