~slub.team/goobi-indexserver/3.x

« back to all changes in this revision

Viewing changes to solr/webapp/web/admin/registry.xsl

  • Committer: Sebastian Meyer
  • Date: 2012-08-03 09:12:40 UTC
  • Revision ID: sebastian.meyer@slub-dresden.de-20120803091240-x6861b0vabq1xror
Remove Lucene and Solr source code and add patches instead
Fix Bug #985487: Auto-suggestion for the search interface

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="utf-8"?>
2
 
<!--
3
 
 Licensed to the Apache Software Foundation (ASF) under one or more
4
 
 contributor license agreements.  See the NOTICE file distributed with
5
 
 this work for additional information regarding copyright ownership.
6
 
 The ASF licenses this file to You under the Apache License, Version 2.0
7
 
 (the "License"); you may not use this file except in compliance with
8
 
 the License.  You may obtain a copy of the License at
9
 
 
10
 
     http://www.apache.org/licenses/LICENSE-2.0
11
 
 
12
 
 Unless required by applicable law or agreed to in writing, software
13
 
 distributed under the License is distributed on an "AS IS" BASIS,
14
 
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
 
 See the License for the specific language governing permissions and
16
 
 limitations under the License.
17
 
-->
18
 
<!-- $Id: registry.xsl 1075192 2011-02-28 00:50:09Z uschindler $ -->
19
 
<!-- $URL: http://svn.apache.org/repos/asf/lucene/dev/tags/lucene_solr_3_5_0/solr/webapp/web/admin/registry.xsl $ -->
20
 
 
21
 
<xsl:stylesheet
22
 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
23
 
  version="1.0">
24
 
 
25
 
 
26
 
  <xsl:output
27
 
    method="html"
28
 
    encoding="utf-8"
29
 
    media-type="text/html"
30
 
    indent="yes"
31
 
    doctype-public="-//W3C//DTD HTML 4.01//EN"
32
 
    doctype-system="http://www.w3.org/TR/html4/strict.dtd" />
33
 
 
34
 
 
35
 
  <xsl:template match="/">
36
 
    <html>
37
 
      <head>
38
 
        <link rel="stylesheet" type="text/css" href="solr-admin.css"></link>
39
 
        <link rel="icon" href="favicon.ico" type="image/ico"></link>
40
 
        <link rel="shortcut icon" href="favicon.ico" type="image/ico"></link>
41
 
        <title>Solr Info</title>
42
 
      </head>
43
 
      <body>
44
 
        <a href=".">
45
 
           <img border="0" align="right" height="78" width="142" src="solr_small.png" alt="Apache Solr">
46
 
           </img>
47
 
        </a>
48
 
        <h1>Solr Info (<xsl:value-of select="solr/schema" />)</h1>
49
 
          <xsl:value-of select="solr/host" />
50
 
          <br clear="all" />
51
 
        <xsl:apply-templates/>
52
 
        <br /><br />
53
 
        <a href=".">Return to Admin Page</a>
54
 
      </body>
55
 
    </html>
56
 
  </xsl:template>
57
 
 
58
 
  <xsl:template match="solr">
59
 
  <table>
60
 
    <tr>
61
 
      <td>
62
 
        <H3>Category</H3>
63
 
      </td>
64
 
      <td>
65
 
        [<a href="#core">Core</a>]
66
 
        [<a href="#cache">Cache</a>]
67
 
        [<a href="#query">Query</a>]
68
 
        [<a href="#update">Update</a>]
69
 
        [<a href="#highlighting">Highlighting</a>]
70
 
        [<a href="#other">Other</a>]
71
 
      </td>
72
 
    </tr>
73
 
    <tr><td></td>
74
 
      <td>Solr Specification Version: 
75
 
          <xsl:value-of select="solr-spec-version" />
76
 
      </td>
77
 
    </tr>
78
 
    <tr><td></td>
79
 
      <td>Solr Implementation Version: 
80
 
          <xsl:value-of select="solr-impl-version" />
81
 
      </td>
82
 
    </tr>
83
 
    <tr><td></td>
84
 
      <td>Lucene Specification Version: 
85
 
          <xsl:value-of select="lucene-spec-version" />
86
 
      </td>
87
 
    </tr>
88
 
    <tr><td></td>
89
 
      <td>Lucene Implementation Version: 
90
 
          <xsl:value-of select="lucene-impl-version" />
91
 
      </td>
92
 
    </tr>
93
 
    <tr>
94
 
      <td>
95
 
      </td>
96
 
      <td>
97
 
        Current Time: <xsl:value-of select="now" />
98
 
      </td>
99
 
    </tr>
100
 
    <tr>
101
 
      <td>
102
 
      </td>
103
 
      <td>
104
 
        Server Start Time:<xsl:value-of select="start" />
105
 
      </td>
106
 
    </tr>
107
 
  </table>
108
 
  <xsl:apply-templates/>
109
 
  </xsl:template>
110
 
 
111
 
  <xsl:template match="solr/*" priority="-1" />
112
 
 
113
 
  <xsl:template match="solr/solr-info">
114
 
  <xsl:apply-templates/>
115
 
  </xsl:template>
116
 
 
117
 
  <xsl:template match="solr/solr-info/CORE">
118
 
    <br />
119
 
    <a name="core"><h2>Core</h2></a>
120
 
    <table>
121
 
        <tr>
122
 
          <td align="right">
123
 
            &#xa0;
124
 
          </td>
125
 
          <td>
126
 
          </td>
127
 
        </tr>
128
 
    <xsl:apply-templates/>
129
 
    </table>
130
 
  </xsl:template>
131
 
 
132
 
  <xsl:template match="solr/solr-info/CORE/entry">
133
 
      <xsl:for-each select="*">
134
 
        <tr>
135
 
          <td align="right">
136
 
            <strong><xsl:value-of select="name()"/>:&#xa0;</strong>
137
 
          </td>
138
 
          <td>
139
 
            <tt><xsl:value-of select="."/>&#xa0;</tt>
140
 
          </td>
141
 
        </tr>
142
 
      </xsl:for-each>
143
 
        <tr>
144
 
          <td align="right">
145
 
          </td>
146
 
          <td>
147
 
          </td>
148
 
        </tr>
149
 
  </xsl:template>
150
 
 
151
 
  <xsl:template match="solr/solr-info/CACHE">
152
 
    <br />
153
 
    <a name="cache"><h2>Cache</h2></a>
154
 
    <table>
155
 
        <tr>
156
 
          <td align="right">
157
 
            &#xa0;
158
 
          </td>
159
 
          <td>
160
 
          </td>
161
 
        </tr>
162
 
    <xsl:apply-templates/>
163
 
    </table>
164
 
  </xsl:template>
165
 
 
166
 
  <xsl:template match="solr/solr-info/CACHE/entry">
167
 
      <xsl:for-each select="*">
168
 
        <tr>
169
 
          <td align="right">
170
 
            <strong><xsl:value-of select="name()"/>:&#xa0;</strong>
171
 
          </td>
172
 
          <td>
173
 
            <tt><xsl:value-of select="."/>&#xa0;</tt>
174
 
          </td>
175
 
        </tr>
176
 
      </xsl:for-each>
177
 
        <tr>
178
 
          <td align="right">
179
 
          </td>
180
 
          <td>
181
 
          </td>
182
 
        </tr>
183
 
  </xsl:template>
184
 
 
185
 
  <xsl:template match="solr/solr-info/QUERYHANDLER">
186
 
    <br />
187
 
    <a name="query"><h2>Query Handlers</h2></a>
188
 
    <table>
189
 
        <tr>
190
 
          <td align="right">
191
 
            &#xa0;
192
 
          </td>
193
 
          <td>
194
 
          </td>
195
 
        </tr>
196
 
    <xsl:apply-templates/>
197
 
    </table>
198
 
  </xsl:template>
199
 
 
200
 
  <xsl:template match="solr/solr-info/QUERYHANDLER/entry">
201
 
      <xsl:for-each select="*">
202
 
        <tr>
203
 
          <td align="right">
204
 
            <strong><xsl:value-of select="name()"/>:&#xa0;</strong>
205
 
          </td>
206
 
          <td>
207
 
            <tt><xsl:value-of select="."/>&#xa0;</tt>
208
 
          </td>
209
 
        </tr>
210
 
      </xsl:for-each>
211
 
        <tr>
212
 
          <td align="right">
213
 
          </td>
214
 
          <td>
215
 
          </td>
216
 
        </tr>
217
 
  </xsl:template>
218
 
 
219
 
  <xsl:template match="solr/solr-info/UPDATEHANDLER">
220
 
    <br />
221
 
    <a name="update"><h2>Update Handlers</h2></a>
222
 
    <table>
223
 
        <tr>
224
 
          <td align="right">
225
 
            &#xa0;
226
 
          </td>
227
 
          <td>
228
 
          </td>
229
 
        </tr>
230
 
    <xsl:apply-templates/>
231
 
    </table>
232
 
  </xsl:template>
233
 
 
234
 
  <xsl:template match="solr/solr-info/UPDATEHANDLER/entry">
235
 
      <xsl:for-each select="*">
236
 
        <tr>
237
 
          <td align="right">
238
 
            <strong><xsl:value-of select="name()"/>:&#xa0;</strong>
239
 
          </td>
240
 
          <td>
241
 
            <tt><xsl:value-of select="."/>&#xa0;</tt>
242
 
          </td>
243
 
        </tr>
244
 
      </xsl:for-each>
245
 
        <tr>
246
 
          <td align="right">
247
 
          </td>
248
 
          <td>
249
 
          </td>
250
 
        </tr>
251
 
  </xsl:template>
252
 
  <xsl:template match="solr/solr-info/HIGHLIGHTING">
253
 
    <br />
254
 
    <a name="highlighting"><h2>Highlighting</h2></a>
255
 
    <table>
256
 
        <tr>
257
 
          <td align="right">
258
 
            &#xa0;
259
 
          </td>
260
 
          <td>
261
 
          </td>
262
 
        </tr>
263
 
    <xsl:apply-templates/>
264
 
    </table>
265
 
  </xsl:template>
266
 
  <xsl:template match="solr/solr-info/HIGHLIGHTING/entry">
267
 
      <xsl:for-each select="*">
268
 
        <tr>
269
 
          <td align="right">
270
 
            <strong><xsl:value-of select="name()"/>:&#xa0;</strong>
271
 
          </td>
272
 
          <td>
273
 
            <tt><xsl:value-of select="."/>&#xa0;</tt>
274
 
          </td>
275
 
        </tr>
276
 
      </xsl:for-each>
277
 
        <tr>
278
 
          <td align="right">
279
 
          </td>
280
 
          <td>
281
 
          </td>
282
 
        </tr>
283
 
  </xsl:template>
284
 
 
285
 
 
286
 
  <xsl:template match="solr/solr-info/OTHER">
287
 
    <br />
288
 
    <a name="other"><h2>Other</h2></a>
289
 
    <table>
290
 
        <tr>
291
 
          <td align="right">
292
 
            &#xa0;
293
 
          </td>
294
 
          <td>
295
 
          </td>
296
 
        </tr>
297
 
    <xsl:apply-templates/>
298
 
    </table>
299
 
  </xsl:template>
300
 
 
301
 
  <xsl:template match="solr/solr-info/OTHER/entry">
302
 
      <xsl:for-each select="*">
303
 
        <tr>
304
 
          <td align="right">
305
 
            <strong><xsl:value-of select="name()"/>:&#xa0;</strong>
306
 
          </td>
307
 
          <td>
308
 
            <tt><xsl:value-of select="."/>&#xa0;</tt>
309
 
          </td>
310
 
        </tr>
311
 
      </xsl:for-each>
312
 
        <tr>
313
 
          <td align="right">
314
 
          </td>
315
 
          <td>
316
 
          </td>
317
 
        </tr>
318
 
  </xsl:template>
319
 
 
320
 
 
321
 
</xsl:stylesheet>