Project

General

Profile

« Previous | Next » 

Revision 386

Added by berkley over 24 years ago

modified the xsl to work with the new servlet architecture.o

View differences:

lib/marine/marine.xsl
21 21
  <xsl:template match="/">
22 22
    <html>
23 23
      <head>
24
	<link rel="stylesheet" type="text/css" href="/xmltodb/lib/marine/rowcol.css" />
24
	<link rel="stylesheet" type="text/css" href="@html-path@/marine/rowcol.css" />
25 25
      </head>
26 26
      <body class="emlbody">
27 27
      <script language="JavaScript">
......
34 34
        <table width="100%">
35 35
        <tr>
36 36
          <td align="left" valign="top">
37
            <form action="http://alpha.nceas.ucsb.edu/servlets/marineServlet#browse"
37
            <form action="@html-path@/servlet/marine"
38 38
                  method="POST">
39
               <input type="hidden" name="action" value="squery" />   
39
               <input type="hidden" name="action" value="query" />   
40 40
    	       <input type="hidden" name="query" value="" />
41 41
    	       <input type="hidden" name="qformat" value="html" />
42 42
               <input type="hidden" name="operator" value="UNION" />
......
45 45
            </form>   
46 46
          </td>
47 47
          <td align="center" valign="bottom">
48
            <img src="/xmltodb/lib/marine/logo-line.gif" alt="NCEAS Logo" onClick="gotoNceas()" />
48
            <img src="@html-path@/marine/logo-line.gif" alt="NCEAS Logo" 
49
                 onClick="gotoNceas()" />
49 50
          </td>
50 51
          <td align="right" valign="top">
51
            <form action="http://alpha.nceas.ucsb.edu/servlets/marineServlet#browse"
52
            <form action="@html-path@/servlet/marine"
52 53
                  method="POST">
53
               Quick Search: <input type="text" name="query" size="10" />
54
               Quick Search: <input type="text" name="anyfield" size="10" />
54 55
               <input type="hidden" name="action" value="query" />   
55 56
    	       <input type="hidden" name="qformat" value="html" />
56 57
    	       <input type="hidden" name="operator" value="UNION" />
......
65 66
        <font size="2">
66 67
        <p class="intro">
67 68
          This page is used to query information for 
68
          <a href="http://www.mms.gov/omm/pacific/enviro/mint.htm">MARINE</a> scientists from
69
          <a href="http://www.mms.gov/omm/pacific/enviro/mint.htm">MARINE</a> 
70
          scientists from
69 71
          the NCEAS Ecological Metadata Database.  For more information on
70 72
          this project, please read the 
71
          <a href="https://www2.nceas.ucsb.edu/admin/db/web.ppage?projid_in=2841">
73
          <a href=
74
          "http://www.nceas.ucsb.edu/marinedata/">
72 75
          proposal abstract</a>.
73 76
        </p>
74 77
        
75 78
        <p class="intro">
76
           Each step below contains several fields relating to a part of the dataset.  
77
           You may also browse
78
           the entire database by simply clicking the browse link at the top of the page.
79
           Each step below contains several fields relating to a part of the 
80
           dataset.  You may also browse
81
           the entire database by simply clicking the browse link at the top 
82
           of the page.
79 83
           Clicking on the buttons next to each data line will give you more
80
           information about the dataset or allow you to download the entire dataset.  
81
           Please note some fields in the query forms will not be pertinent to your dataset.  
82
           If this is the case, simply leave any field blank to omit it from the searching.  
84
           information about the dataset or allow you to download the entire 
85
           dataset.  
86
           Please note some fields in the query forms will not be pertinent to
87
           your dataset.  
88
           If this is the case, simply leave any field blank to omit it from 
89
           the searching.  
83 90
        </p>
84 91
        
85 92
        <p class="intro">
86
           Note that the wildcard character is a percent sign (%).  It may be used in any
87
           field to denote "any" value.  For example, the query "do%" would return "document"
88
           or "dog" or "domino" or "dolphin", etc.  Placing a single percent sign in a field
89
           will return any document that contains that field.  Placing a percent sign in
