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