Project

General

Profile

« Previous | Next » 

Revision 456

Added by berkley over 23 years ago

updated this style sheet to display only resource documents and their related files. Also added hidden input params to the images on the left so that the related document info is sent back to the servlet when documentation or an abstract is requested.

View differences:

lib/marine/marine.xsl
288 288

  
289 289
	
290 290
	      <font size="2">
291
        <xsl:for-each select="resultset/document">
291
        <xsl:for-each select="resultset/document[doctype = 'resource']">
292 292
          <xsl:sort select="doctitle"/>
293 293
          <tr valign="top">
294 294
            <xsl:attribute name="class">
......
305 305
                 resource/literature or resource/dataset. -->
306 306
            <input type="hidden" name="abstractpath" value="resource/%/abstract" />
307 307
            <input type="hidden" name="action" value="getdocument"/>
308
            <xsl:for-each select="./relation">
309
              <input type="hidden" name="relation">
310
                <xsl:attribute name="value" >
311
                  <xsl:value-of select="./relationdoc" />
312
                </xsl:attribute>
313
              </input>
314
            </xsl:for-each>
308 315
              <input border="0" type="image">
309 316
                <xsl:attribute name="src">
310 317
                  <xsl:choose>
......
324 331
              <xsl:text>&nbsp;</xsl:text>
325 332
          </td>
326 333
          <td>
327
          <!--<xsl:for-each 
328
               select="./param[@name='resource/dataset/originator/individualName/surName']" >-->  
334
          <xsl:for-each 
335
               select="./param[@name='resource/dataset/originator/individualName/surName']" >  
329 336
              <font size="2">
330 337
              <xsl:value-of 
331
                select="./param[@name='resource/dataset/originator/individualName/givenName']" />
338
                select="." />
332 339
              </font> 
333
              <xsl:text>&nbsp;</xsl:text>
340
              <xsl:text>&nbsp;</xsl:text><br/>
334 341

  
335
              <font size="2">
342
      <!--        <font size="2">
336 343
              <xsl:value-of 
337 344
                select="./param[@name='resource/dataset/originator/individualName/surName']" />
338 345
              </font><br/>
339
            <!--</xsl:for-each>--> 
346
      -->
347
            </xsl:for-each> 
340 348
          </td>
341 349
          <td>
342 350
              <font size="2">
......
389 397
        </table>
390 398

  
391 399
        <h3><a href="#top">New Query</a></h3>
392
        
393 400
        </xsl:if>
394 401
        
395 402
      </body>

Also available in: Unified diff