source: main/trunk/ibisph-view/src/main/webapp/xslt/html/indicator/index/data_source/Page.xslt @ 20583

Last change on this file since 20583 was 20583, checked in by GarthBraithwaite_STG, 19 months ago

view - another round of path localization.

File size: 4.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2
3<xsl:stylesheet version="3.0" 
4        xmlns:xsl ="http://www.w3.org/1999/XSL/Transform" 
5        xmlns:ibis="http://www.ibisph.org"
6
7        exclude-result-prefixes="ibis"
8>
9        <xsl:import href="../Page.xslt"/>
10
11        <ibis:doc>
12                <name>html/indicator/index/data_source/DataSourcePage</name>
13                <summary>Indicator Profile Index DS List page</summary>
14                <description>
15                </description>
16        </ibis:doc>
17
18
19        <xsl:param name="Page.pageTitle" ibis:doc="Page's title text.">List of All Health Indicators by Data Source</xsl:param>
20
21        <xsl:param name="DataSources"/>
22        <xsl:param name="Page.dataSources" select="$DataSources/DATA_SOURCES"/>
23
24        <xsl:param name="Page.overviewContent" ibis:doc="localizes the cat index overview content.  Set blank to turn this off.">
25                Welcome to the selection list of all available health indicator
26                reports organized by the primary datasource.
27
28                To view a health indicator report, locate the indicator title in the list
29                below and click on that report's title link.
30
31                You can use the "Filter" input field below, to narrow your selections to
32                only those indicators that contain the entered text. 
33
34                You can also use the "Jump To" drop down list that will take you to a
35                sub list of the health indicator reports whos' data are from the
36                selected datasource.
37
38                To return to the top of this index page click on the "top" link that is
39                located to the right of each list section.
40        </xsl:param>
41
42
43        <xsl:template name="Page.indexList" ibis:doc="IPs Data Sources list index.">
44                <xsl:param name="indicatorBaseRequsetPath" select="$Page.indicatorBaseRequsetPath"/>
45
46                <xsl:variable name="usedDataSources" select="$Page.dataSources/DATA_SOURCE[NAME = $Page.publishedIndicators/DATASETS/DATASET/DATA_SOURCE_USAGES/DATA_SOURCE_USAGE[(USAGE = 'numerator')]/NAME]"/>
47
48                <nav id="jumpToLinks" class="JumpToLinks">
49                        <label for="jumpToSelections">Jump to Data Source:</label>
50                        <select id="jumpToSelections" onchange="jumpToSelection()">
51                        <xsl:for-each select="$usedDataSources">
52                                <xsl:sort select="SORT_ORDER"/>
53                                <xsl:sort select="TITLE"/>
54                                <option value="{TITLE}"><xsl:value-of select="TITLE"/></option>
55                        </xsl:for-each>
56                        </select>
57                </nav>
58
59                <ul id="listViewContainer" data-header-template="header-template" data-title="">
60                        <xsl:for-each select="$usedDataSources">
61                                <xsl:sort select="SORT_ORDER"/>
62                                <xsl:sort select="TITLE"/>
63                        <li><h3 id="{TITLE}"><xsl:value-of select="concat(TITLE, ' (', NAME, ')')"/></h3>
64                                <ul>
65                                <xsl:variable name="dataSource" select="."/>
66                                <xsl:for-each select="$Page.publishedIndicators/DATASETS/DATASET[DATA_SOURCE_USAGES/DATA_SOURCE_USAGE[(USAGE = 'numerator') and (NAME = $dataSource/NAME)]]">
67                                        <xsl:sort select="TITLE"/>
68                                        <li title="Published on: {PUBLISHED_DATE}, Data as of Date: {DATA_AS_OF_DATE}">
69                                                <a href="{$indicatorBaseRequsetPath}summary/{NAME}.html"
70                                                        title="Click here to see {TITLE}"
71                                                ><xsl:value-of select="TITLE"/></a>
72                                        </li>
73                                </xsl:for-each>
74                                </ul>
75                        </li>
76                        </xsl:for-each>
77                </ul>
78
79                <script>
80var ips = [
81                <xsl:for-each select="$usedDataSources">
82                        <xsl:sort select="SORT_ORDER"/>
83                        <xsl:sort select="TITLE"/>
84
85                        <xsl:variable name="dataSourcePosition" select="position()"/>
86                        <xsl:variable name="dataSource" select="."/>
87                        <xsl:for-each select="$Page.publishedIndicators[DATASETS/DATASET/DATA_SOURCE_USAGES/DATA_SOURCE_USAGE[(USAGE = 'numerator') and (NAME = $dataSource/NAME)]]">
88                                <xsl:sort select="TITLE"/>
89                                <xsl:if test="(1 != $dataSourcePosition) or (1 != position())">,</xsl:if>
90{
91        "name":         "<xsl:value-of select="NAME"/>"
92        ,"title":       "<xsl:value-of select="TITLE"/>"
93        ,"href" :       "<xsl:value-of select="concat($indicatorBaseRequsetPath, 'view/', DEFAULT_INDICATOR_VIEW_NAME, '.html')"/>"
94<!--
95        ,"group":       "<xsl:value-of select="concat($dataSource/TITLE, ' (', $dataSource/NAME, ')')"/>"
96-->
97        ,"group":       "<xsl:value-of select="$dataSource/TITLE"/>"
98        ,"published":"<xsl:value-of select="PUBLISHED_DATE"/>"
99}
100                        </xsl:for-each>
101                </xsl:for-each>
102];
103                </script>
104        </xsl:template>
105
106</xsl:stylesheet>
107<!-- ============================= End of File ============================= -->
Note: See TracBrowser for help on using the repository browser.