source: main/trunk/ibisph-view/src/main/webapp/xslt/html/query/module/builder/SiteSpecific.xslt @ 11197

Last change on this file since 11197 was 11197, checked in by Garth Braithwaite, 6 years ago

view - added jsonp ajax comments. Did remove the query module config request from builder and result ss.xslt code but put them back in because the core code is used for dev and all adopters should be using their own site nav anyway. This way the functionality is demoed and is more easily tested.

File size: 7.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2
3<xsl:stylesheet version="2.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="../SiteSpecific.xslt"/>
10
11
12        <ibis:doc>
13                <name>html/query/module/builder/SiteSpecific</name>
14                <summary>Provides Utah 'query/module' site specific template overrides</summary>
15                <description>
16                        Provides an overridden 'siteSpecific.siteNavigationMenu' API template
17                        call, prefs popup, script init, etc.
18                </description>
19
20                <author>Garth Braithwaite</author>
21                <company>Software Technology Group/CDC/Utah Department of Health</company>
22        </ibis:doc>
23
24
25        <xsl:param name="SiteSpecific.navigationPathSelections">
26                <SELECTION>
27                        <TITLE>query</TITLE>
28                        <LOCAL_URL>query</LOCAL_URL>
29                </SELECTION>
30                <SELECTION>
31                        <TITLE>selection</TITLE>
32                        <LOCAL_URL><xsl:value-of select="/QUERY_MODULE/QUERY_CONFIGURATION_SELECTION/LOCAL_URL"/></LOCAL_URL>
33                </SELECTION>
34        </xsl:param>
35
36
37        <xsl:param name="SiteSpecific.contextNavigationSelections"
38                ibis:doc="Query Result left nav menu - specific to the current module config."
39        >
40                <SELECTIONS>
41                        <TITLE>Builder Options</TITLE>
42                        <SELECTION>
43                                <URL>javascript:<xsl:value-of select="if(exists($Builder.moduleConfiguration/CRITERIA/SUBMIT_JAVASCRIPT_FUNCTION_CALL)) then $Builder.moduleConfiguration/CRITERIA/SUBMIT_JAVASCRIPT_FUNCTION_CALL else 'submitQuery()'"/></URL>
44                                <DESCRIPTION>View the query result</DESCRIPTION>
45                                <TITLE>Submit Query</TITLE>
46                        </SELECTION>
47                        <SELECTION>
48                                <URL><xsl:value-of select="concat($ibis.urlPrefix, /QUERY_MODULE/QUERY_CONFIGURATION_SELECTION/LOCAL_URL)"/></URL>
49                                <DESCRIPTION>Choose different query dataset/measure.</DESCRIPTION>
50                                <TITLE>Select Different Measure</TITLE>
51                        </SELECTION>
52                        <SELECTION>
53                                <URL><xsl:value-of select="concat($ibis.urlPrefix, 'query/builder/', /QUERY_MODULE/REQUEST/CONFIGURATION_PATH, '.html?Reload=x')"/></URL>
54                                <DESCRIPTION>Reloads the query definition.</DESCRIPTION>
55                                <TITLE>Load Default Query Definition</TITLE>
56                        </SELECTION>
57
58                        <xsl:if test="$ibis.userProfile/ID">
59                        <SELECTION>
60                                <URL>javascript:saveCriteria()</URL>
61                                <DESCRIPTION>Click this button to save the selections as a saved criteria definition.</DESCRIPTION>
62                                <TITLE>Save Query Definition</TITLE>
63                        </SELECTION>
64                        </xsl:if>
65                        <SELECTION>
66                                <URL><xsl:value-of select="concat($ibis.urlPrefix, 'query/definition/index/MyDefinitions.html')"/></URL>
67                                <DESCRIPTION>Click this button to access all query definitions.</DESCRIPTION>
68                                <TITLE>My Saved Query Definitions</TITLE>
69                        </SELECTION>
70
71                        <SELECTION>
72                                <URL><xsl:value-of select="concat($ibis.urlPrefix, 'query/configuration/', /QUERY_MODULE/REQUEST/CONFIGURATION_PATH, '.xml')"/></URL>
73                                <DESCRIPTION>View the Query Module XML.</DESCRIPTION>
74                                <TITLE>View Query Module XML</TITLE>
75                        </SELECTION>
76                </SELECTIONS>
77        </xsl:param>
78
79
80        <xsl:template name="Builder.initContent"
81                ibis:doc="Utah module site specific API call that provides a hook
82                        to the javascript used to init 'selection' type pages.  This allows
83                        other states the ability to put in their own init code in thus hard
84                        coding behavior as they want.  This template includes the query usage
85                        agreement and the code needed to manage hiding/showing it."
86        >
87                <!-- did have the processPreSubmit within if element existed AND
88                        then did a if typeof to test for the method existance.  However,
89                        upon implementing, it is much simpler to do as done below.
90                -->
91
92                <div id="usageAgreementDialog">
93                        <div class="InnerCanvas">
94                                The data and information provided through the IBIS-PH Query System are
95                                intended to support any individuals or entities engaged in activities
96                                designed solely to enhance the well-being of a specific community, which
97                                may include the State.  Activities include informing evidence-based
98                                decision making in the State to plan and improve health service delivery,
99                                evaluate health care interventions and systems, and inform health policy
100                                decisions. Other uses are not permissible.
101                                <br/><br/>
102
103                                <div class="Bold">As an IBIS-PH Query System user, I AGREE TO:</div>
104                                <ol>
105                                        <li>Use the data for statistical reporting and analysis only.</li>
106                                        <li>Avoid any attempt to identify or contact individual(s) represented in the IBIS-PH query system data.</li>
107                                        <li>Avoid disclosure or use of the identity of any individual(s) discovered inadvertently.</li>
108                                        <li>
109                                                Avoid linkage of IBIS-PH query system data with other data that,
110                                                after linkage, might allow identification of an individual represented
111                                                in the IBIS-PH query system data.
112                                        </li>
113                                        <li>
114                                                Use appropriate safeguards to prevent the inappropriate use or
115                                                disclosure of individual(s) represented in the data, including when
116                                                disclosing IBIS-PH Query System data to others.
117                                        </li>
118                                        <li>
119                                                Report IMMEDIATELY any inadvertent or intentional identity disclosures or violations of this
120                                                agreement of which I become aware to the Director of the Center for Public Health Data,
121                                                Department of Health.
122                                        </li>
123                                </ol><br/>
124
125                                I understand that failure to adhere to the above stated agreement items
126                                will result in loss of access to DOH Internet databases, and I may be
127                                subject to legal penalties. Any use, release, or publication of health
128                                data contrary to the provisions stated is a class B misdemeanor, with
129                                subsequent violations being class A misdemeanors punishable by a fine
130                                of up to $5,000 per offense (Chapter 23, Title 26, Code Annotated).
131                                If I am a state government employee, this may be grounds for immediate
132                                dismissal.
133                        </div>
134                        <button type="button" onclick="usageAgreementDialog.close()" title="Closes this message.">I Agree</button>
135                </div>
136
137                <script language="JavaScript" type="text/javascript" src="{$ibis.urlPrefix}js/Cookie.js"/>
138                <script language="JavaScript" type="text/javascript">
139                        var agreementCookie = new Cookie("UsageAgreement", null, "<xsl:value-of select="$ibis.urlPrefix"/>");
140                        var usageAgreementDialog = null;
141                        $(document).ready(function()
142                        {
143                                usageAgreementDialog =
144                                        $("#usageAgreementDialog").kendoWindow({
145                                                title: "Department of Health IBIS Query System, Data Use Agreement"
146                                                ,width: "75%"
147                                                ,resizable: true
148                                                ,modal: true
149                                                ,visible: false
150                                        }).data('kendoWindow');
151
152                                // Check that the query usage agreement has been shown (session
153                                // cookie).  If cookie has not been shown then display otherwise
154                                // leave it hidden.  In the past a more complex solution existed
155                                // that didn't init the sections until after the confirmation had
156                                // been closed.  This was done because input elements bleed
157                                // through the overlaied html.
158                                if("shown" != agreementCookie.getValue())
159                                {
160                                        usageAgreementDialog.center().open();
161                                }
162                                agreementCookie.setValue("shown");
163                        });
164                </script>
165        </xsl:template>
166
167</xsl:stylesheet>
168<!-- ============================= End of File ============================= -->
169
Note: See TracBrowser for help on using the repository browser.