Project

General

Profile

« Previous | Next » 

Revision 1686

Added by Jing Tao about 21 years ago

Revise some templates.

View differences:

eml-2.0.0.xsl
144 144
       <xsl:for-each select="protocol">
145 145
         <xsl:call-template name="emlprotocol"/>
146 146
       </xsl:for-each>
147
       <!-- Additinal metadata-->
148
       <xsl:choose>
149
               <xsl:when test="displaymodule!='additionalmetadata'">
150
                  <xsl:for-each select="additionalMetadata">
151
                      <xsl:call-template name="additionalmetadataURL">
152
                        <xsl:with-param name="index" select="position()"/>
153
                      </xsl:call-template>
154
                  </xsl:for-each>
155
               </xsl:when>
156
               <xsl:otherwise>
157
                   <xsl:for-each select="additionalMetadata">
158
                     <xsl:if test="$additionalmetadataindex=position()">
159
                        <xsl:call-template name="additionalmetadata"/>
160
                     </xsl:if>
161
                  </xsl:for-each>
162
              </xsl:otherwise>
163
       </xsl:choose>
147 164
   </xsl:template>
148 165
   
149 166
   <!--********************************************************
......
415 432
   
416 433
   <xsl:template name="choosephysical">
417 434
      <xsl:for-each select="physical">
418
         <xsl:test if="position()=$physicalindex">
435
         <xsl:if test="position()=$physicalindex">-->
419 436
            <xsl:choose>
420 437
               <xsl:when test="references!=''">
421 438
                  <xsl:variable name="ref_id" select="references"/>
......
428 445
                  <xsl:call-template name="choosedistribution"/>
429 446
              </xsl:otherwise>
430 447
           </xsl:choose>
431
        </xsl:test>
448
        </xsl:if>
432 449
      </xsl:for-each>
433 450
   </xsl:template>
434 451
   
435 452
   <xsl:template name="choosedistribution">
436 453
      <xsl:for-each select="distribution">
437
         <xsl:test if="position()=$distributionindex">
454
         <xsl:if test="$distributionindex=position()">
438 455
            <xsl:choose>
439 456
               <xsl:when test="references!=''">
440 457
                  <xsl:variable name="ref_id" select="references"/>
......
451 468
                  </xsl:for-each>
452 469
              </xsl:otherwise>
453 470
           </xsl:choose>
454
        </xsl:test>
471
        </xsl:if>
455 472
      </xsl:for-each>
456 473
   </xsl:template>
457 474
   
......
537 554
        </tr>
538 555
     </table>
539 556
   </xsl:template>
557
   
558
      <!--********************************************************
559
                   additionalmetadata part
560
       ********************************************************-->
561
   <xsl:template name="additionalmetadataURL">
562
     <xsl:param name="index"/>
563
     <table class="default" width="100%">
564
       <tr><td width="100%" class="{$subHeaderStyle}">
565
              <a><xsl:attribute name="href"><xsl:value-of select="$tripleURI"/><xsl:value-of select="$docid"/>&amp;displaymodule=additionalmetadata&amp;additionalmetadataindex=<xsl:value-of select="$index"/></xsl:attribute>
566
              <b>Additional Metadata</b></a>
567
           </td>
568
       </tr>
569
     </table>
570
   </xsl:template>
540 571
    
541 572
</xsl:stylesheet>

Also available in: Unified diff