Project

General

Profile

« Previous | Next » 

Revision 813

Added by Matt Jones over 23 years ago

Updated stylesheet to use new package returndoc type for searches
(eml-dataset-2.0).

View differences:

lib/style/resultset.xsl
90 90
             <input type="hidden" name="operator" value="UNION" />
91 91
            
92 92
             <input type="hidden" name="returnfield" 
93
              value="resource/dataset/originator/individualName/surName" />
93
              value="originator/individualName/surName" />
94 94
             <input type="hidden" name="returnfield" 
95
              value="resource/dataset/originator/individualName/givenName" />
95
              value="originator/individualName/givenName" />
96 96
             <input type="hidden" name="returnfield" 
97
              value="resource/dataset/originator/organizationName" />
97
              value="originator/organizationName" />
98 98
             <input type="hidden" name="returnfield" 
99
              value="resource/dataset/title" />
99
              value="title" />
100 100
             <input type="hidden" name="returnfield" 
101
              value="eml-dataset/title" />
102
             <input type="hidden" name="returnfield" 
103
              value="resource/dataset/keywordInfo/keyword" />
101
              value="keyword" />
104 102
             <input type="hidden" name="returndoc"
103
              value="-//NCEAS//eml-dataset-2.0//EN" />
104
             <input type="hidden" name="returndoc"
105 105
              value="-//NCEAS//resource//EN" />
106 106
             <input type="hidden" name="returndoc"
107 107
              value="-//NCEAS//eml-dataset//EN" />
......
129 129
           </tr>
130 130
        
131 131
         <xsl:for-each select="resultset/document">
132
           <xsl:sort select="doctitle"/>
132
           <xsl:sort select="title"/>
133 133
           <tr valign="top">
134 134
             <xsl:attribute name="class">
135 135
               <xsl:choose>
......
139 139
             </xsl:attribute>
140 140

  
141 141
             <td>
142
               <xsl:value-of select="./param[@name='resource/dataset/title']"/>
143
               <xsl:value-of select="./param[@name='eml-dataset/title']"/>
142
               <xsl:value-of select="./param[@name='title']"/>
144 143
               <br/>
145 144
               <p><pre>Document ID: <xsl:value-of select="./docid"/></pre></p>
146 145
             </td>
......
274 273
               <xsl:text>&nbsp;</xsl:text>
275 274
             </td>
276 275
             <td>
277
               <xsl:for-each select="./param[@name='resource/dataset/originator/individualName/surName']" >  
276
               <xsl:for-each select="./param[@name='originator/individualName/surName']" >  
278 277
                 <xsl:value-of select="." />
279 278
                 <br/>
280 279

  
......
283 282
             </td>
284 283
             <td>
285 284
                 <xsl:value-of select=
286
                 "./param[@name='resource/dataset/originator/organizationName']"                 />
285
                 "./param[@name='originator/organizationName']"                 />
287 286
                 <xsl:text>&nbsp;</xsl:text>
288 287
             </td>
289 288
  
290 289
             <td>
291 290
               <xsl:for-each
292
                select="./param[@name='resource/dataset/keywordInfo/keyword']">
291
                select="./param[@name='keyword']">
293 292
                 <xsl:value-of select="." />
294 293
                 <br/>
295 294
               </xsl:for-each>

Also available in: Unified diff