Line 0
Link Here
|
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 |
|
3 |
[%- USE Koha -%] |
4 |
[%- USE date( format = '%Y-%m-%d %H:%M:%S' ) -%] |
5 |
|
6 |
<!-- this file configures the SRU/SRW explain response --> |
7 |
<!-- see: http://explain.z3950.org/dtd/commentary.html --> |
8 |
<!-- validate this using zeerex-2.0.xsd --> |
9 |
<!-- Extensions see: http://explain.z3950.org/dtd/extensions.html --> |
10 |
|
11 |
<explain xmlns="http://explain.z3950.org/dtd/2.0/"> |
12 |
|
13 |
<serverInfo protocol="[% IF ( config.protocol ) %][% config.protocol %][% ELSE %]SRW/SRU/Z39.50[% END %]" |
14 |
version="2.0" |
15 |
transport="[% IF ( config.transport ) %][% config.transport %][% ELSE %]http[% END %]"> |
16 |
<host>[% host %]</host> |
17 |
<port>[% port %]</port> |
18 |
<database>biblios</database> |
19 |
</serverInfo> |
20 |
|
21 |
<databaseInfo> |
22 |
|
23 |
[% IF ( config.title ) -%] |
24 |
[%- FOREACH title IN config.title -%] |
25 |
<title lang="[% title.lang %]"[% IF ( title.primary ) %] primary="true"[% END %]>[% title.text %]</title> |
26 |
[% END -%] |
27 |
[% ELSE -%] |
28 |
<title lang="en" primary="true">Koha Bibliographic SRU/SRW/Z39.50 server</title> |
29 |
[% END -%] |
30 |
|
31 |
[%- IF ( config.description ) -%] |
32 |
[%- FOREACH description IN config.description -%] |
33 |
<description lang="[% description.lang %]"[% IF ( description.primary ) %] primary="true"[% END %]>[% description.text %]</description> |
34 |
[% END -%] |
35 |
[% ELSE -%] |
36 |
<description lang="en" primary="true">Koha Bibliographic Server</description> |
37 |
[% END -%] |
38 |
|
39 |
<author> |
40 |
[%- IF ( config.author ) -%] |
41 |
[%- config.author -%] |
42 |
[%- ELSIF ( Koha.Preference( 'LibraryName' ) != '' ) -%] |
43 |
[% Koha.Preference( 'LibraryName' ) -%] |
44 |
[%- ELSE -%] |
45 |
Koha |
46 |
[%- END -%]</author> |
47 |
|
48 |
<contact> |
49 |
[%- IF ( config.contact ) -%] |
50 |
[%- config.contact -%] |
51 |
[%- ELSIF ( Koha.Preference( 'KohaAdminEmailAddress' ) != '' ) -%] |
52 |
[%- Koha.Preference( 'KohaAdminEmailAddress' ) -%] |
53 |
[%- END -%]</contact> |
54 |
|
55 |
[% IF ( config.extent ) -%] |
56 |
[%- FOREACH extent IN config.extent -%] |
57 |
<extent lang="[% extent.lang %]"[% IF ( extent.primary ) %] primary="true"[% END %]>[% extent.text %]</extent> |
58 |
[% END -%] |
59 |
[% END -%] |
60 |
|
61 |
[% IF ( config.history ) -%] |
62 |
[%- FOREACH history IN config.history -%] |
63 |
<history lang="[% history.lang %]"[% IF ( history.primary ) %] primary="true"[% END %]>[% history.text %]</history> |
64 |
[% END -%] |
65 |
[% END -%] |
66 |
|
67 |
[% IF ( config.langUsage ) %] |
68 |
[% FOREACH lang IN config.langUsage %] |
69 |
<langUsage lang="[% lang.lang %]"[% IF ( lang.primary ) %] primary="true"[% END %][% IF ( lang.codes ) %] codes="[% lang.codes %]"[% END %]>[% lang.text %]</langUsage> |
70 |
[% END %] |
71 |
[% END %] |
72 |
|
73 |
[% IF ( config.restrictions ) -%] |
74 |
[%- FOREACH restriction IN config.restrictions -%] |
75 |
<restrictions lang="[% restriction.lang %]"[% IF ( restriction.primary ) %] primary="true"[% END %]>[% restriction.text %]</restrictions> |
76 |
[% END -%] |
77 |
[% END -%] |
78 |
|
79 |
[% IF ( config.subjects ) -%] |
80 |
<subjects> |
81 |
[% FOREACH sub IN config.subjects -%] |
82 |
<subject>[% sub %]</subject> |
83 |
[% END -%] |
84 |
</subjects> |
85 |
[% END %] |
86 |
|
87 |
<implementation identifier="zebra" version="2.0"> |
88 |
<title>Index Data YAZ/ZEBRA http://www.indexdata.dk/zebra</title> |
89 |
</implementation> |
90 |
|
91 |
<links> |
92 |
[% IF ( Koha.Preference( 'OPACBaseURL' ) ) %]<link type="www">[% Koha.Preference( 'OPACBaseURL' ) %]/</link>[% END %] |
93 |
<link type="z39.50">[% IF ( config.transport ) %][% config.transport %][% ELSE %]http[% END %]://[% host %]:[% port %]</link> |
94 |
<link type="srw">[% IF ( config.transport ) %][% config.transport %][% ELSE %]http[% END %]://[% host %]:[% port %]</link> |
95 |
<link type="sru">[% IF ( config.transport ) %][% config.transport %][% ELSE %]http[% END %]://[% host %]:[% port %]</link> |
96 |
[% IF ( Koha.Preference( 'OAI-PMH' ) ) %]<link type="oai">[% Koha.Preference( 'OPACBaseURL' ) %]/cgi-bin/koha/oai.pl</link>[% END %] |
97 |
[% IF ( Koha.Preference( 'OpacFavicon' ) ) %]<link type="icon">[% Koha.Preference( 'OpacFavicon' ) %]</link>[% END %] |
98 |
</links> |
99 |
|
100 |
</databaseInfo> |
101 |
|
102 |
<metaInfo> |
103 |
<dateModified>[% date.format %]</dateModified> |
104 |
</metaInfo> |
105 |
|
106 |
<indexInfo> |
107 |
|
108 |
[% FOREACH set IN pqf.sets -%] |
109 |
<set identifier="[% set.identifier %]" name="[% set.name %]"/> |
110 |
[% END -%] |
111 |
|
112 |
[% FOREACH index IN pqf.indexes %] |
113 |
<index search="true" scan="true" sort="false"> |
114 |
[%- IF config.indexnames.${index.id} -%] |
115 |
[%- FOREACH this IN config.indexnames.${index.id} %] |
116 |
<title lang="[% this.lang %]">[% this.title %]</title> |
117 |
[%- END %] |
118 |
[%- END %] |
119 |
<map><name set="[% index.set %]">[% index.index %]</name></map> |
120 |
<map primary="true"> |
121 |
<attr type="[% index.type %]">[% index.value %]</attr> |
122 |
</map> |
123 |
</index> |
124 |
[% END -%] |
125 |
|
126 |
</indexInfo> |
127 |
|
128 |
<configInfo> |
129 |
|
130 |
<!-- searchRetrieve settings --> |
131 |
|
132 |
<!-- default context set --> |
133 |
<default type="contextSet">cql</default> |
134 |
|
135 |
<default type="index">all</default> |
136 |
|
137 |
<!-- default relation --> |
138 |
<default type="relation">=</default> |
139 |
|
140 |
<!-- relation supported by the server or index --> |
141 |
<supports type="relation"><</supports> <!-- 2=1 OK --> |
142 |
<supports type="relation"><=</supports> <!-- 2=2 OK --> |
143 |
<supports type="relation">=</supports> <!-- 2=3 OK --> |
144 |
<supports type="relation">>=</supports> <!-- 2=4 OK --> |
145 |
<supports type="relation">></supports> <!-- 2=5 OK --> |
146 |
<!-- <supports type="relation"><></supports> --><!-- 2=6 DEAD !!! --> |
147 |
<!-- <supports type="relation">all</supports> --><!-- 2=3 OK --> |
148 |
<!-- <supports type="relation">any</supports> --><!-- 2=3 OK --> |
149 |
|
150 |
<!-- relation modifier supported by the server or index --> |
151 |
<!-- <supports type="relationModifier">relevant</supports> --><!-- 2=102 OK, makes no difference .. sic --> |
152 |
<!-- <supports type="relationModifier">phonetic</supports> --> <!-- 2=100 DEAD --> |
153 |
<!-- <supports type="relationModifier">stem</supports> --> <!-- 2=101 DEAD !! --> |
154 |
|
155 |
<!-- support proximity (Empty) --> |
156 |
<!-- <supports type="proximity"></supports> --> <!-- DEAD, title = (house prox/distance=1/unit=word the) FAILS --> |
157 |
|
158 |
<!-- proximity modifier supported by the server or index |
159 |
(relation, distance, unit, ordering) --> |
160 |
<!-- <supports type="proximityModifier"></supports> --> |
161 |
|
162 |
<!-- boolean modifier supported by the server or index --> |
163 |
<!-- <supports type="booleanModifier"></supports> --> |
164 |
|
165 |
<!-- masking character supported (* or ?) --> |
166 |
<supports type="maskingCharacter">*</supports> |
167 |
<supports type="maskingCharacter">?</supports> |
168 |
|
169 |
<!-- anchoring supported? (^ character) --> |
170 |
<!-- empty terms supported (Empty) --> |
171 |
<supports type="emptyTerm"></supports> |
172 |
|
173 |
<!-- sorting settings --> |
174 |
|
175 |
<!-- default schema used in sorting, in short name form --> |
176 |
<!-- <default type="sortSchema"></default> --> |
177 |
<!-- MIKE: deprecated --> |
178 |
|
179 |
<!-- server support sort --> |
180 |
|
181 |
<!-- supported sortmodifier (ascending, missingValue, caseSensitive) --> |
182 |
<!-- <supports type="sortModifier"></supports> --> |
183 |
|
184 |
<!-- presentation settings --> |
185 |
|
186 |
<!-- default number of records that a server will return at once --> |
187 |
<default type="numberOfRecords">0</default> |
188 |
|
189 |
<!-- default schema used for retrieved records --> |
190 |
<default type="retrieveSchema">index</default> |
191 |
<!-- default stylesheet URL, or if stylesheets are supported --> |
192 |
<setting type="stylesheet">docpath/sru.xsl</setting> |
193 |
|
194 |
<!-- default record packing returned (string or xml) --> |
195 |
<default type="recordPacking">xml</default> |
196 |
|
197 |
<!-- maximum number of records that a server will return at once --> |
198 |
<!-- <setting type="maximumRecords">1000</setting> --> |
199 |
|
200 |
<!-- support result sets (Empty) --> |
201 |
<!-- <supports type="resultSets"></supports> --> |
202 |
|
203 |
<!-- XPath retrieval supported --> |
204 |
<!-- <supports type="recordXPath"></supports> --> |
205 |
|
206 |
<!-- scan settings --> |
207 |
|
208 |
<!-- scan operation supported --> |
209 |
<supports type="scan"></supports> |
210 |
|
211 |
<!-- default number of terms to be returned in scan --> |
212 |
<default type="numberOfTerms">20</default> |
213 |
|
214 |
<!-- other server settings --> |
215 |
|
216 |
<!-- older version of the protocol supported --> |
217 |
<!-- <supports type="version">1.1</supports> --> |
218 |
|
219 |
<!-- number of seconds that a result set will be maintained for --> |
220 |
<setting type="resultSetTTL">0</setting> |
221 |
|
222 |
<!-- A type of extraRequestData available in the |
223 |
searchRetrieveRequest. The extra*Data fields are represented as two |
224 |
space separated words, the first the identifier for the extension and |
225 |
the second the individual element name from the extension. If there is |
226 |
only one word, then it is the extension id and all elements from |
227 |
within are supported. --> |
228 |
<!-- <supports type="extraSearchData"></supports> --> |
229 |
|
230 |
<!-- A type of extraRequestData available in the explainRequest --> |
231 |
<!-- <supports type="extraExplainData"></supports> --> |
232 |
|
233 |
<!-- A type of extraRequestData available in the scanRequest --> |
234 |
<!-- <supports type="extraScanData"></supports> --> |
235 |
<!-- The URI identifier of a supported profile --> |
236 |
<!-- <supports type="profile"></supports> --> |
237 |
</configInfo> |
238 |
|
239 |
</explain> |