Uploaded image for project: 'Links directory'
  1. Links directory
  2. LINKS-150

Hard coded value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.6.0
    • 2.6.0
    • None

       <!-- Separate the links in two groups for input data and service in thumbnails view -->
          <xsl:template name="separate-links">
              <xsl:param name="links"/>
              <xsl:param name="moreThreshold"/>
              
              <primary>
                  <xsl:for-each select="$links">
                      <xsl:sort select="@user-selected = 'true'" order="descending"/>
                      
                      <xsl:if test="position() &lt; $moreThreshold or (count($links) = 8 and position() = $moreThreshold)">
                          <xsl:copy-of select="."/>
                      </xsl:if>
                  </xsl:for-each>
              </primary>
              
              <xsl:if test="count($links) &gt; $moreThreshold">
      	        <secondary>
      	            <xsl:for-each select="$links">
      	                <xsl:sort select="@user-selected = 'true'" order="descending"/>
      	                
      	                <xsl:choose>
      	                    <xsl:when test="position() &gt;= $moreThreshold">
      	                        <xsl:copy-of select="."/>
      	                    </xsl:when>
      	                </xsl:choose>
      	            </xsl:for-each>
      	        </secondary>
              </xsl:if>
          </xsl:template>
      

            Unassigned Unassigned
            lbouziat Léa Bouziat
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: