Subversion Repositories bacoAlunos

Rev

Rev 1570 | Rev 1572 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1569 jmachado 1
<?xml version="1.0" encoding="UTF-8"?>
2
<xsl:stylesheet version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format"
3
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4
 
5
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6
                xsi:schemaLocation="http://www.w3.org/1999/XSL/Format http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk/fop/src/foschema/fop.xsd">
1571 jmachado 7
    <xsl:import href="report.fo.xsl"/>
1569 jmachado 8
    <xsl:import href="utilsReports.fo.xsl"/>
9
    <xsl:import href="docenteReportGuiaoAvaliacaoDesempenho.fo.xsl"/>
10
 
11
    <xsl:param name="site">http://localhost/bacoTESTE</xsl:param>
12
    <xsl:param name="updateDate">EM FALTA</xsl:param>
13
    <xsl:param name="anoLectivo"><xsl:value-of select="//anoLectivo"/></xsl:param>
1570 jmachado 14
    <xsl:param name="nomeCurso"><xsl:value-of select="//cursoStats/nomeCurso"/></xsl:param>
15
    <xsl:param name="codigoCurso"><xsl:value-of select="//cursoStats/codigoCurso"/></xsl:param>
16
    <xsl:param name="instituicao"><xsl:value-of select="//cursoStats/nomeInstituicao"/></xsl:param>
17
    <xsl:param name="abreviatura"><xsl:value-of select="//cursoStats/abreviaturaInstituicao"/></xsl:param>
1569 jmachado 18
 
19
 
20
    <xsl:template match="/">
21
        <!--<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="Helvetica" color="#58585A">-->
22
        <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="Helvetica" color="black">
23
            <fo:layout-master-set>
24
                <fo:simple-page-master master-name="A4Vertical" page-width="210mm" page-height="297mm"
25
                                       margin-top="1cm" margin-bottom="1cm" margin-left="1cm" margin-right="1cm"
26
                                       reference-orientation="0">
27
                    <fo:region-body region-name="body" margin-top="40mm" margin-bottom="10mm" margin-right="0"
28
                                    margin-left="0"/>
29
 
30
                    <fo:region-before region-name="header" extent="15mm"/>
31
                    <fo:region-after region-name="footer" extent="1cm"/>
32
                </fo:simple-page-master>
33
 
34
                <fo:simple-page-master master-name="A4VerticalFirstPage" page-width="210mm" page-height="297mm"
35
                                       margin-top="1cm" margin-bottom="1cm" margin-left="1cm" margin-right="1cm"
36
                                       reference-orientation="0">
37
                    <fo:region-body region-name="body" margin-top="90mm" margin-bottom="10mm" margin-right="0"
38
                                    margin-left="0"/>
39
 
40
                    <fo:region-before region-name="header" extent="15mm"/>
41
                    <fo:region-after region-name="footer" extent="1cm"/>
42
                </fo:simple-page-master>
43
 
44
 
45
 
46
                <fo:simple-page-master master-name="A4HorizontalRot" page-width="210mm" page-height="297mm"
47
                                       margin-top="0.5cm" margin-bottom="0.5cm" margin-left="0.5cm" margin-right="0.5cm"
48
                                       reference-orientation="90">
49
                    <fo:region-body region-name="body" margin-top="20mm" margin-bottom="10mm" margin-right="0"
50
                                    margin-left="0"/>
51
                    <fo:region-before region-name="header" extent="15mm"/>
52
                    <fo:region-after region-name="footer" extent="1cm"/>
53
                </fo:simple-page-master>
54
                <fo:simple-page-master master-name="A4Horizontal" page-width="297mm" page-height="210mm"
55
                                       margin-top="0.5cm" margin-bottom="0.5cm" margin-left="0.5cm"
56
                                       margin-right="0.5cm">
57
                    <fo:region-body region-name="body" margin-top="20mm" margin-bottom="15mm" margin-right="0"
58
                                    margin-left="0"/>
59
                    <fo:region-before region-name="header" extent="15mm"/>
60
                    <fo:region-after region-name="footer" extent="1cm"/>
61
                </fo:simple-page-master>
62
                <fo:page-sequence-master master-name="pages">
63
                    <fo:repeatable-page-master-alternatives>
64
                        <fo:conditional-page-master-reference master-reference="pages" page-position="any"/>
65
                    </fo:repeatable-page-master-alternatives>
66
                </fo:page-sequence-master>
67
            </fo:layout-master-set>
68
 
69
            <!--LAYOUT DE PAGINA ESCOLHIDO-->
70
 
71
            <fo:page-sequence master-reference="A4VerticalFirstPage" initial-page-number="1">
72
                <xsl:call-template name="firstpage"/>
73
            </fo:page-sequence>
74
            <fo:page-sequence master-reference="A4Vertical" initial-page-number="2">
75
                <xsl:call-template name="indexPage"/>
76
            </fo:page-sequence>
77
            <fo:page-sequence master-reference="A4Vertical" initial-page-number="3">
78
                <xsl:call-template name="page"/>
79
            </fo:page-sequence>
80
 
81
 
82
        </fo:root>
83
    </xsl:template>
84
 
85
    <xsl:template name="headerTeacher">
1570 jmachado 86
        <xsl:call-template name="headerPae">
87
            <xsl:with-param name="anoLectivo" select="$anoLectivo"/>
88
            <xsl:with-param name="color_entity">#fff9ea</xsl:with-param>
89
            <xsl:with-param name="title">Relatório de Avaliação Pedagógica</xsl:with-param>
90
            <xsl:with-param name="subtitle">Avaliação das Unidades Curriculares pelos Alunos</xsl:with-param>
91
            <xsl:with-param name="subtitleRight">Resultados dos Inquéritos Pedagógicos</xsl:with-param>
