Project

General

Profile

« Previous | Next » 

Revision 469

Added by berkley about 24 years ago

added support for returndoc handling.

View differences:

lib/marine/marine.xsl
39 39
               value="resource/dataset/originator/individualName/givenName" />
40 40
             <input type="hidden" name="returnfield" 
41 41
               value="resource/dataset/originator/organizationName" />
42
             <input type="hidden" name="returnfield" 
43
               value="resource/dataset/title" />
44
             <input type="hidden" name="returnfield" 
45
              value="resource/dataset/keywordInfo/keyword" />
46
             <input type="hidden" name="returndoc"
47
             value="-//NCEAS//resource//EN" />
48
             <input type="hidden" name="returndoc"
49
              value="-//NCEAS//eml-dataset//EN" />
42 50
             <input border="0" type="image" 
43 51
                    src="@image-path@/marine/browsebutton.jpg"
44 52
                    alt="browse the database"
......
69 77
              value="resource/dataset/originator/individualName/givenName" />
70 78
            <input type="hidden" name="returnfield" 
71 79
             value="resource/dataset/originator/organizationName" />
80
            <input type="hidden" name="returnfield" 
81
             value="resource/dataset/title" />
82
            <input type="hidden" name="returnfield" 
83
             value="resource/dataset/keywordInfo/keyword" />
84
            <input type="hidden" name="returndoc"
85
             value="-//NCEAS//resource//EN" />
86
            <input type="hidden" name="returndoc"
87
             value="-//NCEAS//eml-dataset//EN" />
72 88
    	     </form>
73 89
         </td>
74 90
    	 </tr>  
75 91
       </table>
76 92
        
77 93
        <hr />
78
        <center><h3>MARINE Query Interface</h3></center>
94
        <center><h3>MARINE Search Interface</h3></center>
79 95
        <font size="2">
80 96
        <p class="intro">
81
          This page is used to query information for 
97
          This page is a search tool for 
82 98
          <a href="http://www.mms.gov/omm/pacific/enviro/mint.htm">MARINE</a> 
83
          scientists from
99
          scientists to retrieve information from
84 100
          the NCEAS Ecological Metadata Database.  For more information on
85 101
          this project, please read the 
86 102
          <a href=
......
96 112
           Clicking on the buttons next to each data line will give you more
97 113
           information about the dataset or allow you to download the entire 
98 114
           dataset.  
99
           Please note some fields in the query forms will not be pertinent to
115
           Please note some fields in the search forms will not be pertinent to
100 116
           your dataset.  
101 117
           If this is the case, simply leave any field blank to omit it from 
102 118
           the searching.  
......
105 121
        <p class="intro">
106 122
           Note that the wildcard character is a percent sign (%).  It may 
107 123
           be used in any
108
           field to denote "any" value.  For example, the query "do%" would 
124
           field to denote "any" value.  For example, the search "do%" would 
109 125
           return "document"
110 126
           or "dog" or "domino" or "dolphin", etc.  Placing a single percent 
111 127
           sign in a field
......
241 257
            </td>
242 258
            <td>
243 259
              <p>
244
              <b><font size="2">Query the Database</font></b><br/>
260
              <b><font size="2">Search the Database</font></b><br/>
245 261
              <font size="2">
246
              Click the Query button to submit your query.  The results will be
262
              Click the Search button to submit your search.  The results will be
247 263
              displayed below under the heading "Results".
248 264
              </font>
249 265
              </p>
......
260 276
      <input type="hidden" name="returnfield" 
261 277
            value="resource/dataset/originator/organizationName" />
262 278
      <input type="hidden" name="returnfield" 
263
            value="resource/dataset/keywordInfo/keyword" />
264
      <input type="submit" value="Query" />
279
             value="resource/dataset/title" />
280
      <input type="hidden" name="returnfield" 
281
             value="resource/dataset/keywordInfo/keyword" />
282
      <input type="hidden" name="returndoc"
283
             value="-//NCEAS//resource//EN" />
284
      <input type="hidden" name="returndoc"
285
             value="-//NCEAS//eml-dataset//EN" />
286
      <input type="submit" value="Search" />
265 287
      <input type="reset" value="Clear Form" />
266 288
        
267 289
    </form>
......
288 310

  
289 311
	
290 312
	      <font size="2">
291
        <xsl:for-each select="resultset/document[doctype = 'resource']">
313
        
314
        <!--<xsl:for-each select="resultset/document[doctype = 'resource']">-->
315
        <xsl:for-each select="resultset/document">
292 316
          <xsl:sort select="doctitle"/>
293 317
          <tr valign="top">
294 318
            <xsl:attribute name="class">
......
327 351
              </input>
328 352
              </form>
329 353
          </td>
330
          <td><font size="2"><xsl:value-of select="./doctitle"/></font>
354
          <td><font size="2">
355
               <xsl:value-of select="./param[@name='resource/dataset/title']"/>
356
              </font>
331 357
              <xsl:text>&nbsp;</xsl:text>
332 358
          </td>
333 359
          <td>
360
          <xsl:text>&nbsp;</xsl:text>
334 361
          <xsl:for-each 
335 362
               select="./param[@name='resource/dataset/originator/individualName/surName']" >  
336 363
              <font size="2">
337 364
              <xsl:value-of 
338 365
                select="." />
339 366
              </font> 
340
              <xsl:text>&nbsp;</xsl:text><br/>
367
              <br/>
341 368

  
342 369
      <!--        <font size="2">
343 370
              <xsl:value-of 
......
367 394
          </td>
368 395
          
369 396
          <td>
397
            <xsl:text>&nbsp;</xsl:text>
370 398
            <xsl:if test="count(./relation) &gt; 0">
371 399
              <form action="@html-path@/servlet/marine" method="POST">
372 400
              <input type="hidden" name="action" value="getrelateddocument"/>
373 401
              <input type="hidden" name="qformat" value="xml" />
374 402
              <xsl:for-each select="./relation">
375
              <font size="2">
376
              <input type="radio" name="url">
377
              <!--<xsl:attribute name="name" >
378
                <xsl:value-of select="./../docid" />
379
              </xsl:attribute> -->
380
              <xsl:attribute name="value" >
403
                <font size="2">
404
                <input type="radio" name="url">
405
                <xsl:attribute name="value" >
406
                  <xsl:value-of select="./relationdoc" />
407
                </xsl:attribute>
381 408
                <xsl:value-of select="./relationdoc" />
382
              </xsl:attribute>
383
              &nbsp;<xsl:value-of select="./relationdoc" />
384
              </input>
385
              </font>
386
              <br/>
409
                </input>
410
                </font>
411
                <br/>
387 412
             </xsl:for-each>
388 413
             <input type="submit" value="Get" />
389 414
             </form>
390 415
            </xsl:if>
391
            <xsl:text>&nbsp;</xsl:text>
392 416
          </td>
393 417
          
394 418
          </tr>
......
396 420
        </font>
397 421
        </table>
398 422

  
399
        <h3><a href="#top">New Query</a></h3>
423
        <h3><a href="#top">New Search</a></h3>
400 424
        </xsl:if>
401 425
        
402 426
      </body>

Also available in: Unified diff