]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/examples/openils.xml.example
added ITEM_ON_HOLDS_SHELF to checkout, and CIRC_CLAIMS_RETURNED to renew
[Evergreen.git] / Open-ILS / examples / openils.xml.example
1 <?xml version='1.0'?>
2
3 <!-- 
4 Example opensrf config file for OpenILS
5 See opensrf.xml.example for core config documentation 
6 For non-core config info, see the inline documentation within this file
7 -->
8
9 <opensrf version='0.0.1'>
10
11
12         <default>
13         
14                 <dirs>
15                         <log>/openils/var/log</log>
16                         <sock>/openils/var/sock</sock>
17                         <pid>/openils/var/pid</pid>
18
19                         <!-- xsl stylesheets go here -->
20                         <xsl>/openils/var/xsl</xsl>
21                         <conf>/openils/var/conf</conf>
22                         <script>/openils/var/data</script>
23                         <script_lib>/openils/var/data</script_lib>
24                 </dirs>
25
26                 <server_type>prefork</server_type>
27
28                 <!-- script for exception strings -->
29                 <ils_events>/openils/var/data/ils_events.xml</ils_events>
30
31       <z3950>
32                         <default>oclc</default>
33          <services>
34             <oclc> <!-- service name -->
35
36                                         <!-- connection info -->
37                <host>zcat.oclc.org</host>
38                <port>210</port>
39                <db>OLUCWorldCat</db>
40
41                                         <!-- search attributes -->
42                <attrs>
43                   <tcn>
44                                                         <code>12</code> <!-- attribute code -->
45                                                         <format>6</format> <!-- search term format (word, date, etc.) -->
46                                                 </tcn>
47                   <isbn>
48                                                         <code>7</code>
49                                                         <format>6</format>
50                                                 </isbn>
51                                                 <lccn>
52                                                         <code>9</code>
53                                                         <format>3</format>
54                                                 </lccn>
55                   <author>
56                                                         <code>1003</code>
57                                                         <format>6</format>
58                                                 </author>
59                   <title>
60                                                         <code>4</code>
61                                                         <format>6</format>
62                                                 </title>
63                   <issn>
64                                                         <code>8</code>
65                                                         <format>1</format>
66                                                 </issn>
67                   <publisher>
68                                                         <code>1018</code>
69                                                         <format>6</format>
70                                                 </publisher>
71                   <pubdate>
72                                                         <code>31</code>
73                                                         <format>5</format>
74                                                 </pubdate>
75                                                 <item_type>
76                                                         <code>1001</code>
77                                                         <format>1</format>
78                                                 </item_type>
79                                                 <!--music/publisher numbers?? -->
80                </attrs>
81             </oclc>
82
83             <loc>
84                <name>loc</name>
85                <host>z3950.loc.gov</host>
86                <port>7090</port>
87                <db>Voyager</db>
88                <attrs>
89                   <isbn>
90                                                         <code>7</code>
91                                                         <format>1</format>
92                                                 </isbn>
93                </attrs>
94             </loc>
95          </services>
96       </z3950>
97
98
99                 <activeapps/> 
100
101                 <cache>
102                         <global>
103                                 <servers>
104                                         <server>127.0.0.1:10101</server>
105                                 </servers>
106                                 <max_cache_time>86400</max_cache_time>
107                         </global>
108                 </cache>
109
110                 <apps>
111
112                         <opensrf.persist>
113                                 <keepalive>1</keepalive>
114                                 <stateless>1</stateless>
115                                 <language>perl</language>
116                                 <implementation>OpenSRF::Application::Persist</implementation>
117                                 <max_requests>97</max_requests>
118                                 <unix_config>
119                                         <unix_sock>opensrf.persist_unix.sock</unix_sock>
120                                         <unix_pid>opensrf.persist_unix.pid</unix_pid>
121                                         <max_requests>1000</max_requests>
122                                         <unix_log>opensrf.persist_unix.log</unix_log>
123                                         <min_children>5</min_children>
124                                         <max_children>25</max_children>
125                                         <min_spare_children>2</min_spare_children>
126                                         <max_spare_children>5</max_spare_children>
127                                 </unix_config>
128
129                                 <app_settings>
130                                         <dbfile>/openils/var/db/persist.db</dbfile>
131                                 </app_settings>
132
133                         </opensrf.persist>
134
135                         <!-- Authentication server -->
136                         <open-ils.auth>
137                                 <keepalive>5</keepalive>
138                                 <stateless>1</stateless>
139                                 <language>C</language>
140                                 <implementation>oils_auth.so</implementation>
141                                 <max_requests>93</max_requests>
142
143                                 <unix_config>
144                                         <unix_sock>open-ils.auth_unix.sock</unix_sock>
145                                         <unix_pid>open-ils.auth_unix.pid</unix_pid>
146                                         <max_requests>1000</max_requests>
147                                         <unix_log>open-ils.auth_unix.log</unix_log>
148                                         <min_children>5</min_children>
149                                         <max_children>35</max_children>
150                                         <min_spare_children>2</min_spare_children>
151                                         <max_spare_children>5</max_spare_children>
152                                 </unix_config>
153
154                                 <app_settings>
155                                         <!-- if true, user sessions will be persisted via the OpenSRF persist 
156                                                         server in addition to memcache -->
157                                         <persist_users>0</persist_users>
158
159                                         <!-- default session timeouts by login type -->
160                                         <default_timeout>
161                                                 <opac>300</opac>
162                                                 <staff>28800</staff>
163                                            <temp>300</temp> <!-- temporary login -->
164                                         </default_timeout>
165
166                                 </app_settings>
167
168                         </open-ils.auth>
169
170
171                         <!-- Generic search server -->
172                         <open-ils.search>
173                                 <keepalive>5</keepalive>
174                                 <stateless>1</stateless>
175                                 <language>perl</language>
176                                 <implementation>OpenILS::Application::Search</implementation>
177                                 <max_requests>93</max_requests>
178
179                                 <unix_config>
180                                         <unix_sock>open-ils.search_unix.sock</unix_sock>
181                                         <unix_pid>open-ils.search_unix.pid</unix_pid>
182                                         <max_requests>1000</max_requests>
183                                         <unix_log>open-ils.search_unix.log</unix_log>
184                                         <min_children>5</min_children>
185                                         <max_children>35</max_children>
186                                         <min_spare_children>2</min_spare_children>
187                                         <max_spare_children>5</max_spare_children>
188                                 </unix_config>
189
190                                 <app_settings>
191                                         <memcache>127.0.0.1:10101</memcache>
192                                         <max_cache_time>3600</max_cache_time>
193                                         <marc_html_xsl>oilsMARC21slim2HTML.xsl</marc_html_xsl>
194                                         <added_content>
195                                                 <!-- 
196                                                         Example added content handler.  If this is not defined, the default
197                                                         content handler is used, which returns empty sets for all methods       
198                                                 -->
199                                                 <!--
200                                                 <implementation>Evergreen::Application::Search::AddedContent::ContentCafe</implementation>
201                                                 <host>MY_CONTENT_HOST</host>
202                                                 <username>MY_CONTENT_USERNAME</username>
203                                                 <password>MY_CONTENT_PASSWORD</password>
204                                                 -->
205                                         </added_content>
206                                         <zips_file>/openils/var/data/zips.txt</zips_file>
207                                         <spelling_dictionary>/openils/var/data/oils_authority.dict</spelling_dictionary>
208                                         <cache_timeout>600</cache_timeout>
209
210                                 </app_settings>
211
212                         </open-ils.search>
213
214
215                         <!-- server for accessing user info -->
216                         <open-ils.actor>
217                                 <keepalive>5</keepalive>
218                                 <stateless>1</stateless>
219                                 <language>perl</language>
220                                 <implementation>OpenILS::Application::Actor</implementation>
221                                 <max_requests>93</max_requests>
222
223                                 <unix_config>
224                                         <unix_sock>open-ils.actor_unix.sock</unix_sock>
225                                         <unix_pid>open-ils.actor_unix.pid</unix_pid>
226                                         <max_requests>1000</max_requests>
227                                         <unix_log>open-ils.actor_unix.log</unix_log>
228                                         <min_children>5</min_children>
229                                         <max_children>35</max_children>
230                                         <min_spare_children>2</min_spare_children>
231                                         <max_spare_children>5</max_spare_children>
232                                 </unix_config>
233
234                         </open-ils.actor>
235
236
237
238                         <!-- server for editing title, etc... -->
239                         <open-ils.cat>
240                                 <keepalive>5</keepalive>
241                                 <stateless>1</stateless>
242                                 <language>perl</language>
243                                 <implementation>OpenILS::Application::Cat</implementation>
244                                 <max_requests>199</max_requests>
245
246                                 <unix_config>
247                                         <unix_sock>open-ils.cat_unix.sock</unix_sock>
248                                         <unix_pid>open-ils.cat_unix.pid</unix_pid>
249                                         <max_requests>1000</max_requests>
250                                         <unix_log>open-ils.cat_unix.log</unix_log>
251                                         <min_children>5</min_children>
252                                         <max_children>25</max_children>
253                                         <min_spare_children>2</min_spare_children>
254                                         <max_spare_children>5</max_spare_children>
255                                 </unix_config>
256
257                                 <app_settings>
258                                         <marctemplates>
259                                                 <book>/path/to/templates/marc/book.xml</book>
260                                         </marctemplates>
261                                 </app_settings>
262
263
264                         </open-ils.cat>
265
266
267                         <opensrf.math>
268                                 <keepalive>3</keepalive>
269                                 <stateless>1</stateless>
270                                 <language>C</language>
271                                 <implementation>osrf_math.so</implementation>
272                                 <max_requests>97</max_requests>
273                                 <unix_config>
274                                         <unix_sock>opensrf.math_unix.sock</unix_sock>
275                                         <unix_pid>opensrf.math_unix.pid</unix_pid>
276                                         <max_requests>1000</max_requests>
277                                         <unix_log>opensrf.math_unix.log</unix_log>
278                                         <min_children>5</min_children>
279                                         <max_children>15</max_children>
280                                         <min_spare_children>2</min_spare_children>
281                                         <max_spare_children>5</max_spare_children>
282                                 </unix_config>
283                         </opensrf.math>
284                         
285                         <opensrf.dbmath> 
286                                 <keepalive>3</keepalive>
287                                 <stateless>1</stateless>
288                                 <language>C</language>
289                                 <implementation>osrf_dbmath.so</implementation>
290                                 <max_requests>99</max_requests>
291                                 <unix_config>
292                                         <max_requests>1000</max_requests>
293                                         <unix_log>opensrf.dbmath_unix.log</unix_log>
294                                         <unix_sock>opensrf.dbmath_unix.sock</unix_sock>
295                                         <unix_pid>opensrf.dbmath_unix.pid</unix_pid>
296                                         <min_children>5</min_children>
297                                         <max_children>15</max_children>
298                                         <min_spare_children>2</min_spare_children> <max_spare_children>5</max_spare_children>
299                                 </unix_config>
300                         </opensrf.dbmath>
301
302
303                         <!-- penalty server -->
304                         <open-ils.penalty> 
305                                 <keepalive>3</keepalive>
306                                 <stateless>1</stateless>
307                                 <language>perl</language>
308                                 <implementation>OpenILS::Application::Penalty</implementation>
309                                 <max_requests>99</max_requests>
310                                 <unix_config>
311                                         <max_requests>1000</max_requests>
312                                         <unix_log>open-ils.penalty_unix.log</unix_log>
313                                         <unix_sock>open-ils.penalty_unix.sock</unix_sock>
314                                         <unix_pid>open-ils.penalty_unix.pid</unix_pid>
315                                         <min_children>5</min_children>
316                                         <max_children>25</max_children>
317                                         <min_spare_children>2</min_spare_children> 
318                                         <max_spare_children>5</max_spare_children>
319                                 </unix_config>
320                                 <app_settings>
321                                         <patron_penalty>patron_penalty.js</patron_penalty>
322                                         <script_path>/openils/var/penalty/</script_path>
323                                 </app_settings>
324                         </open-ils.penalty>
325
326
327
328                         <!-- Circulation server -->
329                         <open-ils.circ> 
330                                 <keepalive>3</keepalive>
331                                 <stateless>1</stateless>
332                                 <language>perl</language>
333                                 <implementation>OpenILS::Application::Circ</implementation>
334                                 <max_requests>99</max_requests>
335                                 <unix_config>
336                                         <max_requests>1000</max_requests>
337                                         <unix_log>open-ils.circ_unix.log</unix_log>
338                                         <unix_sock>open-ils.circ_unix.sock</unix_sock>
339                                         <unix_pid>open-ils.circ_unix.pid</unix_pid>
340                                         <min_children>5</min_children>
341                                         <max_children>25</max_children>
342                                         <min_spare_children>2</min_spare_children> <max_spare_children>5</max_spare_children>
343                                 </unix_config>
344
345                                 <app_settings>
346                                         <rules>
347                                                 <permission>permit_circ.rules</permission>
348                                                 <duration>calculate_duration.rules</duration>
349                                                 <recurring_fines>calculate_recurring_fines.rules</recurring_fines>
350                                                 <max_fines>calculate_max_fines.rules</max_fines>
351                                                 <permit_hold>permit_hold.rules</permit_hold>
352                                                 <permit_renew>permit_renew.rules</permit_renew>
353                                         </rules>
354
355                                         <script_path>/openils/var/circ/</script_path>
356                <scripts>
357                   <circ_permit_patron>circ_permit_patron.js</circ_permit_patron>
358                   <circ_permit_copy>circ_permit_copy.js</circ_permit_copy>
359                   <circ_duration>circ_duration.js</circ_duration>
360                   <circ_recurring_fines>circ_recurring_fines.js</circ_recurring_fines>
361                   <circ_max_fines>circ_max_fines.js</circ_max_fines>
362                   <circ_permit_renew>circ_permit_renew.js</circ_permit_renew>
363                   <circ_permit_hold>circ_permit_hold.js</circ_permit_hold>
364                </scripts>        
365
366                                 </app_settings>
367
368                         </open-ils.circ>
369
370                         <!-- Database storage server -->
371                         <open-ils.storage>
372                                 <keepalive>3</keepalive>
373                                 <stateless>1</stateless>
374                                 <language>perl</language>
375                                 <implementation>OpenILS::Application::Storage</implementation>
376                                 <unix_config>
377                                         <max_requests>1000</max_requests>
378                                         <unix_log>storage_unix.log</unix_log>
379                                         <unix_sock>storage_unix.sock</unix_sock>
380                                         <unix_pid>storage_unix.pid</unix_pid>
381                                         <max_requests>1000</max_requests>
382                                         <min_children>10</min_children>
383                                         <max_children>50</max_children>
384                                         <min_spare_children>2</min_spare_children>
385                                         <max_spare_children>5</max_spare_children>
386                                 </unix_config>
387                                         
388                                 <app_settings>
389                                         <databases>
390                                                 <driver>Pg</driver>
391                                                 <database>
392                                                         <type>master</type>
393                                                         <weight>2</weight>
394                                                         <user>postgres</user>
395                                                         <host>127.0.0.1</host>
396                                                         <pw>postgres</pw>
397                                                         <db>demo-dev</db>
398                                                         <client_encoding>SQL_ASCII</client_encoding>
399                                                 </database>
400                                         </databases>
401                                 </app_settings>
402
403                         </open-ils.storage>
404
405                         <opensrf.settings>
406                                 <keepalive>1</keepalive>
407                                 <stateless>1</stateless>
408                                 <language>perl</language>
409                                 <implementation>OpenSRF::Application::Settings</implementation>
410                                 <max_requests>17</max_requests>
411                                 <unix_config>
412                                         <unix_sock>opensrf.settings_unix.sock</unix_sock>
413                                         <unix_pid>opoensrf.settings_unix.pid</unix_pid>
414                                         <max_requests>1000</max_requests>
415                                         <unix_log>opensrf.settings_unix.log</unix_log>
416                                         <min_children>5</min_children>
417                                         <max_children>15</max_children>
418                                         <min_spare_children>3</min_spare_children>
419                                         <max_spare_children>5</max_spare_children>
420                                 </unix_config>
421                         </opensrf.settings>
422
423                 </apps>
424
425         </default>
426
427         <hosts>
428
429
430                 <!-- single host install, everything goes into one host section -->
431                 <myhost.mydomain.com> <!-- must match 'hostname -f' -->
432                         <activeapps>
433
434                                 <!-- opensrf builtin apps -->
435                                 <appname>opensrf.math</appname> 
436                                 <appname>opensrf.dbmath</appname> 
437                                 <appname>opensrf.settings</appname> 
438
439                                 <!-- openils apps -->
440                                 <appname>open-ils.cat</appname> 
441                                 <appname>open-ils.search</appname> 
442                                 <appname>open-ils.circ</appname> 
443                                 <appname>open-ils.penalty</appname> 
444                                 <appname>open-ils.actor</appname> 
445                                 <appname>open-ils.auth</appname> 
446                                 <appname>open-ils.storage</appname>  
447
448                         </activeapps>
449                 </myhost.mydomain.com> 
450
451         </hosts>
452
453 </opensrf>