Changeset 12453 in main


Ignore:
Timestamp:
12/05/16 17:49:18 (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-epht/trunk/src/main/webapps/epht-view/xslt/html/SiteSpecific.xslt

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