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

Last change on this file since 22702 was 22702, checked in by GarthBraithwaite_STG, 9 months ago

view - added please select to the org and datasource ip index page.

File size: 4.4 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" style="margin-top: 32px; background-color: #ebebeb; padding: 16px 16px 0 16px;">
49                        <label for="jumpToSelections" style="padding-right: 0.5em; font-weight: normal; font-size: 1.2em;">Jump to:</label>
50                        <select id="jumpToSelections" onchange="jumpToSelection()" style="padding: 7px;">
51                                <option value="" selected="true" disabled="true" hidden="true">-Choose One-</option>
52
53                        <xsl:for-each select="$usedDataSources">
54                                <xsl:sort select="SORT_ORDER"/>
55                                <xsl:sort select="TITLE"/>
56                                <option value="{TITLE}"><xsl:value-of select="TITLE"/></option>
57                        </xsl:for-each>
58                        </select>
59                </nav>
60
61                <ul id="listViewContainer" data-header-template="header-template" data-title="">
62                        <xsl:for-each select="$usedDataSources">
63                                <xsl:sort select="SORT_ORDER"/>
64                                <xsl:sort select="TITLE"/>
65                        <li><h3 id="{TITLE}"><xsl:value-of select="concat(TITLE, ' (', NAME, ')')"/></h3>
66                                <ul>
67                                <xsl:variable name="dataSource" select="."/>
68                                <xsl:for-each select="$Page.publishedIndicators/DATASETS/DATASET[DATA_SOURCE_USAGES/DATA_SOURCE_USAGE[(USAGE = 'numerator') and (NAME = $dataSource/NAME)]]">
69                                        <xsl:sort select="TITLE"/>
70                                        <li title="Published on: {PUBLISHED_DATE}, Data as of Date: {DATA_AS_OF_DATE}">
71                                                <a href="{$indicatorBaseRequsetPath}summary/{NAME}.html"
72                                                        title="Click here to see {TITLE}"
73                                                ><xsl:value-of select="TITLE"/></a>
74                                        </li>
75                                </xsl:for-each>
76                                </ul>
77                        </li>
78                        </xsl:for-each>
79                </ul>
80
81                <script>
82var ips = [
83                <xsl:for-each select="$usedDataSources">
84                        <xsl:sort select="SORT_ORDER"/>
85                        <xsl:sort select="TITLE"/>
86
87                        <xsl:variable name="dataSourcePosition" select="position()"/>
88                        <xsl:variable name="dataSource" select="."/>
89                        <xsl:for-each select="$Page.publishedIndicators[DATASETS/DATASET/DATA_SOURCE_USAGES/DATA_SOURCE_USAGE[(USAGE = 'numerator') and (NAME = $dataSource/NAME)]]">
90                                <xsl:sort select="TITLE"/>
91                                <xsl:if test="(1 != $dataSourcePosition) or (1 != position())">,</xsl:if>
92{
93        "name":         "<xsl:value-of select="NAME"/>"
94        ,"title":       "<xsl:value-of select="TITLE"/>"
95        ,"href" :       "<xsl:value-of select="concat($indicatorBaseRequsetPath, 'view/', DEFAULT_INDICATOR_VIEW_NAME, '.html')"/>"
96<!--
97        ,"group":       "<xsl:value-of select="concat($dataSource/TITLE, ' (', $dataSource/NAME, ')')"/>"
98-->
99        ,"group":       "<xsl:value-of select="$dataSource/TITLE"/>"
100        ,"published":"<xsl:value-of select="PUBLISHED_DATE"/>"
101}
102                        </xsl:for-each>
103                </xsl:for-each>
104];
105                </script>
106        </xsl:template>
107
108</xsl:stylesheet>
109<!-- ============================= End of File ============================= -->
Note: See TracBrowser for help on using the repository browser.