Changeset 12454 in main


Ignore:
Timestamp:
12/06/16 06:40:29 (6 years ago)
Author:
Paul Leo
Message:

Garth fixed an issue with the SHOW flag in expandable Selections xslt code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • adopters/nm/branches/2.3/src/main/webapps/ibisph-view/xslt/html/SiteSpecific.xslt

    r9065 r12454  
    422422        </xsl:template>
    423423
     424       
     425        <xsl:template name="SelectionsList.processExpandableSelection"
     426                ibis:doc="TEMP FIX UNTIL MOVE TO 3.0"
     427        >
     428                <xsl:param name="selection"/>
     429                <xsl:param name="title"     select="$selection/TITLE"/>
     430                <xsl:param name="inputType" select="'checkbox'"/>
     431                <xsl:param name="inputName"/>
     432                <xsl:param name="href"/>
     433                <xsl:param name="id"        select="concat('ExpandableListInputControl.', generate-id(.))"/>
     434                <xsl:param name="show"/>
     435
     436                <input id="{$id}" type="{$inputType}" title="Show/hide selection list control for {$title}">
     437                        <xsl:if test="string-length($inputName) != 0">
     438                                <xsl:attribute name="name" select="$inputName"/>
     439                        </xsl:if>
     440                        <xsl:if test="$show or exists($selection/SELECTIONS/SHOW)">
     441                                <xsl:attribute name="checked" select="'checked'"/>
     442                        </xsl:if>
     443                </input>
     444
     445                <label for="{$id}" title="{if($href &gt; '')then concat('link to ', $title) else concat('show/hide the ', $title, ' selection list')}">
     446                        <xsl:call-template name="SelectionsList.processSelection">
     447                                <xsl:with-param name="selection" select="$selection"/>
     448                                <xsl:with-param name="href"      select="$href"/>
     449                        </xsl:call-template>
     450                </label>
     451
     452        </xsl:template>
     453       
    424454</xsl:stylesheet>
    425455<!-- ============================= End of File ============================= -->
Note: See TracChangeset for help on using the changeset viewer.