92
            <xsl:with-param name="entity"><xsl:value-of select="$nomeCurso"/> / código: <xsl:value-of select="$codigoCurso"/></xsl:with-param>
93
        </xsl:call-template>
1569 jmachado 94
    </xsl:template>
95
 
96
    <xsl:template name="footerDefault">
1570 jmachado 97
        <xsl:call-template name="footerPae">
98
            <xsl:with-param name="sgqDoc">IPP.SI.QP-3-Rev.0</xsl:with-param>
99
            <xsl:with-param name="updateDate" select="$updateDate"/>
100
        </xsl:call-template>
1569 jmachado 101
    </xsl:template>
102
 
103
    <xsl:template name="indexPage">
104
 
1570 jmachado 105
        <xsl:call-template name="headerTeacher"/>
106
        <xsl:call-template name="footerDefault"/>
1569 jmachado 107
 
1570 jmachado 108
 
109
        <fo:flow flow-name="body">
1571 jmachado 110
            <fo:block  font-size="20px" padding="4px" margin-top="5px" text-align="center" >
1569 jmachado 111
                <fo:inline text-decoration="underline" font-weight="bold">Índice</fo:inline>
112
            </fo:block>
113
            <fo:block text-align-last="justify" font-weight="bold" margin-bottom="5px">
114
                <xsl:text> </xsl:text>
115
                <fo:leader/>
116
                Pag.
117
            </fo:block>
118
 
1570 jmachado 119
            <xsl:call-template name="indexEntry">
120
                <xsl:with-param name="sectionNumber">1</xsl:with-param>
121
                <xsl:with-param name="sectionTitle">Participação nos questionários do Curso</xsl:with-param>
122
                <xsl:with-param name="id">capParticipacao</xsl:with-param>
123
            </xsl:call-template>
1569 jmachado 124
 
1570 jmachado 125
            <xsl:call-template name="indexEntry">
126
                <xsl:with-param name="sectionNumber">2</xsl:with-param>
127
                <xsl:with-param name="sectionTitle">Taxas de Resposta</xsl:with-param>
128
                <xsl:with-param name="id">capTaxasResposta</xsl:with-param>
129
            </xsl:call-template>
1569 jmachado 130
 
1571 jmachado 131
            <xsl:call-template name="indexEntry">
132
                <xsl:with-param name="sectionNumber">3</xsl:with-param>
133
                <xsl:with-param name="sectionTitle">Evolução das Taxas de Resposta</xsl:with-param>
134
                <xsl:with-param name="id">capEvoTaxasResposta</xsl:with-param>
135
            </xsl:call-template>
136
 
137
            <xsl:call-template name="indexEntry">
138
                <xsl:with-param name="sectionNumber">4</xsl:with-param>
139
                <xsl:with-param name="sectionTitle">Análise das questões agregadas do grupo Unidade Curricular</xsl:with-param>
140
                <xsl:with-param name="id">capQuestoesAgregadasUnidades</xsl:with-param>
141
            </xsl:call-template>
142
 
143
            <xsl:call-template name="indexEntry">
144
                <xsl:with-param name="sectionNumber">5</xsl:with-param>
145
                <xsl:with-param name="sectionTitle">Análise das questões agregadas do grupo Instalações/Equipamentos/Outros Recursos </xsl:with-param>
146
                <xsl:with-param name="id">capQuestoesAgregadasSalas</xsl:with-param>
147
            </xsl:call-template>
148
 
149
            <xsl:call-template name="indexEntry">
150
                <xsl:with-param name="sectionNumber">6</xsl:with-param>
151
                <xsl:with-param name="sectionTitle">Análise das questões em cada Unidade curricular do curso individualmente </xsl:with-param>
152
                <xsl:with-param name="id">capQuestoesUnidade</xsl:with-param>
153
            </xsl:call-template>
154
 
155
            <!-- Estes fors organizam primeiro por curso, neste caso o curso é so um mas o for fica assim para se reaproveitar para
156
            o relatorio de Cursos com todo os cursos -->
157
            <xsl:for-each select="//cursoStats/unidadesStats/unidadeStats[not(nomeCurso/text() = preceding-sibling::unidadeStats/nomeCurso/text())]">
158
                <xsl:sort select="text()" data-type="text" />
159
                <xsl:variable name="nomeCurso" select="nomeCurso/text()"/>
160
                <xsl:for-each select="../unidadeStats[nomeCurso/text() = $nomeCurso]">
161
                    <xsl:sort select="nomeUnidade/text()" data-type="text" />
162
                    <xsl:call-template name="subIndexEntry">
163
                        <xsl:with-param name="sectionNumber">6.<xsl:value-of select="position()"/></xsl:with-param>
164
                        <xsl:with-param name="sectionTitle"><xsl:value-of select="nomeUnidade"/></xsl:with-param>
165
                        <xsl:with-param name="id">UNIDADE_CURICULAR<xsl:value-of select="codigoUnidade"/></xsl:with-param>
166
                    </xsl:call-template>
167
                </xsl:for-each>
168
            </xsl:for-each>
169
 
170
            <!--
171
                Grafico de barras horizontais com media unidades e media salas
172
                Tabela com todas as metricas Media Desvios e Média Curso Média Escola + respostas
173
                Tabela com todas as métricas de todas as questões mais média + nº respostas
174
            -->
175
            <xsl:call-template name="indexEntry">
176
                <xsl:with-param name="sectionNumber">7</xsl:with-param>
177
                <xsl:with-param name="sectionTitle">Análise comparativa das Unidades Curriculares</xsl:with-param>
178
                <xsl:with-param name="id">capComparativaUnidades</xsl:with-param>
179
            </xsl:call-template>
180
 
181
            <xsl:call-template name="subIndexEntry">