90
           the "Any Field" field is equivalent to browsing the database (i.e. it will return
93
           Note that the wildcard character is a percent sign (%).  It may 
94
           be used in any
95
           field to denote "any" value.  For example, the query "do%" would 
96
           return "document"
97
           or "dog" or "domino" or "dolphin", etc.  Placing a single percent 
98
           sign in a field
99
           will return any document that contains that field.  Placing a 
100
           percent sign in
101
           the "Any Field" field is equivalent to browsing the database (i.e. 
102
           it will return
91 103
           every document).  
92 104
        </p>
93 105
        </font>
94 106
        
95
        <form action="http://alpha.nceas.ucsb.edu/servlets/marineServlet#browse" 
107
        <form action="@html-path@/servlet/marine" 
96 108
              method="POST"> 
97 109
           
98 110
        <table width="100%" border="1">
99 111
          <tr>
100 112
             <td valign="bottom" width = "25">
101
        	<img src="http://alpha.nceas.ucsb.edu/xmltodb/lib/marine/step1.jpg" />
113
        	<img src="@html-path@/marine/step1.jpg" />
102 114
             </td>
103 115
             <td>
104 116
               <h4>Keywords and Title</h4>
105 117
               <p>
106 118
               <font size="2">
107
                 Enter any keywords that might partain to the dataset you are looking for.  
108
                 The "Any Field" text box will search for any field in any document for 
109
                 the text you provide.  The title and alternate title will search for text 
110
                 in the title or alternate title fields of a document only.  Fields left 
119
                 Enter any keywords that might partain to the dataset you 
120
                 are looking for.  
121
                 The "Any Field" text box will search for any field in any 
122
                 document for 
123
                 the text you provide.  The title and alternate title will 
124
                 search for text 
125
                 in the title or alternate title fields of a document only.  
126
                 Fields left 
111 127
                 blank will not be used in the search criteria.
112 128
               </font></p>
113 129
             </td> 
......
156 172
        <table width="100%" border="1">
157 173
          <tr>
158 174
             <td valign="bottom" width="25">
159
        	<img src="http://alpha.nceas.ucsb.edu/xmltodb/lib/marine/step2.jpg" />
175
        	<img src="@html-path@/marine/step2.jpg" />
160 176
             </td>
161 177
             <td>
162 178
                <h4>Dataset Owner Information</h4>
163 179
        	<p>
164 180
        	   <font size="2">
165
        	   Enter data about the owner of the dataset.  There may be more than one
166
        	   owner of any given dataset.  Any field(s) left blank will not be used
181
        	   Enter data about the owner of the dataset.  There may be more 
182
             than one
183
        	   owner of any given dataset.  Any field(s) left blank will not be 
184
             used
167 185
        	   in the search criteria.
168 186
        	   </font>
169 187
        	</p>
......
212 230
        <table width="100%" border="1">
213 231
          <tr>
214 232
             <td valign="bottom" width="25">
215
        	<img src="http://alpha.nceas.ucsb.edu/xmltodb/lib/marine/step3.jpg" />
233
        	<img src="@html-path@/marine/step3.jpg" />
216 234
             </td>
217 235
             <td>
218 236
        	<h4>Query the Database</h4>
......
225 243
             </td>
226 244
          </tr>
227 245
        </table>
228
        <input type="hidden" name="action" value="squery" />   
229
    	<input type="hidden" name="query" value="" />
246
        <input type="hidden" name="action" value="query" />   
230 247
    	<input type="hidden" name="qformat" value="html" />
231 248
    	<input type="hidden" name="operator" value="UNION" />
232 249
        
......
235 252
        
236 253
        </form>
237 254
             
238
        <a name="browse" />
239
	<font size="3"><xsl:number value="count(resultset/document)" /> documents found.</font>
255
  <a name="browse" />
256
	<font size="3"><xsl:number value="count(resultset/document)" /> documents 
257
  found.</font>
240 258
	<!-- This tests to see if there are returned documents,
241 259
	     if there are not then don't show the query results
242 260
	-->
......
246 264
          <u><h2>Results</h2></u>
247 265
        </center>
248 266
        
249
        <form action="/servlets/marineServlet" method="POST">
267
        <form action="@html-path@/servlet/marine" method="POST">
250 268
        <input type="hidden" name="action" value="getdocument"/>
251 269
                
252 270
        <table width="100%">
......
276 294
                <xsl:attribute name="src">
277 295
                  <xsl:choose>
278 296
                    <xsl:when test="position() 
279
                         mod 2 = 1">/xmltodb/lib/marine/whiteMenu.jpg</xsl:when>
297
                         mod 2 = 1">@html-path@/marine/whiteMenu.jpg</xsl:when>
280 298
                    <xsl:when test="position() 
281
                         mod 2 = 0">/xmltodb/lib/marine/blueMenu.jpg</xsl:when>
299
                         mod 2 = 0">@html-path@/marine/blueMenu.jpg</xsl:when>
282 300
                  </xsl:choose>
283 301
                </xsl:attribute>
284 302
                <xsl:attribute name="name">
......
290 308
              
291 309
              <xsl:text>&nbsp;</xsl:text>
292 310
          </td>
293
          <td><xsl:value-of select="./givenName" />
311
  <!--        <td><xsl:value-of select="./givenName" />
294 312
              <xsl:text>&nbsp;</xsl:text>
295 313
              <xsl:value-of select="./surName" />
296 314
              <xsl:text>&nbsp;</xsl:text>
......
305 323
          <td>
306 324
              <xsl:value-of select="./date_updated" /> 
307 325
              <xsl:text>&nbsp;</xsl:text>
308
          </td>
326
          </td> -->
309 327
          </tr>
310 328
        </xsl:for-each>
311 329
        </table>

Also available in: Unified diff