Ignore:
Timestamp:
01/19/11 14:18:18 (13 years ago)
Author:
vronk
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • MDService2/trunk/MDService2/src/xsl/mdset2view.xsl

    r1071 r1081  
    247247
    248248<xsl:template match="CMD" mode="table">
     249        <xsl:variable name="absolute_position" select="if (number($startItem)=number($startItem)) then number($startItem) + position() - 1 else  position()" />
    249250                <tr>
    250251                <td>
     
    252253                                <xsl:when test="exists(.//MdSelfLink)" >
    253254                                <a class="internal" href="{concat('record/htmldetail/', my:encodePID(.//MdSelfLink), '?repository=', $repository_id)}" >
    254                                                 <xsl:value-of select="position()" />
     255                                                <xsl:value-of select="$absolute_position" />
    255256                                </a>
    256257                                <span class="cmd cmd_detail" ></span>                           
    257258                                <span class="cmd cmd_save" ></span>                                             
    258259                                </xsl:when>
    259                                 <xsl:otherwise><xsl:value-of select="position()" /></xsl:otherwise>
     260                                <xsl:otherwise><xsl:value-of select="$absolute_position" /></xsl:otherwise>
    260261                        </xsl:choose>
    261262                </td>
     
    309310
    310311<xsl:template match="CMD" mode="list">
     312        <xsl:variable name="absolute_position" select="if (number($startItem)=number($startItem)) then number($startItem) + position() - 1 else  position()" />
    311313                <tr>
    312314                <td>
     
    314316                                <xsl:when test="exists(.//MdSelfLink)" >
    315317                                <a class="internal" href="{concat('record/htmldetail/', my:encodePID(.//MdSelfLink))}" >
    316                                                 <xsl:value-of select="position()" />
     318                                                <xsl:value-of select="$absolute_position" />
    317319                                </a>
    318320                                <span class="cmd cmd_detail" ></span>                           
    319321                                <span class="cmd cmd_save" ></span>                                             
    320322                                </xsl:when>
    321                                 <xsl:otherwise><xsl:value-of select="position()" /></xsl:otherwise>
     323                                <xsl:otherwise><xsl:value-of select="$absolute_position" /></xsl:otherwise>
    322324                        </xsl:choose>
    323325                </td>
Note: See TracChangeset for help on using the changeset viewer.