182
                <xsl:with-param name="sectionNumber">7.1</xsl:with-param>
183
                <xsl:with-param name="sectionTitle">Gráfico de comparativo de todas as unidades</xsl:with-param>
184
                <xsl:with-param name="id">capComparativaUnidades</xsl:with-param>
185
            </xsl:call-template>
186
            capComparativaUnidadesSortMediaUnidade
187
            <xsl:call-template name="subIndexEntry">
188
                <xsl:with-param name="sectionNumber">7.2</xsl:with-param>
189
                <xsl:with-param name="sectionTitle">Gráfico de comparativo de todas as unidades (ordenado pela Média da Unidade)</xsl:with-param>
190
                <xsl:with-param name="id">capComparativaUnidadesSortMediaUnidades</xsl:with-param>
191
            </xsl:call-template>
192
 
193
            <xsl:call-template name="subIndexEntry">
194
                <xsl:with-param name="sectionNumber">7.3</xsl:with-param>
195
                <xsl:with-param name="sectionTitle">Gráfico de comparativo de todas as unidades (ordenado pela Média das Instalações/Equipamentos/Outros Recursos)</xsl:with-param>
196
                <xsl:with-param name="id">capComparativaUnidadesSortMediaSalas</xsl:with-param>
197
            </xsl:call-template>
198
 
199
            <xsl:call-template name="subIndexEntry">
200
                <xsl:with-param name="sectionNumber">7.4</xsl:with-param>
201
                <xsl:with-param name="sectionTitle">Tabela de médias de todas as unidades vs curso e escola</xsl:with-param>
202
                <xsl:with-param name="id">capComparativaUnidadesTable</xsl:with-param>
203
            </xsl:call-template>
204
 
205
            <xsl:call-template name="subIndexEntry">
206
                <xsl:with-param name="sectionNumber">7.5</xsl:with-param>
207
                <xsl:with-param name="sectionTitle">Tabela das médias de todas as questões por unidade</xsl:with-param>
208
                <xsl:with-param name="id">capComparativaUnidadesPerguntas</xsl:with-param>
209
            </xsl:call-template>
210
 
211
 
212
            <xsl:call-template name="indexEntry">
213
                <xsl:with-param name="sectionNumber">8</xsl:with-param>
214
                <xsl:with-param name="sectionTitle">Evolução das médias das Unidades Curriculares</xsl:with-param>
215
                <xsl:with-param name="id">capQuestoesUnidade</xsl:with-param>
216
            </xsl:call-template>
217
 
218
 
1569 jmachado 219
        </fo:flow>
220
    </xsl:template>
221
 
222
    <xsl:template name="firstpage">
1570 jmachado 223
        <xsl:call-template name="headerIpp"/>
224
        <xsl:call-template name="footerDefault"/>
1569 jmachado 225
 
226
 
227
        <fo:flow flow-name="body">
228
            <fo:block border-bottom="8px solid #58585A" border-top="4px solid #58585A" font-size="26px" padding="6px" text-align="center" color="white" background-color="#FFCA44">
229
                <fo:inline font-weight="bold"> Relatório de Avaliação Pedagógica</fo:inline>
230
            </fo:block>
231
 
232
            <fo:block  font-size="20px" padding="4px" margin-top="40px" text-align="center" >
233
                <fo:inline text-decoration="underline" font-weight="bold">Inquéritos Pedagógicos aos Alunos</fo:inline>
234
            </fo:block>
235
 
236
            <fo:block font-size="18px" padding="4px" margin-top="20px" text-align="center">
1570 jmachado 237
                <fo:inline>Relatório de Curso para a Comunidade Académica</fo:inline>
1569 jmachado 238
            </fo:block>
239
 
240
            <fo:block font-size="14px" padding="4px" margin-top="5px" text-align="center" background-color="#fff9ea">
1570 jmachado 241
                <xsl:value-of select="$nomeCurso"/>
1569 jmachado 242
            </fo:block>
243
            <fo:block font-size="12px" padding="4px" margin-top="2px" text-align="center">
1570 jmachado 244
                <fo:inline>Código: <xsl:value-of select="$codigoCurso"/></fo:inline>
1569 jmachado 245
            </fo:block>
246
            <fo:block font-size="12px" padding="4px" margin-top="20px" text-align="center" >
247
                <fo:inline><fo:wrapper white-space-treatment="preserve" font-weight="bold">Ano letivo: </fo:wrapper> <xsl:value-of select="$anoLectivo"/></fo:inline>
248
            </fo:block>
249
            <fo:block font-size="12px" padding="4px" margin-top="20px" text-align="center" >
250
                <fo:inline><fo:wrapper white-space-treatment="preserve" font-weight="bold">Periodos Considerados: </fo:wrapper> <xsl:for-each select="//semestres/string"><xsl:value-of select="."/>; </xsl:for-each></fo:inline>
251
            </fo:block>
1570 jmachado 252
            <!--<fo:block font-size="12px" padding="4px" margin-top="20px" text-align="center" >
1569 jmachado 253
                <fo:inline><fo:wrapper white-space-treatment="preserve" font-weight="bold">Oferta Formativa Considerada: </fo:wrapper> <xsl:for-each select="//degrees/string"><xsl:value-of select="."/>; </xsl:for-each></fo:inline>
1570 jmachado 254
            </fo:block>-->
1569 jmachado 255
        </fo:flow>
256
    </xsl:template>
257
 
258
    <xsl:template name="page">
259
 
1570 jmachado 260
        <xsl:call-template name="headerTeacher"/>
261
        <xsl:call-template name="footerDefault"/>
262
 
263
 
1569 jmachado 264
        <fo:flow flow-name="body">
265
 
266
 
267
            <xsl:call-template name="CAP_participacao"/>
268
 
1570 jmachado 269
            <xsl:call-template name="CAP_taxasResposta"/>
1569 jmachado 270
 
1571 jmachado 271
            <xsl:call-template name="CAP_evoTaxasResposta"/>
1569 jmachado 272
 
1571 jmachado 273
            <xsl:call-template name="CAP_analise_questoes_UNIDADE"/>
1569 jmachado 274
 
1571 jmachado 275
            <xsl:call-template name="CAP_analise_questoes_SALAS"/>
1569 jmachado 276
 
1571 jmachado 277
            <xsl:apply-templates  select="//cursoStats/unidadesStats" mode="unidadePorUnidade">
278
                <xsl:with-param name="CAP_PONTO">6</xsl:with-param>
279
                <xsl:with-param name="CAP_ID">capQuestoesUnidade</xsl:with-param>
280
            </xsl:apply-templates>
281
 
282
            <xsl:call-template name="CAP_analise_comparativa_unidades"/>
283
 
284
 
1569 jmachado 285
        </fo:flow>
286
    </xsl:template>
287
 
288
 
289
 
290
    <!-- ############################################################# -->
1570 jmachado 291
    <!-- 1 - CAPITULO ANALISE PARTICIPACAO PONTOS                      -->
1569 jmachado 292
    <!-- ############################################################# -->
293
 
294
    <xsl:template name="CAP_participacao">
295
        <fo:block-container padding="0" margin="0" border="0" id="capParticipacao" page-break-before="always">
296
            <xsl:call-template name="seccao">
297
                <xsl:with-param name="text">1 - Participação</xsl:with-param>
298
                <xsl:with-param name="marginTop">0</xsl:with-param>
299
            </xsl:call-template>
300
        </fo:block-container>
301
        <xsl:call-template name="subSeccao">
1570 jmachado 302
            <xsl:with-param name="text">Taxa Global de Participação aos Questionários do Curso</xsl:with-param>
1569 jmachado 303
        </xsl:call-template>
304
 
305
        <fo:block-container font-size="18" margin-left="10px" text-align="center" font-weight="bold">
306
            <xsl:call-template name="barraPercentil">
307
                <xsl:with-param name="valor" select="//questionariosReqRespondidosPercentagem"/>
308
                <xsl:with-param name="colors">true</xsl:with-param>
309
                <xsl:with-param name="backgroundColorPercentage" select="//questionariosReqRespondidosPercentagemColor"/>
310
            </xsl:call-template>
311
        </fo:block-container>
312
 
1570 jmachado 313
        <fo:block  margin-left="10px" margin-top="0">
1569 jmachado 314
 
315
            <fo:table width="100%" table-layout="fixed">
316
                <fo:table-column column-width="50%"/>
317
                <fo:table-column column-width="50%"/>
318
                <fo:table-body>
319
                    <fo:table-row>
320
                        <fo:table-cell margin="0" padding="0">
321
 
322
 
323
                            <xsl:call-template name="subSeccao">
324
                                <xsl:with-param name="text">
325
                                    Taxa de Participação
326
                                </xsl:with-param>
1570 jmachado 327
                                <xsl:with-param name="marginBottom">0</xsl:with-param>
1569 jmachado 328
                            </xsl:call-template>
329
                            <fo:block display-align="center" text-align="center" margin-left="10px">
330
                                <xsl:variable name="src"><xsl:value-of select="//pathGraficoTaxaRespostaAlunos"/></xsl:variable>
331
                                <fo:external-graphic width="auto" height="auto" content-width="250" src="{$src}"/>
332
                            </fo:block>
333
 
334
                        </fo:table-cell>
335
                        <fo:table-cell margin="0" padding="0">
336
                            <xsl:call-template name="subSeccao">
337
                                <xsl:with-param name="text">
338
                                    Taxa de Resposta a Questionarios
339
                                </xsl:with-param>
1570 jmachado 340
                                <xsl:with-param name="marginBottom">0</xsl:with-param>
1569 jmachado 341
                            </xsl:call-template>
342
                            <fo:block display-align="center" text-align="center" margin-left="10px">
343
                                <xsl:variable name="src"><xsl:value-of select="//pathGraficoTaxaRespostaQuestionarios"/></xsl:variable>
344
                                <fo:external-graphic width="auto" height="auto" content-width="250" src="{$src}"/>
345
                            </fo:block>
346
 
347
                        </fo:table-cell>
348
                    </fo:table-row>
349
                </fo:table-body>
350
            </fo:table>
351
        </fo:block>
352
 
353
        <fo:block text-align="center" margin-left="10px">
354
            <fo:table width="100%" table-layout="fixed">
355
                <fo:table-column column-width="50%"/>
356
                <fo:table-column column-width="50%"/>
357
                <fo:table-body>
358
                    <fo:table-row>
359
                        <fo:table-cell>
360
 
361
                            <xsl:call-template name="subSeccao">
362
                                <xsl:with-param name="text">
363
                                    Género
364
                                </xsl:with-param>
365
                            </xsl:call-template>
366
 
367
                            <fo:block>
368
                                <fo:table width="90%" table-layout="fixed" >
369
                                    <fo:table-column column-width="50%"/>
370
                                    <fo:table-column column-width="50%"/>
371
                                    <fo:table-body>
372
                                        <fo:table-row>
373
                                            <fo:table-cell>
374
                                                <fo:block>
375
                                                    <xsl:value-of select="//masculinoComResposta"/>
376
                                                </fo:block>
377
                                                <fo:block>
378
                                                    <xsl:variable name="src">url('<xsl:value-of select="$site"/>/imgs/studentMale.png')</xsl:variable>
379
                                                    <fo:external-graphic height="auto" width="auto"
380
                                                                         content-height="120" src="{$src}"/>
381
                                                </fo:block>
382
                                                <fo:block>
