Revision 3257
Added by berkley over 17 years ago
resultset.xsl | ||
---|---|---|
129 | 129 |
</script> |
130 | 130 |
|
131 | 131 |
<div class="body"> |
132 |
<p class="emphasis"> |
|
133 |
<xsl:number value="count(resultset/document)" /> components found |
|
134 |
</p> |
|
132 |
<xsl:if test="/resultset/pagesize = 0"> |
|
133 |
<p class="emphasis"> |
|
134 |
<xsl:number value="count(resultset/document)" /> components found |
|
135 |
</p> |
|
136 |
</xsl:if> |
|
137 |
|
|
138 |
<xsl:if test="/resultset/pagesize > 0"> |
|
139 |
<table cellspacing="0" cellpadding="0" style="width: 100%;"> |
|
140 |
<tr> |
|
141 |
<td> |
|
142 |
<xsl:if test="/resultset/previouspage != -1"> |
|
143 |
<div class="emphasis"> |
|
144 |
<a style="font-size: smaller;"> |
|
145 |
<xsl:attribute name="href"> |
|
146 |
<xsl:text>metacat?action=query&operator=INTERSECT&enableediting=false</xsl:text> |
|
147 |
|
|
148 |
<xsl:if test="count(/resultset/query/pathquery/querygroup/queryterm/value) > 0"> |
|
149 |
<xsl:text>&anyfield=</xsl:text> |
|
150 |
<xsl:value-of select="/resultset/query/pathquery/querygroup/queryterm/value"/> |
|
151 |
</xsl:if> |
|
152 |
|
|
153 |
<xsl:if test="count(/resultset/query/pathquery/querygroup/queryterm/value) <= 0"> |
|
154 |
<xsl:text>&anyfield=%25</xsl:text> |
|
155 |
</xsl:if> |
|
156 |
|
|
157 |
<xsl:text>&qformat=</xsl:text> |
|
158 |
<xsl:value-of select="$qformat"/> |
|
159 |
|
|
160 |
<xsl:text>&sessionid=</xsl:text> |
|
161 |
<xsl:value-of select="$sessid"/> |
|
162 |
|
|
163 |
<xsl:for-each select="/resultset/query/pathquery/returndoctype"> |
|
164 |
<xsl:text>&returndoctype=</xsl:text> |
|
165 |
<xsl:value-of select="."/> |
|
166 |
</xsl:for-each> |
|
167 |
|
|
168 |
<xsl:for-each select="/resultset/query/pathquery/returnfield"> |
|
169 |
<xsl:text>&returnfield=</xsl:text> |
|
170 |
<xsl:value-of select="."/> |
|
171 |
</xsl:for-each> |
|
172 |
|
|
173 |
<xsl:text>&pagestart=</xsl:text> |
|
174 |
<xsl:value-of select="/resultset/previouspage"/> |
|
175 |
|
|
176 |
<xsl:text>&pagesize=</xsl:text> |
|
177 |
<xsl:value-of select="/resultset/pagesize"/> |
|
178 |
</xsl:attribute> |
|
179 |
|
|
180 |
<xsl:text>Previous Page</xsl:text> |
|
181 |
</a> |
|
182 |
</div> |
|
183 |
</xsl:if> |
|
184 |
</td> |
|
135 | 185 |
|
186 |
<td> |
|
187 |
<div class="emphasis"> |
|
188 |
<a style="font-size: smaller;"> |
|
189 |
<xsl:attribute name="href"> |
|
190 |
<xsl:text>metacat?action=query&operator=INTERSECT&enableediting=false</xsl:text> |
|
191 |
|
|
192 |
<xsl:if test="count(/resultset/query/pathquery/querygroup/queryterm/value) > 0"> |
|
193 |
<xsl:text>&anyfield=</xsl:text> |
|
194 |
<xsl:value-of select="/resultset/query/pathquery/querygroup/queryterm/value"/> |
|
195 |
</xsl:if> |
|
196 |
|
|
197 |
<xsl:if test="count(/resultset/query/pathquery/querygroup/queryterm/value) <= 0"> |
|
198 |
<xsl:text>&anyfield=%25</xsl:text> |
|
199 |
</xsl:if> |
|
200 |
|
|
201 |
<xsl:text>&qformat=</xsl:text> |
|
202 |
<xsl:value-of select="$qformat"/> |
|
203 |
|
|
204 |
<xsl:text>&sessionid=</xsl:text> |
|
205 |
<xsl:value-of select="$sessid"/> |
|
206 |
|
|
207 |
<xsl:for-each select="/resultset/query/pathquery/returndoctype"> |
|
208 |
<xsl:text>&returndoctype=</xsl:text> |
|
209 |
<xsl:value-of select="."/> |
|
210 |
</xsl:for-each> |
|
211 |
|
|
212 |
<xsl:for-each select="/resultset/query/pathquery/returnfield"> |
|
213 |
<xsl:text>&returnfield=</xsl:text> |
|
214 |
<xsl:value-of select="."/> |
|
215 |
</xsl:for-each> |
|
216 |
|
|
217 |
<xsl:text>&pagestart=</xsl:text> |
|
218 |
<xsl:value-of select="/resultset/nextpage"/> |
|
219 |
|
|
220 |
<xsl:text>&pagesize=</xsl:text> |
|
221 |
<xsl:value-of select="/resultset/pagesize"/> |
|
222 |
</xsl:attribute> |
|
223 |
|
|
224 |
<xsl:text>Next Page</xsl:text> |
|
225 |
</a> |
|
226 |
</div> |
|
227 |
</td> |
|
228 |
</tr> |
|
229 |
</table> |
|
230 |
</xsl:if> |
|
231 |
|
|
136 | 232 |
<!-- This tests to see if there are returned documents, |
137 | 233 |
if there are not then don't show the query results --> |
138 | 234 |
|
Also available in: Unified diff
updated the kepler skin to use paging. need to do a bit more work on this to make it behave more like other web applications