Bug 10694: (follow-up) fix various issues
[koha.git] / debian / templates / koha-conf-site.xml.in
1 <yazgfs>
2
3 <listen id="biblioserver" >unix:/var/run/koha/__KOHASITE__/bibliosocket</listen>
4 <listen id="authorityserver" >unix:/var/run/koha/__KOHASITE__/authoritysocket</listen>
5
6 <!-- Uncomment the following entry if you want to run the public Z39.50 server.
7     Also uncomment the <server> and <serverinfo> sections for id 'publicserver'
8     under PUBLICSERVER'S BIBLIOGRAPHIC RECORDS title-->
9 <!--
10 <listen id="publicserver" >tcp:@:__ZEBRA_SRU_BIBLIOS_PORT__</listen>
11 -->
12
13 <!-- Settings for special biblio server instance for PazPar2.
14      Because PazPar2 only connects to a Z39.50 server using TCP/IP,
15      it cannot use the Unix-domain socket that biblioserver uses.
16      Therefore, a custom server is defined. -->
17 <!--
18 <listen id="mergeserver">tcp:@:__MERGE_SERVER_PORT__</listen>
19 <server id="mergeserver"  listenref="mergeserver">
20     <directory>/var/lib/koha/__KOHASITE__/biblios</directory>
21     <config>/etc/koha/sites/__KOHASITE__/__ZEBRA_BIBLIOS_CFG__</config>
22     <cql2rpn>/var/lib/koha/__KOHASITE__/pqf.properties</cql2rpn>
23 </server>
24 -->
25
26 <!-- BIBLIOGRAPHIC RECORDS -->
27 <server id="biblioserver"  listenref="biblioserver">
28     <directory>/var/lib/koha/__KOHASITE__/biblios</directory>
29     <config>/etc/koha/sites/__KOHASITE__/__ZEBRA_BIBLIOS_CFG__</config>
30     <cql2rpn>/etc/koha/zebradb/pqf.properties</cql2rpn>
31
32     __START_BIBLIOS_RETRIEVAL_INFO__
33        <retrieval syntax="__ZEBRA_MARC_FORMAT__" name="F"/>
34        <retrieval syntax="__ZEBRA_MARC_FORMAT__" name="B"/>
35        <retrieval syntax="xml" name="F"/>
36        <retrieval syntax="xml" name="B"/>
37        <retrieval syntax="xml" name="marcxml"
38                   identifier="info:srw/schema/1/marcxml-v1.1">
39          <backend syntax="__ZEBRA_MARC_FORMAT__" name="F">
40            <marc inputformat="marc" outputformat="marcxml"
41                  inputcharset="utf-8"/>
42          </backend>
43        </retrieval>
44        <retrieval syntax="xml" name="dc">
45          <backend syntax="__ZEBRA_MARC_FORMAT__" name="F">
46            <marc inputformat="marc" outputformat="marcxml"
47                  inputcharset="utf-8"/>
48            <xslt stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2DC.xsl"/>
49          </backend>
50        </retrieval>
51        <retrieval syntax="xml" name="mods">
52          <backend syntax="__ZEBRA_MARC_FORMAT__" name="F">
53            <marc inputformat="marc" outputformat="marcxml"
54                  inputcharset="utf-8"/>
55            <xslt stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2MODS.xsl"/>
56          </backend>
57        </retrieval>
58        <retrieval syntax="xml" name="rdfdc">
59          <backend syntax="__ZEBRA_MARC_FORMAT__" name="F">
60            <marc inputformat="marc" outputformat="marcxml"
61                  inputcharset="utf-8"/>
62            <xslt stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2RDFDC.xsl"/>
63          </backend>
64        </retrieval>
65        <retrieval syntax="xml" name="rss2">
66          <backend syntax="__ZEBRA_MARC_FORMAT__" name="F">
67            <marc inputformat="marc" outputformat="marcxml"
68                  inputcharset="utf-8"/>
69            <xslt stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2RSS2.xsl"/>
70          </backend>
71        </retrieval>
72        <retrieval syntax="xml" name="utils">
73          <backend syntax="__ZEBRA_MARC_FORMAT__" name="F">
74            <marc inputformat="marc" outputformat="marcxml"
75                  inputcharset="utf-8"/>
76            <xslt stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl"/>
77          </backend>
78        </retrieval>
79     __END_BIBLIOS_RETRIEVAL_INFO__
80
81     <!-- The stuff below is used to enable SRU. It's currently disabled
82          until we come up with a good way to make it get magically set up by
83          the packaging system. If you need it, uncomment and set it up
84          manually.
85     <xi:include href="__KOHA_CONF_DIR__/zebradb/explain-biblios.xml"
86                 xmlns:xi="http://www.w3.org/2001/XInclude">
87       <xi:fallback>
88       <explain xmlns="http://explain.z3950.org/dtd/2.0/">
89           <serverInfo>
90             <host>__ZEBRA_SRU_HOST__</host>
91             <port>__ZEBRA_SRU_BIBLIOS_PORT__</port>
92             <database>biblios</database>
93           </serverInfo>
94         </explain>
95       </xi:fallback>
96     </xi:include> -->
97 </server>
98 <serverinfo id="biblioserver">
99         <ccl2rpn>/etc/koha/zebradb/ccl.properties</ccl2rpn>
100         <user>kohauser</user>
101         <password>__ZEBRA_PASS__</password>
102 </serverinfo>
103
104 <!-- AUTHORITY RECORDS -->
105 <server id="authorityserver"  listenref="authorityserver" >
106     <directory>/var/lib/koha/__KOHASITE__/authorities</directory>
107     <config>/etc/koha/sites/__KOHASITE__/__ZEBRA_AUTHORITIES_CFG__</config>
108     <cql2rpn>/etc/koha/zebradb/pqf.properties</cql2rpn>
109
110     __START_AUTHORITIES_RETRIEVAL_INFO__
111        <retrieval syntax="__ZEBRA_MARC_FORMAT__" name="F"/>
112        <retrieval syntax="__ZEBRA_MARC_FORMAT__" name="B"/>
113        <retrieval syntax="xml" name="marcxml"
114                   identifier="info:srw/schema/1/marcxml-v1.1">
115          <backend syntax="__ZEBRA_MARC_FORMAT__" name="F">
116            <marc inputformat="marc" outputformat="marcxml"
117                  inputcharset="utf-8"/>
118          </backend>
119        </retrieval>
120        <retrieval syntax="xml" name="dc">
121          <backend syntax="__ZEBRA_MARC_FORMAT__" name="F">
122            <marc inputformat="marc" outputformat="marcxml"
123                  inputcharset="utf-8"/>
124            <xslt stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2DC.xsl"/>
125          </backend>
126        </retrieval>
127        <retrieval syntax="xml" name="mods">
128          <backend syntax="__ZEBRA_MARC_FORMAT__" name="F">
129            <marc inputformat="marc" outputformat="marcxml"
130                  inputcharset="utf-8"/>
131            <xslt stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2MODS.xsl"/>
132          </backend>
133        </retrieval>
134        <retrieval syntax="xml" name="rdfdc">
135          <backend syntax="__ZEBRA_MARC_FORMAT__" name="F">
136            <marc inputformat="marc" outputformat="marcxml"
137                  inputcharset="utf-8"/>
138            <xslt stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2RDFDC.xsl"/>
139          </backend>
140        </retrieval>
141        <retrieval syntax="xml" name="utils">
142          <backend syntax="__ZEBRA_MARC_FORMAT__" name="F">
143            <marc inputformat="marc" outputformat="marcxml"
144                  inputcharset="utf-8"/>
145            <xslt stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl"/>
146          </backend>
147        </retrieval>
148     __END_AUTHORITIES_RETRIEVAL_INFO__
149
150     <!-- The stuff below is used to enable SRU. It's currently disabled
151          until we come up with a good way to make it get magically set up by
152          the packaging system. If you need it, uncomment and set it up
153          manually.
154     <xi:include href="__KOHA_CONF_DIR__/zebradb/explain-authorities.xml"
155                 xmlns:xi="http://www.w3.org/2001/XInclude">
156     <xi:fallback>
157       <explain xmlns="http://explain.z3950.org/dtd/2.0/">
158           <serverInfo>
159             <host>__ZEBRA_SRU_HOST__</host>
160             <port>__ZEBRA_SRU_AUTHORITIES_PORT__</port>
161             <database>authorities</database>
162           </serverInfo>
163         </explain>
164       </xi:fallback>
165   </xi:include> -->
166 </server>
167 <serverinfo id="authorityserver">
168     <ccl2rpn>/etc/koha/zebradb/ccl.properties</ccl2rpn>
169     <user>kohauser</user>
170     <password>__ZEBRA_PASS__</password>
171 </serverinfo>
172
173 <!-- PUBLICSERVER'S BIBLIOGRAPHIC RECORDS -->
174 <!-- This can be used to set up a public Z39.50/SRU server.
175
176 <server id="publicserver"  listenref="publicserver">
177     <directory>/var/lib/koha/__KOHASITE__/biblios</directory>
178     <config>/etc/koha/sites/__KOHASITE__/__ZEBRA_BIBLIOS_CFG__</config>
179     <cql2rpn>/etc/koha/zebradb/pqf.properties</cql2rpn>
180
181     __START_BIBLIOS_RETRIEVAL_INFO__
182        <retrieval syntax="__ZEBRA_MARC_FORMAT__" name="F"/>
183        <retrieval syntax="__ZEBRA_MARC_FORMAT__" name="B"/>
184        <retrieval syntax="xml" name="F"/>
185        <retrieval syntax="xml" name="B"/>
186        <retrieval syntax="xml" name="marcxml"
187                   identifier="info:srw/schema/1/marcxml-v1.1">
188          <backend syntax="__ZEBRA_MARC_FORMAT__" name="F">
189            <marc inputformat="marc" outputformat="marcxml"
190                  inputcharset="utf-8"/>
191          </backend>
192        </retrieval>
193        <retrieval syntax="xml" name="dc">
194          <backend syntax="__ZEBRA_MARC_FORMAT__" name="F">
195            <marc inputformat="marc" outputformat="marcxml"
196                  inputcharset="utf-8"/>
197            <xslt stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2DC.xsl"/>
198          </backend>
199        </retrieval>
200        <retrieval syntax="xml" name="mods">
201          <backend syntax="__ZEBRA_MARC_FORMAT__" name="F">
202            <marc inputformat="marc" outputformat="marcxml"
203                  inputcharset="utf-8"/>
204            <xslt stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2MODS.xsl"/>
205          </backend>
206        </retrieval>
207        <retrieval syntax="xml" name="rdfdc">
208          <backend syntax="__ZEBRA_MARC_FORMAT__" name="F">
209            <marc inputformat="marc" outputformat="marcxml"
210                  inputcharset="utf-8"/>
211            <xslt stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2RDFDC.xsl"/>
212          </backend>
213        </retrieval>
214        <retrieval syntax="xml" name="rss2">
215          <backend syntax="__ZEBRA_MARC_FORMAT__" name="F">
216            <marc inputformat="marc" outputformat="marcxml"
217                  inputcharset="utf-8"/>
218            <xslt stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2RSS2.xsl"/>
219          </backend>
220        </retrieval>
221        <retrieval syntax="xml" name="utils">
222          <backend syntax="__ZEBRA_MARC_FORMAT__" name="F">
223            <marc inputformat="marc" outputformat="marcxml"
224                  inputcharset="utf-8"/>
225            <xslt stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl"/>
226          </backend>
227        </retrieval>
228     __END_BIBLIOS_RETRIEVAL_INFO__
229
230     <xi:include href="__KOHA_CONF_DIR__/zebradb/explain-biblios.xml"
231                 xmlns:xi="http://www.w3.org/2001/XInclude">
232       <xi:fallback>
233       <explain xmlns="http://explain.z3950.org/dtd/2.0/">
234           <serverInfo>
235             <host>__ZEBRA_SRU_HOST__</host>
236             <port>__ZEBRA_SRU_BIBLIOS_PORT__</port>
237             <database>biblios</database>
238           </serverInfo>
239         </explain>
240       </xi:fallback>
241     </xi:include>
242 </server>
243 <serverinfo id="publicserver">
244         <ccl2rpn>/etc/koha/zebradb/ccl.properties</ccl2rpn>
245         <user>kohauser</user>
246         <password>__ZEBRA_PASS__</password>
247 </serverinfo>
248 -->
249
250 <config>
251  <db_scheme>mysql</db_scheme>
252  <database>__DB_NAME__</database>
253  <hostname>__DB_HOST__</hostname>
254  <port>3306</port>
255  <user>__DB_USER__</user>
256  <pass>__DB_PASS__</pass>
257  <biblioserver>biblios</biblioserver>
258  <biblioservershadow>1</biblioservershadow>
259  <authorityserver>authorities</authorityserver>
260  <authorityservershadow>1</authorityservershadow>
261  <pluginsdir>__PLUGINS_DIR__</pluginsdir>
262  <enable_plugins>0</enable_plugins>
263  <intranetdir>/usr/share/koha/intranet/cgi-bin</intranetdir>
264  <opacdir>/usr/share/koha/opac/cgi-bin/opac</opacdir>
265  <opachtdocs>/usr/share/koha/opac/htdocs/opac-tmpl</opachtdocs>
266  <intrahtdocs>/usr/share/koha/intranet/htdocs/intranet-tmpl</intrahtdocs>
267  <includes>/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/includes/</includes>
268  <logdir>/var/log/koha/__KOHASITE__</logdir>
269  <docdir>/usr/share/doc/koha-common</docdir>
270  <backupdir>/var/spool/koha/__KOHASITE__</backupdir>
271  <!-- Enable the two following to allow superlibrarians to download
272       database and configuration dumps (respectively) from the Export
273       tool -->
274  <backup_db_via_tools>0</backup_db_via_tools>
275  <backup_conf_via_tools>0</backup_conf_via_tools>
276  <!-- <pazpar2url>http://__PAZPAR2_HOST__:__PAZPAR2_PORT__/search.pz2</pazpar2url> -->
277  <install_log>/usr/share/koha/misc/koha-install-log</install_log>
278  <useldapserver>0</useldapserver><!-- see C4::Auth_with_ldap for extra configs you must add if you want to turn this on -->
279  <memcached_servers>__MEMCACHED_SERVERS__</memcached_servers>
280  <memcached_namespace>__MEMCACHED_NAMESPACE__</memcached_namespace>
281  <zebra_bib_index_mode>__BIBLIOS_INDEXING_MODE__</zebra_bib_index_mode>
282  <zebra_auth_index_mode>__AUTHORITIES_INDEXING_MODE__</zebra_auth_index_mode>
283  <zebra_lockdir>/var/lock/koha/__KOHASITE__</zebra_lockdir>
284  <queryparser_config>/etc/koha/searchengine/queryparser.yaml</queryparser_config>
285 </config>
286
287 </yazgfs>