383
                                                    <xsl:value-of select="//masculinoComRespostaPercent"/>%
384
                                                </fo:block>
385
                                            </fo:table-cell>
386
                                            <fo:table-cell>
387
                                                <fo:block>
388
                                                    <xsl:value-of select="//femininoComResposta"/>
389
                                                </fo:block>
390
                                                <fo:block>
391
                                                    <xsl:variable name="src">url('<xsl:value-of select="$site"/>/imgs/studentFemale.png')</xsl:variable>
392
                                                    <fo:external-graphic height="auto" width="auto"
393
                                                                         content-height="120" src="{$src}"/>
394
                                                </fo:block>
395
                                                <fo:block>
396
                                                    <xsl:value-of select="//femininoComRespostaPercent"/>%
397
                                                </fo:block>
398
                                            </fo:table-cell>
399
                                        </fo:table-row>
400
                                    </fo:table-body>
401
                                </fo:table>
402
                            </fo:block>
403
                        </fo:table-cell>
404
                        <fo:table-cell>
405
                            <xsl:call-template name="subSeccao">
406
                                <xsl:with-param name="text">
407
                                    Tipos de Alunos
408
                                </xsl:with-param>
409
                            </xsl:call-template>
410
 
411
                            <fo:block margin-top="5px">
412
                                <xsl:variable name="src"><xsl:value-of select="//pathGraficoTiposAlunosComResposta"/></xsl:variable>
413
                                <fo:external-graphic width="auto" height="auto" content-width="250" content-height="150" src="{$src}"/>
414
                            </fo:block>
415
                        </fo:table-cell>
416
                    </fo:table-row>
417
                    <fo:table-row>
418
                        <fo:table-cell>
419
                            <xsl:call-template name="subSeccao">
420
                                <xsl:with-param name="text">
421
                                    Idades
422
                                </xsl:with-param>
423
                            </xsl:call-template>
1570 jmachado 424
                            <fo:block text-align="center" margin-left="10px" font-weight="normal" margin-right="10px">
1569 jmachado 425
                                <xsl:apply-templates select="//tabelaIdades" mode="DataTable"/>
426
                            </fo:block>
427
                        </fo:table-cell>
428
                        <fo:table-cell>
429
                            <xsl:call-template name="subSeccao">
430
                                <xsl:with-param name="text">
1570 jmachado 431
                                    Top 3 Distritos de Origem
1569 jmachado 432
                                </xsl:with-param>
433
                            </xsl:call-template>
1570 jmachado 434
                            <fo:block text-align="center" margin-left="10px" font-weight="normal" margin-right="10px">
1569 jmachado 435
                                <xsl:apply-templates select="//tabelaDistritos" mode="DataTable">
436
                                    <xsl:with-param name="firstColPercentSize">30%</xsl:with-param>
437
                                </xsl:apply-templates>
438
                            </fo:block>
439
                        </fo:table-cell>
440
                    </fo:table-row>
441
                </fo:table-body>
442
            </fo:table>
443
        </fo:block>
444
    </xsl:template>
445
 
446
 
447
 
448
    <!-- ############################################################# -->
1570 jmachado 449
    <!-- 2 - CAPITULO Taxas de Resposta  -->
1569 jmachado 450
    <!-- ############################################################# -->
451
 
1570 jmachado 452
    <xsl:template name="CAP_taxasResposta">
453
        <fo:block-container padding="0" margin="0" border="0" id="capTaxasResposta" page-break-before="always">
454
            <xsl:call-template name="seccao">
455
                <xsl:with-param name="text">2 - Taxas de resposta</xsl:with-param>
1569 jmachado 456
                <xsl:with-param name="marginTop">0</xsl:with-param>
457
            </xsl:call-template>
458
        </fo:block-container>
1570 jmachado 459
        <xsl:call-template name="subSeccao">
460
            <xsl:with-param name="text">2.1 - Taxas de resposta ordenadas pelo nome das unidades</xsl:with-param>
461
            <xsl:with-param name="marginTop">0</xsl:with-param>
1569 jmachado 462
        </xsl:call-template>
463
 
1570 jmachado 464
        <fo:block text-align="center" margin-top="10px" margin-left="10px" font-weight="normal" margin-right="10px">
465
            <xsl:apply-templates select="//tabelaTaxaRespostaUnidade" mode="DataTable">
1569 jmachado 466
                <xsl:with-param name="firstColPercentSize">40%</xsl:with-param>
1570 jmachado 467
                <xsl:with-param name="fontSize">12pt</xsl:with-param>
1569 jmachado 468
            </xsl:apply-templates>
469
        </fo:block>
470
 
1570 jmachado 471
        <fo:block-container padding="0" margin="0" border="0" page-break-before="always">
472
            <xsl:call-template name="seccao">
473
                <xsl:with-param name="text">2 - Taxas de resposta</xsl:with-param>
1569 jmachado 474
                <xsl:with-param name="marginTop">0</xsl:with-param>
475
            </xsl:call-template>
476
        </fo:block-container>
1570 jmachado 477
        <xsl:call-template name="subSeccao">
478
            <xsl:with-param name="text">2.1 - Taxas de resposta ordenadas por participação</xsl:with-param>
479
            <xsl:with-param name="marginTop">0</xsl:with-param>
1569 jmachado 480
        </xsl:call-template>
481
 
1570 jmachado 482
        <fo:block text-align="center" margin-top="10px" margin-left="10px" font-weight="normal" margin-right="10px">
483
            <xsl:apply-templates select="//tabelaTaxaRespostaUnidadeOrderTaxa" mode="DataTable">
1569 jmachado 484
                <xsl:with-param name="firstColPercentSize">40%</xsl:with-param>
1570 jmachado 485
                <xsl:with-param name="fourthColPercentSize">40%</xsl:with-param>
