Project

General

Profile

« Previous | Next » 

Revision 833

Added by Matt Jones over 23 years ago

Minor bug fixes following change in style handling. Fixed image locations,
cleaned up main resultset stylesheet.

View differences:

lib/style/resultset.xsl
40 40
          function submitform(action,form_ref) {
41 41
              form_ref.action.value=action;
42 42
              form_ref.abstractpath.value="";
43
              form_ref.qformat.value="";
43
              form_ref.qformat.value="knb";
44 44
              form_ref.submit();
45 45
          }
46 46
          function submitform1(action, abstractpath, form_ref) {
......
86 86
            <form action="@html-path@/servlet/metacat" method="POST">
87 87
             Data Search: <input type="text" name="anyfield" size="10" />
88 88
             <input type="hidden" name="action" value="query" />   
89
             <input type="hidden" name="qformat" value="html" />
89
             <input type="hidden" name="qformat" value="knb" />
90 90
             <input type="hidden" name="operator" value="UNION" />
91 91
            
92 92
             <input type="hidden" name="returnfield" 
......
121 121
         <table width="100%">
122 122
           <tr>
123 123
             <th class="tablehead">Title</th>
124
             <th class="tablehead">Action</th>
125
             <th class="tablehead">Related Documents</th>
124
             <!-- <th class="tablehead">Action</th> -->
125
             <!-- <th class="tablehead">Related Documents</th> -->
126 126
             <th class="tablehead">Contacts</th>
127 127
             <th class="tablehead">Organization</th>
128 128
             <th class="tablehead">Keywords</th>
......
138 138
               </xsl:choose>
139 139
             </xsl:attribute>
140 140

  
141
<!--
141 142
             <td>
142 143
               <xsl:value-of select="./param[@name='title']"/>
143 144
               <br/>
144 145
               <p><pre>Document ID: <xsl:value-of select="./docid"/></pre></p>
145 146
             </td>
147
-->
146 148
             <td>
147 149
               <form action="@html-path@/servlet/metacat" method="POST">
148 150
                 <xsl:attribute name="name">
......
171 173

  
172 174
                 <a>
173 175
                   <xsl:attribute name="href">javascript:submitform('read',document.<xsl:value-of select="translate(./docid, '.', '')"/>)</xsl:attribute>
174
                   Dataset Information
176
                   <xsl:value-of select="./param[@name='title']"/>
175 177
                 </a><br />
178
                 <br/>
179
                 <p><pre>Document ID: <xsl:value-of select="./docid"/></pre></p>
180
<!--
176 181
                 <a>
177 182
                   <xsl:attribute name="href">javascript:submitform1('read','resource/%/abstract',document.<xsl:value-of select="translate(./docid,'.','')"/>)</xsl:attribute>
178 183
                   View Abstract
......
181 186
                   <xsl:attribute name="href">javascript:submitform2('read','zip',document.<xsl:value-of select="translate(./docid,'.','')"/>)</xsl:attribute>
182 187
                    Download Data and Metadata
183 188
                 </a><br />
189
-->
184 190
               </form>
185 191
             </td>
192
<!--
186 193
             <td>
187 194
               <xsl:if test="count(./relation) &gt; 0">
188 195
                 <xsl:for-each select="./relation">
......
219 226
                        test="./relationdoctype = '-//NCEAS//eml-supplement//EN'">
220 227
                         Supplemental Information
221 228
                       </xsl:if>
229
-->
222 230
                       <!-- If the doctype is null, this file is assumed to 
223 231
                            be a data file
224 232
                        -->
233
<!--
225 234
                       <xsl:if test="./relationdoctype = 'null'">
226 235
                         Data File
227 236
                       </xsl:if>
228 237
                     </xsl:if>
229 238
                     <xsl:if test="starts-with(./relationdoc, 'metacat')">
230 239
                       <xsl:attribute name="href">
231
                         <xsl:text>http://@server@@servlet-path@?action=read&amp;qformat=html&amp;docid=</xsl:text>
240
                         <xsl:text>http://@server@@servlet-path@?action=read&amp;qformat=knb&amp;docid=</xsl:text>
232 241
                         <xsl:value-of select="./relationdoc" />
233 242
                       </xsl:attribute>
234 243
                       <xsl:if 
......
259 268
                        test="./relationdoctype = '-//NCEAS//eml-supplement//EN'">
260 269
                         Supplemental Information
261 270
                       </xsl:if>
271
-->
262 272
                       <!-- If the doctype is null, this file is assumed to 
263 273
                            be a data file
264 274
                        -->
275
<!--
265 276
                       <xsl:if test="./relationdoctype = 'null'">
266 277
                         Data File
267 278
                       </xsl:if>
......
270 281
                   <br/>
271 282
                 </xsl:for-each>  
272 283
               </xsl:if>
273
               <xsl:text>&nbsp;</xsl:text>
284
               <xsl:text> </xsl:text>
274 285
             </td>
286
-->
275 287
             <td>
276 288
               <xsl:for-each select="./param[@name='originator/individualName/surName']" >  
277 289
                 <xsl:value-of select="." />
278 290
                 <br/>
279 291

  
280 292
               </xsl:for-each>
281
               <xsl:text>&nbsp;</xsl:text>
293
               <xsl:text> </xsl:text>
282 294
             </td>
283 295
             <td>
284 296
                 <xsl:value-of select=
285 297
                 "./param[@name='originator/organizationName']"                 />
286
                 <xsl:text>&nbsp;</xsl:text>
298
                 <xsl:text> </xsl:text>
287 299
             </td>
288 300
  
289 301
             <td>
......
292 304
                 <xsl:value-of select="." />
293 305
                 <br/>
294 306
               </xsl:for-each>
295
               <xsl:text>&nbsp;</xsl:text>
307
               <xsl:text> </xsl:text>
296 308
             </td>
297 309
           </tr>
298 310

  
lib/index.html
25 25
  * along with this program; if not, write to the Free Software
26 26
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27 27
-->
28
  <HTML>
29
  <HEAD>
30
  <TITLE>MetaCat</TITLE>
31
  <link rel="stylesheet" type="text/css" href="@html-path@/style/rowcol.css">
32
  </HEAD> 
33
  <FRAMESET COLS="*" FRAMEBORDER=0 BORDER=0>
34

  
35
    <FRAMESET ROWS="165,*"  FRAMEBORDER=0 BORDER=0>
36
    
37
    <FRAME SRC="queform.html" BORDER=0 NAME="left">
38

  
39
    <FRAME SRC="@servlet-path@?action=query&anyfield=%25&qformat=html&returndoctype=-//NCEAS//eml-dataset-2.0//EN&returnfield=title&returnfield=keyword&returnfield=originator/individualName/surName&returnfield=originator/organizationName" BORDER=0 NAME="right">
40

  
41
    </FRAMESET>
42
  </FRAMESET>
28
<html>
29
<head>
30
<title>KNB Data Search</title>
31
<meta HTTP-EQUIV="refresh" CONTENT="1;URL=@servlet-path@?action=query&operator=INTERSECT&anyfield=%25&qformat=knb&returndoctype=-//NCEAS//eml-dataset-2.0//EN&returnfield=title&returnfield=keyword&returnfield=originator/individualName/surName&returnfield=originator/organizationName" />
32
</head>
33
<body bgcolor="WHITE">
34
</body>
35
</html>
build.xml
43 43
      <property name="servlet-path" value="/jones/servlet/metacat"/>
44 44
      <property name="html-path" value="/jones"/>
45 45
      <property name="image-path" value="/img/jones" />
46
      <property name="style-path" value="${web-base-url}"/>
46
      <property name="style-path" value="/jones/style"/>
47 47
      <property name="server" value="dev.nceas.ucsb.edu"/>
48 48
      <property name="replication-log" value="/tmp/metacatreplication.log"/>
49 49
      <property name="user" value="jones"/>

Also available in: Unified diff