Project

General

Profile

« Previous | Next » 

Revision 438

Added by berkley about 24 years ago

added documentation and cleaned up the markup.

View differences:

lib/marine/marine.xsl
15 15
  * This stylesheet formats .
16 16
-->
17 17
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
18

  
19 18
  <xsl:output method="html"/>
20

  
21 19
  <xsl:template match="/">
22 20
    <html>
23 21
      <head>
24
	<link rel="stylesheet" type="text/css" href="@html-path@/marine/rowcol.css" />
22
        <link rel="stylesheet" type="text/css" href="@html-path@/marine/rowcol.css" />
25 23
      </head>
26 24
      <body class="emlbody">
27 25
        <a name="top" />
......
35 33
    	       <input type="hidden" name="qformat" value="html" />
36 34
             <input type="hidden" name="operator" value="UNION" />
37 35
             <input type="hidden" name="anyfield" value="%" />
38
             <input type="hidden" name="abstractpath" 
39
                                  value="resource/%/abstract" />
40 36
             <input type="hidden" name="returnfield" 
41 37
               value="resource/dataset/originator/individualName/surName" />
42 38
             <input type="hidden" name="returnfield" 
......
66 62
               <input type="hidden" name="action" value="query" />   
67 63
    	       <input type="hidden" name="qformat" value="html" />
68 64
    	       <input type="hidden" name="operator" value="UNION" />
69
             <input type="hidden" name="abstractpath" 
70
                                  value="resource/%/abstract" />
71
      <input type="hidden" name="returnfield" 
72
        value="resource/dataset/originator/individualName/surName" />
73
      <input type="hidden" name="returnfield" 
74
        value="resource/dataset/originator/individualName/givenName" />
75
      <input type="hidden" name="returnfield" 
76
        value="resource/dataset/originator/organizationName" />
65
             
66
             <input type="hidden" name="returnfield" 
67
              value="resource/dataset/originator/individualName/surName" />
68
             <input type="hidden" name="returnfield" 
69
              value="resource/dataset/originator/individualName/givenName" />
70
            <input type="hidden" name="returnfield" 
71
             value="resource/dataset/originator/organizationName" />
77 72
    	     </form>
78 73
         </td>
79 74
    	 </tr>  
......
264 259
            value="resource/dataset/originator/individualName/givenName" />
265 260
      <input type="hidden" name="returnfield" 
266 261
            value="resource/dataset/originator/organizationName" />
267
      <input type="hidden" name="abstractpath" value="resource/%/abstract" />
268
        
269 262
      <input type="submit" value="Query" />
270 263
      <input type="reset" value="Clear Form" />
271 264
        
272 265
    </form>
273 266
             
274
  <a name="browse" />
275
	<font size="2"><xsl:number value="count(resultset/document)" /> documents 
276
  found.</font>
277
	<!-- This tests to see if there are returned documents,
278
	     if there are not then don't show the query results -->
279
	<xsl:if test="count(resultset/document) &gt; 0">
280
	
281
	<center>
282
          <u><h2>Results</h2></u>
283
        </center>
284
        
285
        <form action="@html-path@/servlet/marine" method="POST">
267
    <a name="browse" />
268
	  <font size="2"><xsl:number value="count(resultset/document)" /> documents 
269
     found.</font>
270
	  <!-- This tests to see if there are returned documents,
271
	       if there are not then don't show the query results -->
272
	  <xsl:if test="count(resultset/document) &gt; 0">
273
	    <center>
274
        <u><h2>Results</h2></u>
275
      </center>
276
      <form action="@html-path@/servlet/marine" method="POST">
277
      <!-- abstractpath tells the servlet where the abstract is in the 
278
           document.  The % sign is used because the path could be
279
           resource/literature or resource/dataset. -->
286 280
        <input type="hidden" name="abstractpath" value="resource/%/abstract" />
287 281
        <input type="hidden" name="action" value="getdocument"/>
288
                
282
          
289 283
        <table width="100%">
290
        <tr class="rowodd">
291
        <th>&nbsp;</th>
292
        <th><font size="2"><xsl:text>Title</xsl:text></font></th>
293
        <th><font size="2"><xsl:text>Contacts</xsl:text></font></th>
294
        <th><font size="2"><xsl:text>Organization</xsl:text></font></th>
295
        <th><font size="2"><xsl:text>Creation Date</xsl:text></font></th>
296
        <th><font size="2"><xsl:text>Last Updated</xsl:text></font></th>
297
        </tr>
284
          <tr class="rowodd">
285
           <th>&nbsp;</th>
286
           <th><font size="2"><xsl:text>Title</xsl:text></font></th>
287
           <th><font size="2"><xsl:text>Contacts</xsl:text></font></th>
288
           <th><font size="2"><xsl:text>Organization</xsl:text></font></th>
289
           <th><font size="2"><xsl:text>Creation Date</xsl:text></font></th>
290
           <th><font size="2"><xsl:text>Last Updated</xsl:text></font></th>
291
          </tr>
298 292

  
299 293
	
300 294
	      <font size="2">

Also available in: Unified diff