486
                <xsl:with-param name="fontSize">12pt</xsl:with-param>
1569 jmachado 487
            </xsl:apply-templates>
488
        </fo:block>
1571 jmachado 489
    </xsl:template>
1569 jmachado 490
 
1571 jmachado 491
    <!-- ############################################################# -->
492
    <!-- 3 - CAPITULO Evolução das Taxas de Resposta  -->
493
    <!-- ############################################################# -->
494
 
495
    <xsl:template name="CAP_evoTaxasResposta">
496
        <fo:block-container padding="0" margin="0" border="0" id="capEvoTaxasResposta" page-break-before="always">
1570 jmachado 497
            <xsl:call-template name="seccao">
498
                <xsl:with-param name="text">3 - Evolução das Taxas de resposta</xsl:with-param>
1569 jmachado 499
                <xsl:with-param name="marginTop">0</xsl:with-param>
500
            </xsl:call-template>
501
        </fo:block-container>
502
        <xsl:call-template name="subSeccao">
1570 jmachado 503
            <xsl:with-param name="text">3.1 - Respostas obtidas agrupadas semanalmente</xsl:with-param>
504
            <xsl:with-param name="marginTop">0</xsl:with-param>
1569 jmachado 505
        </xsl:call-template>
506
 
1570 jmachado 507
        <fo:block margin-top="5px" text-align="center">
508
            <xsl:variable name="src"><xsl:value-of select="//pathDistribuicaoRespostasSemanalChart"/></xsl:variable>
509
            <fo:external-graphic width="auto" height="auto" content-width="500"  src="{$src}"/>
1569 jmachado 510
        </fo:block>
511
 
1570 jmachado 512
        <fo:block text-align="center" margin-top="10px" margin-left="10px" font-weight="normal" margin-right="10px">
513
            <xsl:apply-templates select="//tabelaEvolucaoRespostas" mode="DataTable">
514
                <xsl:with-param name="sixthColPercentSize">20%</xsl:with-param>
515
                <xsl:with-param name="fontSize">12pt</xsl:with-param>
1569 jmachado 516
            </xsl:apply-templates>
517
        </fo:block>
1571 jmachado 518
    </xsl:template>
1569 jmachado 519
 
1571 jmachado 520
    <!-- ############################################################# -->
521
    <!-- 4 - CAPITULO Análise de Respostas Agregadas UNIDADES          -->
522
    <!-- ############################################################# -->
1569 jmachado 523
 
1571 jmachado 524
    <xsl:template name="CAP_analise_questoes_UNIDADE">
1569 jmachado 525
 
1571 jmachado 526
        <fo:block-container padding="0" margin="0" id="capQuestoesAgregadasUnidades" page-break-before="always">
527
            <xsl:call-template name="seccaoGreen">
528
                <xsl:with-param name="text">4 - Análise das questões sobre as Unidade</xsl:with-param>
529
                <xsl:with-param name="marginTop">0</xsl:with-param>
530
                <xsl:with-param name="icon">cadeiraConteudos.png</xsl:with-param>
531
            </xsl:call-template>
532
        </fo:block-container>
533
 
534
        <xsl:call-template name="subSeccaoGreen">
535
            <xsl:with-param name="text">4.1 - Gráficos de respostas agregadas de todas as unidades do Curso</xsl:with-param>
536
            <xsl:with-param name="marginTop">2px</xsl:with-param>
537
        </xsl:call-template>
538
 
539
        <xsl:apply-templates select="//respostasAgregadasGrupoUnidade/respostasAgregadasChartTable/respostasAgregadasCharts/chartsRow" mode="graficosPerguntas"/>
540
 
541
 
542
        <fo:block-container padding="0" margin="0" page-break-before="always">
543
            <xsl:call-template name="seccaoGreen">
544
                <xsl:with-param name="text">4 - Análise das questões sobre as Unidades</xsl:with-param>
545
                <xsl:with-param name="marginTop">0</xsl:with-param>
546
                <xsl:with-param name="icon">cadeiraConteudos.png</xsl:with-param>
547
            </xsl:call-template>
548
        </fo:block-container>
549
 
550
        <xsl:call-template name="subSeccaoGreen">
551
            <xsl:with-param name="text">4.2 - Tabela de respostas agregadas de todas as unidades do curso</xsl:with-param>
552
            <xsl:with-param name="marginTop">2px</xsl:with-param>
553
        </xsl:call-template>
554
 
555
 
556
        <fo:block text-align="center" margin="0" font-size="10" font-weight="normal" >
557
            <xsl:apply-templates select="//cursoStats/respostasAgregadasGrupoUnidade/respostasAgregadasChartTable/respostasTable" mode="DataTable">
558
                <xsl:with-param name="firstColPercentSize">40%</xsl:with-param>
559
            </xsl:apply-templates>
560
        </fo:block>
561
 
562
        <fo:block text-align="right" margin-top="10px" margin-left="10px" font-size="6.5pt" font-weight="normal" margin-right="10px">
563
            Unidades avaliadas em <xsl:value-of select="//cursoStats/nomeCurso"/>: <xsl:value-of select="//cursoStats/unidadesDoCurso"/>
564
        </fo:block>
565
        <fo:block text-align="right" margin-left="10px" font-size="6.5pt" font-weight="normal" margin-right="10px">
566
            Unidades avaliadas na <xsl:value-of select="//cursoStats/nomeInstituicao"/>:  <xsl:value-of select="//cursoStats/unidadesDaEscola"/>
567
        </fo:block>
568
 
569
        <fo:block-container margin-top="20px" margin-bottom="5px">
570
            <xsl:apply-templates select="//cursoStats/respostasAgregadasGrupoUnidade/mediasGrupo" mode="mediasGrupo">
571
                <xsl:with-param name="objetoAvaliacao">das unidades</xsl:with-param>
