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="../../Page.xslt"/> |
---|
10 | |
---|
11 | |
---|
12 | <ibis:doc> |
---|
13 | <name>html/indicator/profile/Page</name> |
---|
14 | <summary>Provides indicator profile specific 'html' API templates</summary> |
---|
15 | <description> |
---|
16 | Provides indicator profile specific 'html' API templates |
---|
17 | which are imported by the actual page specific indicator profile XSLTs. |
---|
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="Page.sectionsTitle" |
---|
26 | ibis:doc="Provides the page's content title text which is typically |
---|
27 | displayed in the content header section. This variable is a stubb |
---|
28 | and should be implemented for each specific type of page. |
---|
29 | " |
---|
30 | > |
---|
31 | Health Indicator Report of <xsl:value-of select="$indicator/TITLE"/> |
---|
32 | </xsl:param> |
---|
33 | |
---|
34 | <xsl:param name="Page.metaDescription" select=" |
---|
35 | if(string-length(/INDICATOR_VIEW/DESCRIPTION) != 0)then |
---|
36 | concat(/INDICATOR/DESCRIPTION, ' ; ', /INDICATOR_VIEW/DESCRIPTION) |
---|
37 | else |
---|
38 | /INDICATOR/DESCRIPTION |
---|
39 | " |
---|
40 | ibis:doc="Implementation that returns the INDICATOR and INDICATOR_VIEW/DESCRIPTION." |
---|
41 | /> |
---|
42 | <xsl:param name="Page.metaKeywords" select="$Page.metaDescription"/> |
---|
43 | |
---|
44 | |
---|
45 | <xsl:param name="Page.orgUnitName" select="$indicator/ORG_UNIT_NAME" |
---|
46 | ibis:doc="Provides the associated IP organization unit contact |
---|
47 | info text which is typically used in the content footer. The actual |
---|
48 | org unit text is pulled from the 'org_unit.xml' file and is keyed |
---|
49 | off of via the '/INDICATOR/ORG_UNIT_NAME' element. |
---|
50 | " |
---|
51 | /> |
---|
52 | |
---|
53 | |
---|
54 | |
---|
55 | <!-- DEPENDENCY NOTE: This file is not meant to be imported as a stand alone |
---|
56 | XSLT library. This file depends/relies on the $indicator variable and |
---|
57 | the $ibis.urlPrefix parameter being defined. |
---|
58 | --> |
---|
59 | |
---|
60 | <xsl:template name="Page.specificHeadContent" |
---|
61 | ibis:doc="Turn off caching if there's an XML URL." |
---|
62 | > |
---|
63 | <xsl:if test="string-length($xmlURL) != 0"> |
---|
64 | <xsl:call-template name="Page.metaNoCacheControl"/> |
---|
65 | </xsl:if> |
---|
66 | </xsl:template> |
---|
67 | |
---|
68 | |
---|
69 | <xsl:template name="Page.specificScript" ibis:doc="Provides the the wiki javascript"> |
---|
70 | <script type="text/javascript" src="{$ibis.urlPrefix}js/jquery.wikitohtml.js"/> |
---|
71 | <script type="text/javascript"> |
---|
72 | // <![CDATA[ |
---|
73 | $(document).ready(function() |
---|
74 | { |
---|
75 | // both ways work... |
---|
76 | // $("*[wiki='true']").each( function(){ $(this).wikiToHTML(); } ); |
---|
77 | $("*[wiki='true']").wikiToHTML(); |
---|
78 | }); //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ End of Function ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
79 | // ]]> |
---|
80 | </script> |
---|
81 | </xsl:template> |
---|
82 | |
---|
83 | </xsl:stylesheet> |
---|
84 | <!-- ============================= End of File ============================= --> |
---|
85 | |
---|