572
            </xsl:apply-templates>
573
        </fo:block-container>
574
 
575
        <!--Considerando Respostas Superiores a 2 segindos-->
576
        <fo:block-container background-color="#aaaaaa" padding="5px" margin="0" margin-top="20px">
577
            <fo:block-container padding="0" margin="0">
578
                <xsl:call-template name="subSubSeccao">
579
                    <xsl:with-param name="text">Considerando apenas respostas de tempo superior a 2 segundos (Estes dados são apenas para efeitos de comparação)</xsl:with-param>
580
                </xsl:call-template>
581
            </fo:block-container>
582
 
583
            <fo:block text-align="center" margin-left="10px" font-size="10" font-weight="normal" margin-right="10px">
584
 
585
                <xsl:apply-templates select="//cursoStats/respostasAgregadasGrupoUnidade/respostasAgregadasChartTable2Secs/respostasTable" mode="DataTable">
586
                    <xsl:with-param name="firstColPercentSize">40%</xsl:with-param>
587
                </xsl:apply-templates>
588
            </fo:block>
589
        </fo:block-container>
1569 jmachado 590
    </xsl:template>
591
 
1571 jmachado 592
    <!-- ############################################################# -->
593
    <!-- 5 - CAPITULO Análise de Respostas Agregadas SALAS             -->
594
    <!-- ############################################################# -->
1569 jmachado 595
 
1571 jmachado 596
    <xsl:template name="CAP_analise_questoes_SALAS">
597
 
598
        <xsl:variable name="title">Análise das questões sobre as Instalações/Equipamentos/Outros Recursos</xsl:variable>
599
        <fo:block-container padding="0" margin="0" id="capQuestoesAgregadasSalas" page-break-before="always">
600
            <xsl:call-template name="seccaoRose">
601
                <xsl:with-param name="text">5 - <xsl:value-of select="$title"/></xsl:with-param>
602
                <xsl:with-param name="marginTop">0</xsl:with-param>
603
                <xsl:with-param name="icon">cadeiraCadeira.png</xsl:with-param>
604
            </xsl:call-template>
605
        </fo:block-container>
606
 
607
        <xsl:call-template name="subSeccaoRose">
608
            <xsl:with-param name="text">5.1 - Gráficos de respostas agregadas de todas as unidades do Curso</xsl:with-param>
609
            <xsl:with-param name="marginTop">2px</xsl:with-param>
610
        </xsl:call-template>
611
 
612
        <xsl:apply-templates select="//respostasAgregadasGrupoSalas/respostasAgregadasChartTable/respostasAgregadasCharts/chartsRow" mode="graficosPerguntas"/>
613
 
614
 
615
        <fo:block-container padding="0" margin="0" page-break-before="always">
616
            <xsl:call-template name="seccaoRose">
617
                <xsl:with-param name="text">5 - <xsl:value-of select="$title"/></xsl:with-param>
618
                <xsl:with-param name="marginTop">0</xsl:with-param>
619
                <xsl:with-param name="icon">cadeiraCadeira.png</xsl:with-param>
620
            </xsl:call-template>
621
        </fo:block-container>
622
 
623
        <xsl:call-template name="subSeccaoRose">
624
            <xsl:with-param name="text">5.2 - Tabela de respostas agregadas de todas as unidades do curso</xsl:with-param>
625
            <xsl:with-param name="marginTop">2px</xsl:with-param>
626
        </xsl:call-template>
627
 
628
 
629
        <fo:block text-align="center" margin="0" font-size="10" font-weight="normal" >
630
            <xsl:apply-templates select="//cursoStats/respostasAgregadasGrupoSalas/respostasAgregadasChartTable/respostasTable" mode="DataTable">
631
                <xsl:with-param name="firstColPercentSize">40%</xsl:with-param>
632
            </xsl:apply-templates>
633
        </fo:block>
634
 
635
        <fo:block text-align="right" margin-top="10px" margin-left="10px" font-size="6.5pt" font-weight="normal" margin-right="10px">
636
            Unidades avaliadas em <xsl:value-of select="//cursoStats/nomeCurso"/>: <xsl:value-of select="//cursoStats/unidadesDoCurso"/>
637
        </fo:block>
638
        <fo:block text-align="right" margin-left="10px" font-size="6.5pt" font-weight="normal" margin-right="10px">
639
            Unidades avaliadas na <xsl:value-of select="//cursoStats/nomeInstituicao"/>:  <xsl:value-of select="//cursoStats/unidadesDaEscola"/>
640
        </fo:block>
641
 
642
        <fo:block-container margin-top="20px" margin-bottom="5px">
643
            <xsl:apply-templates select="//cursoStats/respostasAgregadasGrupoSalas/mediasGrupo" mode="mediasGrupo">
644
                <xsl:with-param name="objetoAvaliacao">das instalações</xsl:with-param>
645
            </xsl:apply-templates>
646
        </fo:block-container>
647
 
648
        <!--Considerando Respostas Superiores a 2 segindos-->
649
        <fo:block-container background-color="#aaaaaa" padding="5px" margin="0" margin-top="20px">
650
            <fo:block-container padding="0" margin="0">
651
                <xsl:call-template name="subSubSeccao">
652
                    <xsl:with-param name="text">Considerando apenas respostas de tempo superior a 2 segundos (Estes dados são apenas para efeitos de comparação)</xsl:with-param>
653
                </xsl:call-template>
654
            </fo:block-container>
655
 
656
            <fo:block text-align="center" margin-left="10px" font-size="10" font-weight="normal" margin-right="10px">
657
 
658
                <xsl:apply-templates select="//cursoStats/respostasAgregadasGrupoSalas/respostasAgregadasChartTable2Secs/respostasTable" mode="DataTable">
659
                    <xsl:with-param name="firstColPercentSize">40%</xsl:with-param>
660
                </xsl:apply-templates>
661
            </fo:block>
662
        </fo:block-container>
663
    </xsl:template>
664
 
665
    <!-- ############################################################# -->
666
    <!-- 7 - CAPITULO Análise Comparativa de Unidades                  -->
667
    <!-- ############################################################# -->
668
    <xsl:template name="CAP_analise_comparativa_unidades">
669
 
670
        <xsl:variable name="title">Análise Comparativa de Unidades Curriculares</xsl:variable>
671
        <fo:block-container padding="0" margin="0" id="capComparativaUnidades" page-break-before="always">
672
            <xsl:call-template name="seccao">
673
                <xsl:with-param name="text">7 - <xsl:value-of select="$title"/></xsl:with-param>
674
                <xsl:with-param name="marginTop">2px</xsl:with-param>
675
            </xsl:call-template>
676
        </fo:block-container>
677
 
678
        <xsl:call-template name="subSeccao">
679
            <xsl:with-param name="text">7.1 - Comparação entre a média a Unidade Curricular e as Instalações/Equipamentos/Outros Recursos</xsl:with-param>
680
            <xsl:with-param name="marginTop">2px</xsl:with-param>
681
        </xsl:call-template>
682
 
683
        <fo:block margin="0" padding="0" text-align="center">
684
            <xsl:variable name="src"><xsl:value-of select="//analiseConjuntaChartWithTable/tempFile"/></xsl:variable>
685
            <fo:external-graphic width="auto" height="auto" content-height="500" src="{$src}"/>
686
        </fo:block>
687
 
688
 
689
 
690
 
691
        <fo:block-container padding="0" margin="0" page-break-before="always" id="capComparativaUnidadesSortMediaUnidades">
692
            <xsl:call-template name="seccao">
693
                <xsl:with-param name="text">7 - <xsl:value-of select="$title"/></xsl:with-param>
694
                <xsl:with-param name="marginTop">2px</xsl:with-param>
695
            </xsl:call-template>
696
        </fo:block-container>
697
        <xsl:call-template name="subSeccao">
698
            <xsl:with-param name="text">7.2 - Comparação entre a média a Unidade Curricular e as Instalações/Equipamentos/Outros Recursos (Ordenado por Média do Grupo Unidade)</xsl:with-param>
699
            <xsl:with-param name="marginTop">2px</xsl:with-param>
700
        </xsl:call-template>
701
        <fo:block margin="0" padding="0" text-align="center">
702
            <xsl:variable name="src"><xsl:value-of select="//analiseConjuntaChartOrderMediaUnidades"/></xsl:variable>
703
            <fo:external-graphic width="auto" height="auto" content-height="500" src="{$src}"/>
704
        </fo:block>
705
 
706
 
707
 
708
 
709
        <fo:block-container padding="0" margin="0" page-break-before="always" id="capComparativaUnidadesSortMediaSalas">
710
            <xsl:call-template name="seccao">
711
                <xsl:with-param name="text">7 - <xsl:value-of select="$title"/></xsl:with-param>
712
                <xsl:with-param name="marginTop">2px</xsl:with-param>
713
            </xsl:call-template>
714
        </fo:block-container>
715
        <xsl:call-template name="subSeccao">
716
            <xsl:with-param name="text">7.3 - Comparação entre a média a Unidade Curricular e as Instalações/Equipamentos/Outros Recursos (Ordenado por Média do Grupo Instalações/Equipamentos/Outros Recursos)</xsl:with-param>
717
            <xsl:with-param name="marginTop">2px</xsl:with-param>
718
        </xsl:call-template>
719
 
720
        <fo:block margin="0" padding="0" text-align="center">
721
            <xsl:variable name="src"><xsl:value-of select="//analiseConjuntaChartOrderMediaSalas"/></xsl:variable>
722
            <fo:external-graphic width="auto" height="auto" content-height="500" src="{$src}"/>
723
        </fo:block>
724
 
725
 
726
 
727
 
728
 
729
        <fo:block-container padding="0" margin="0" page-break-before="always" id="capComparativaUnidadesTable">
730
            <xsl:call-template name="seccao">
731
                <xsl:with-param name="text">7 - <xsl:value-of select="$title"/></xsl:with-param>
732
                <xsl:with-param name="marginTop">2px</xsl:with-param>
733
            </xsl:call-template>
734
        </fo:block-container>
735
        <xsl:call-template name="subSeccao">
736
            <xsl:with-param name="text">7.4 - Tabela de valores para a agregação das respostas em todas as perguntas dos dois grupos</xsl:with-param>
737
            <xsl:with-param name="marginTop">2px</xsl:with-param>
738
        </xsl:call-template>
739
 
740
        <xsl:apply-templates select="//analiseConjuntaChartWithTable/dataTable" mode="DataTable">
741
            <!--<xsl:with-param name="ignoreColumns">true</xsl:with-param>-->
742
        </xsl:apply-templates>
743
 
744
 
745
        <fo:block-container padding="0" margin="0" page-break-before="always" id="capComparativaUnidadesPerguntas">
746
            <xsl:call-template name="seccao">
747
                <xsl:with-param name="text">7 - <xsl:value-of select="$title"/></xsl:with-param>
748
                <xsl:with-param name="marginTop">2px</xsl:with-param>
749
            </xsl:call-template>
750
        </fo:block-container>
751
        <xsl:call-template name="subSeccao">
752
            <xsl:with-param name="text">7.5 - Tabela das médias de todas as questões por unidade</xsl:with-param>
753
            <xsl:with-param name="marginTop">2px</xsl:with-param>
754
        </xsl:call-template>
755
 
756
    </xsl:template>
757
 
1569 jmachado 758
</xsl:stylesheet>