]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/examples/opensrf.xml.example
Booking: these lines don't belong; they were erroneously copied and pasted
[Evergreen.git] / Open-ILS / examples / opensrf.xml.example
1 <?xml version='1.0'?>
2
3 <!-- 
4 Example opensrf config file for OpenILS
5 vim:et:ts=4:sw=4:
6 -->
7
8 <opensrf version='0.0.3'>
9
10     <default>
11
12         <!-- unless otherwise overidden, use this locale -->
13         <default_locale>en-US</default_locale>
14
15         <dirs>
16             <log>LOCALSTATEDIR/log</log> <!-- unix::server log files -->
17             <sock>LOCALSTATEDIR/lock</sock> <!-- unix::server sock files -->
18             <pid>LOCALSTATEDIR/run</pid>
19             <xsl>LOCALSTATEDIR/xsl</xsl>
20             <script>LOCALSTATEDIR</script>
21             <script_lib>LOCALSTATEDIR</script_lib>
22             <templates>LOCALSTATEDIR/templates</templates>
23         </dirs>
24
25         <!-- global data visibility settings -->
26         <share>
27             <user>
28                 <!-- Set to "true" to require patron opt-in for foreign (non-home_ou) transactions -->
29                 <opt_in>false</opt_in>
30             </user>
31         </share>
32
33         <IDL>SYSCONFDIR/fm_IDL.xml</IDL> <!-- top level IDL file -->
34         <IDL2js>fm_IDL2js.xsl</IDL2js> <!-- IDL JS XSLT -->
35
36
37         <server_type>prefork</server_type> <!-- net::server type -->
38
39         <ils_events>LOCALSTATEDIR/data/ils_events.xml</ils_events> <!-- ILS events description file -->
40
41         <email_notify> <!-- this will eventually move into the notifications section below... -->
42             <!-- global email notification settings -->
43             <template>LOCALSTATEDIR/data/hold_notification_template.example</template>
44             <smtp_server>localhost</smtp_server>
45
46             <!--
47             in most cases, this is overridden by location 
48             specific config settings.  this is just the default
49             -->
50             <sender_address>evergreen@localhost</sender_address>
51         </email_notify>
52
53
54       <notifications>
55         <!-- global mail server settings -->
56         <smtp_server>localhost</smtp_server>
57         <sender_address>evergreen@localhost</sender_address>
58
59         <!-- global telephony (asterisk) settings -->
60         <telephony>
61             <!-- replace all values below when telephony server is configured -->
62             <enabled>0</enabled>
63             <driver>SIP</driver>    <!-- SIP (default) or multi -->
64             <channels>              <!-- explicit list of channels used if multi -->
65                                     <!-- A channel specifies technology/resource -->
66                 <channel>Zap/1</channel>
67                 <channel>Zap/2</channel>
68                 <channel>IAX/user:secret@widgets.biz</channel>
69             </channels>
70             <host>localhost</host>
71             <port>10080</port>
72             <user>evergreen</user>
73             <pw>evergreen</pw>
74             <!--
75                 The overall composition of callfiles is determined by the
76                 relevant template, but this section can be invoked for callfile
77                 configs common to all outbound calls.
78                 callfile_lines will be inserted into ALL generated callfiles
79                 after the Channel line.  This content mat be overridden
80                 (in whole) by the org unit setting callfile_lines.
81                 Warning: Invalid syntax may break ALL outbound calls.
82             -->
83             <!-- <callfile_lines>
84                 MaxRetries: 3
85                 RetryTime: 60
86                 WaitTime: 30
87                 Archive: 1
88                 Extension: 10
89             </callfile_lines> -->
90         </telephony>
91
92         <!-- Overdue notices: DEPRECATED in 2.0 in favour of Action/Trigger Notifications -->
93         <overdue>
94
95             <!-- optionally, you can define a sender address per notice type -->
96             <sender_address>overdue@localhost</sender_address>
97
98             <!-- The system can generate an XML file of overdue notices.  This is the
99                 directory where they are stored.  Files are named overdue.YYYY-MM-DD.xml -->
100             <notice_dir>LOCALSTATEDIR/data/overdue</notice_dir>
101             <combined_template>LOCALSTATEDIR/data/templates/overdue_combined_xml.example</combined_template>
102
103             <notice>
104                 <!-- Notify at 7 days overdue -->
105                 <notify_interval>7 days</notify_interval>
106                 <!-- Options include always, noemail, and never.  'noemail' means a notice
107                      will be appended to the notice file only if the patron has no valid email address.  -->
108                 <file_append>noemail</file_append>
109                 <!-- do we attempt email notification? -->
110                 <email_notify>false</email_notify>
111                 <!-- notice template file -->
112                 <email_template>LOCALSTATEDIR/data/templates/overdue_7day.example</email_template>
113             </notice>
114         </overdue>
115
116         <!-- Courtesy notices: DEPRECATED in 2.0 in favour of Action/Trigger Notifications -->
117         <predue>
118             <notice>
119                 <!-- All circulations that circulate between 5 and 13 days -->
120                 <circ_duration_range>
121                     <from>5 days</from>
122                     <to>13 days</to>
123                 </circ_duration_range>
124                 <!-- notify at 1 day before the due date -->
125                 <notify_interval>1 day</notify_interval>
126                 <file_append>false</file_append>
127                 <email_notify>false</email_notify>
128                 <email_template>LOCALSTATEDIR/data/templates/predue_1day.example</email_template>
129             </notice>
130         </predue>
131       </notifications>
132
133         <!-- Settings for the hold targeter cron job -->
134         <hold_targeter>
135             <!-- number of parallel processes to use during hold targeting;
136                  increasing can speed up (re)targeting a large number of
137                  hold requests, but with diminishing returns after a point;
138                  if increasing this value, it is recommend to do so slowly
139             -->
140             <parallel>1</parallel>
141         </hold_targeter>
142
143         <!-- Settings for the fine generator cron job -->
144         <fine_generator>
145             <!-- number of parallel processes to use during fine generation -->
146             <parallel>1</parallel>
147         </fine_generator>
148         
149         <reporter>
150             <!--
151             Settings for the reporter daemon process 
152             -->
153             <setup>
154                 <base_uri>https://localhost/reporter/</base_uri>
155                 <database>
156                     <driver>Pg</driver>
157                     <host>localhost</host>
158                     <port>5432</port>
159                     <db>evergreen</db>
160                     <user>postgres</user>
161                     <pw>postgres</pw>
162                 </database>
163                 <state_store>
164                     <driver>Pg</driver>
165                     <host>localhost</host>
166                     <port>5432</port>
167                     <db>evergreen</db>
168                     <user>postgres</user>
169                     <pw>postgres</pw>
170                 </state_store>
171                 <files>
172                     <!-- successful report outputs go here -->
173                     <output_base>LOCALSTATEDIR/web/reporter</output_base>
174                     <success_template>LOCALSTATEDIR/data/report-success</success_template>
175                     <fail_template>LOCALSTATEDIR/data/report-fail</fail_template>
176                 </files>
177             </setup>
178         </reporter>
179
180
181
182         <xml-rpc>
183             <!-- XML-RPC gateway.  Do NOT publish unprotected services here -->
184             <allowed_services>
185                 <!-- list of published services -->
186                 <service>opensrf.math</service>
187                 <service>opensrf.dbmath</service>
188                 <service>open-ils.cat</service>
189                 <service>open-ils.search</service>
190                 <service>open-ils.circ</service>
191                 <service>open-ils.actor</service>
192                 <service>open-ils.auth</service>
193                 <service>open-ils.collections</service>
194             </allowed_services>
195         </xml-rpc>
196
197
198         <z3950>
199             <default>biblios</default>
200             <services>
201                 <biblios>
202                     <!-- biblios does not require username/password -->
203                     <name>‡biblios.net</name>
204                     <host>z3950.biblios.net</host>
205                     <port>210</port>
206                     <db>bibliographic</db>
207                     <!-- fetch the full record with no holdings. FI is the most common choice -->
208                     <record_format>FI</record_format> 
209
210                     <!-- Record transmission format from the server.  Supported -->
211                     <!-- formats include usmarc and xml (for marcxml).         -->
212                     <transmission_format>usmarc</transmission_format> 
213
214                     <attrs>
215                         <tcn><code>12</code><format>1</format></tcn>
216                         <isbn><code>7</code><format>6</format></isbn>
217                         <lccn><code>9</code><format>1</format></lccn>
218                         <author><code>1003</code><format>6</format></author>
219                         <title><code>4</code><format>6</format></title>
220                         <issn><code>8</code><format>1</format></issn>
221                         <publisher><code>1018</code><format>6</format></publisher>
222                         <pubdate><code>31</code><format>1</format></pubdate>
223                         <item_type><code>1001</code><format>1</format></item_type>
224                     </attrs>
225                 </biblios>
226
227                 <loc>
228                     <!-- LoC does not require username/password -->
229                     <name>loc</name>
230                     <host>z3950.loc.gov</host>
231                     <port>7090</port>
232                     <db>Voyager</db>
233                     <!-- fetch the full record with no holdings. FI is the most common choice -->
234                     <record_format>FI</record_format> 
235
236                     <!-- Record transmission format from the server.  Supported -->
237                     <!-- formats include usmarc and xml (for marcxml).         -->
238                     <transmission_format>usmarc</transmission_format> 
239
240                     <attrs>
241                         <tcn><code>12</code><format>1</format></tcn>
242                         <isbn><code>7</code><format>6</format></isbn>
243                         <lccn><code>9</code><format>1</format></lccn>
244                         <author><code>1003</code><format>6</format></author>
245                         <title><code>4</code><format>6</format></title>
246                         <issn><code>8</code><format>1</format></issn>
247                         <publisher><code>1018</code><format>6</format></publisher>
248                         <pubdate><code>31</code><format>1</format></pubdate>
249                         <item_type><code>1001</code><format>1</format></item_type>
250                     </attrs>
251                 </loc>
252
253                 <oclc>
254                     <!-- Z3950 settings for OCLC.  Note that OCLC requires username/password -->
255                     <host>zcat.oclc.org</host>
256                     <port>210</port>
257                     <db>OLUCWorldCat</db>
258                     <attrs>
259                         <!--
260                         These are directly from the Bib-1 Attribute Set
261                         http://www.loc.gov/z3950/agency/defns/bib1.html
262                         <code> is the "use attribute", <format> is the "structure attribute"
263                         This just puts some friendly names on the data.
264                         -->
265                         <tcn><code>12</code><format>1</format></tcn>
266                         <isbn><code>7</code><format>6</format></isbn>
267                         <lccn><code>9</code><format>1</format></lccn>
268                         <author><code>1003</code><format>6</format></author>
269                         <title><code>4</code><format>6</format></title>
270                         <issn><code>8</code><format>1</format></issn>
271                         <publisher><code>1018</code><format>6</format></publisher>
272                         <pubdate><code>31</code><format>1</format></pubdate>
273                         <item_type><code>1001</code><format>1</format></item_type>
274                     </attrs>
275                 </oclc>
276
277             </services>
278         </z3950>
279
280
281         <added_content>
282
283             <!-- load the OpenLibrary added content module -->
284             <module>OpenILS::WWW::AddedContent::OpenLibrary</module>
285
286             <!--
287             Max number of seconds to wait for an added content request to 
288             return data.  Data not returned within the timeout is considered
289             a failure
290             -->
291             <timeout>1</timeout>
292
293             <!--
294             After added content lookups have been disabled due to too many
295             lookup failures, this is the amount of time to wait before
296             we try again
297             -->
298             <retry_timeout>600</retry_timeout>
299
300             <!--
301             maximum number of consecutive lookup errors a given process can 
302             have before added content lookups are disabled for everyone
303             -->
304             <max_errors>15</max_errors>
305
306             <!-- If a userid is required to access the added content.. -->
307             <userid>MY_USER_ID</userid>
308
309             <!--
310             Base URL for Amazon added content fetching. Not needed by OpenLibrary
311             <base_url>http://images.amazon.com/images/P/</base_url>
312             -->
313
314             <!--
315             Segregating the details for ContentCafe out for easier use.  At some point, we
316             may want to support multiple services at one time.
317             -->
318             <ContentCafe>
319                 <userid>MY_USER_ID</userid>
320                 <password>MY_PASSWORD</password>
321
322                 <!--
323                 If no cover/jacket image exists for a given ISBN, then a value of T here will
324                 return an 80x120 pixel image containing the text "No Image Available".  A
325                 value of 1 will return a 1x1 pixel image.
326                 -->
327                 <return_behavior_on_no_jacket_image>T</return_behavior_on_no_jacket_image>
328             </ContentCafe>
329
330             <!--
331  
332             You can add free-form settings here and they will be accessible
333             within the added content module
334             -->
335
336         </added_content>
337
338         <!-- no apps are enabled globally by default -->
339         <activeapps/> 
340
341         <cache>
342             <!-- memcache servers -->
343             <global>
344                 <servers>
345                     <server>127.0.0.1:11211</server>
346                 </servers>
347                 <max_cache_time>86400</max_cache_time>
348             </global>
349             <anon>
350                 <!-- anonymous cache.  currently, primarily used for web session caching -->
351                 <servers>
352                     <server>127.0.0.1:11211</server>
353                 </servers>
354                 <max_cache_time>1800</max_cache_time>
355                 <!-- maximum size of a single cache entry / default = 100k-->
356                 <max_cache_size>102400</max_cache_size>
357             </anon>
358         </cache>
359
360         <apps>
361             <!-- Acquisitions server -->
362             <open-ils.acq>
363                 <!-- how long to wait between stateful requests before the child process re-joins the pool -->
364                 <keepalive>5</keepalive>
365                 <!-- true if this service support stateless requests -->
366                 <stateless>1</stateless>
367                 <!-- implementation language -->
368                 <language>perl</language>
369                 <!-- name of the library that implements this application -->
370                 <implementation>OpenILS::Application::Acq</implementation>
371                 <!-- maximum OpenSRF REQUEST within a stateful connection -->
372                 <max_requests>100</max_requests>
373                 <unix_config>
374                     <!--
375                     maximum number of top level requests coming to 
376                     this child before the child is recycled
377                     -->
378                     <max_requests>100</max_requests>
379                     <!-- min children to fork -->
380                     <min_children>1</min_children>
381                     <!-- max possible children to fork -->
382                     <max_children>15</max_children>
383                     <!--
384                     C forking implementation does not support 
385                     min/max idle children, but may in the future
386                     -->
387
388                     <!-- min idle children -->
389                     <min_spare_children>1</min_spare_children>
390                     <!-- max idle children -->
391                     <max_spare_children>5</max_spare_children>
392                     <!-- currently, only Perl uses the following 3 settings -->
393                     <unix_sock>open-ils.acq_unix.sock</unix_sock>
394                     <unix_pid>open-ils.acq_unix.pid</unix_pid>
395                     <unix_log>open-ils.acq_unix.log</unix_log>
396                 </unix_config>
397             </open-ils.acq>
398
399             <!-- Authentication server -->
400             <open-ils.auth>
401                 <keepalive>5</keepalive>
402                 <stateless>1</stateless>
403                 <language>c</language>
404                 <implementation>oils_auth.so</implementation>
405                 <unix_config>
406                     <max_requests>1000</max_requests>
407                     <min_children>1</min_children>
408                     <max_children>15</max_children>
409                     <min_spare_children>1</min_spare_children>
410                     <max_spare_children>5</max_spare_children>
411                 </unix_config>
412                 <app_settings>
413                     <!-- defined app-specific settings here -->
414                     <default_timeout>
415                         <!-- default login timeouts based on login type -->
416                         <opac>420</opac>
417                         <staff>7200</staff>
418                         <temp>300</temp>
419                         <persist>2 weeks</persist>
420                     </default_timeout>
421                 </app_settings>
422             </open-ils.auth>
423
424             <!-- Generic search server -->
425             <open-ils.search>
426                 <keepalive>5</keepalive>
427                 <stateless>1</stateless>
428                 <language>perl</language>
429                 <implementation>OpenILS::Application::Search</implementation>
430                 <max_requests>93</max_requests>
431                 <unix_config>
432                     <unix_sock>open-ils.search_unix.sock</unix_sock>
433                     <unix_pid>open-ils.search_unix.pid</unix_pid>
434                     <unix_log>open-ils.search_unix.log</unix_log>
435
436                     <max_requests>1000</max_requests>
437                     <min_children>1</min_children>
438                     <max_children>15</max_children>
439                     <min_spare_children>1</min_spare_children>
440                     <max_spare_children>5</max_spare_children>
441                 </unix_config>
442                 <app_settings>
443                     <marc_html_xsl>oilsMARC21slim2HTML.xsl</marc_html_xsl>
444                     <marc_html_xsl_slim>oilsMARC21slim2HTMLslim.xsl</marc_html_xsl_slim>
445
446                     <spelling_dictionary>
447                         <!-- 
448                             Optionally configure different dictionaries depending on search context.  
449                             If no dictionaries are defined, the default Aspell dictionary is used.
450                         -->
451                         <!--
452                         <default>LOCALSTATEDIR/data/default_dict.txt</default>
453                         <title>LOCALSTATEDIR/data/title_dict.txt</title>
454                         <author>LOCALSTATEDIR/data/author_dict.txt</author>
455                         <subject>LOCALSTATEDIR/data/subject_dict.txt</subject>
456                         <series>LOCALSTATEDIR/data/series_dict.txt</series>
457                         -->
458                     </spelling_dictionary>
459
460                     <!-- Default to using staged search -->
461                     <use_staged_search>true</use_staged_search>
462
463                     <!--
464                         For staged search, we estimate hits based on inclusion or exclusion.
465
466                         Valid settings:
467                             inclusion - visible ratio on superpage
468                             exclusion - excluded ratio on superpage
469                             delete_adjusted_inclusion - included ratio on superpage, ratio adjusted by deleted count
470                             delete_adjusted_exclusion - excluded ratio on superpage, ratio adjusted by deleted count
471
472                         Under normal circumstances, inclusion is the best strategy, and both delete_adjusted variants
473                         will return the same value +/- 1.  The exclusion strategy is the original, and works well
474                         when there are few deleted or excluded records, in other words, when the superpage is not
475                         sparsely populated with visible records.
476                     -->
477                     <estimation_strategy>inclusion</estimation_strategy>
478
479                     <!-- Baseline number of records to check for hit estimation. -->
480                     <superpage_size>1000</superpage_size>
481
482                     <!-- How many superpages to consider for searching overall. -->
483                     <max_superpages>10</max_superpages>
484
485                     <!-- zip code database file -->
486                     <!--<zips_file>LOCALSTATEDIR/data/zips.txt</zips_file>-->
487                 </app_settings>
488             </open-ils.search>
489
490             <!-- server for accessing user info -->
491             <open-ils.actor>
492                 <keepalive>5</keepalive>
493                 <stateless>1</stateless>
494                 <language>perl</language>
495                 <implementation>OpenILS::Application::Actor</implementation>
496                 <max_requests>93</max_requests>
497                 <unix_config>
498                     <unix_sock>open-ils.actor_unix.sock</unix_sock>
499                     <unix_pid>open-ils.actor_unix.pid</unix_pid>
500                     <max_requests>1000</max_requests>
501                     <unix_log>open-ils.actor_unix.log</unix_log>
502                     <min_children>1</min_children>
503                     <max_children>15</max_children>
504                     <min_spare_children>1</min_spare_children>
505                     <max_spare_children>5</max_spare_children>
506                 </unix_config>
507                 <!-- set this to 'true' to have barcode search also search patron records by unique ID -->
508                 <app_settings>
509                     <id_as_barcode>false</id_as_barcode>
510                 </app_settings>
511
512             </open-ils.actor>
513
514             <open-ils.booking>
515                 <keepalive>5</keepalive>
516                 <stateless>1</stateless>
517                 <language>perl</language>
518                 <implementation>OpenILS::Application::Booking</implementation>
519                 <max_requests>199</max_requests>
520                 <unix_config>
521                     <unix_sock>open-ils.booking_unix.sock</unix_sock>
522                     <unix_pid>open-ils.booking_unix.pid</unix_pid>
523                     <max_requests>1000</max_requests>
524                     <unix_log>open-ils.booking_unix.log</unix_log>
525                     <min_children>1</min_children>
526                     <max_children>15</max_children>
527                     <min_spare_children>1</min_spare_children>
528                     <max_spare_children>5</max_spare_children>
529                 </unix_config>
530                 <app_settings>
531                 </app_settings>
532             </open-ils.booking>
533
534             <open-ils.cat>
535                 <keepalive>5</keepalive>
536                 <stateless>1</stateless>
537                 <language>perl</language>
538                 <implementation>OpenILS::Application::Cat</implementation>
539                 <max_requests>199</max_requests>
540                 <unix_config>
541                     <unix_sock>open-ils.cat_unix.sock</unix_sock>
542                     <unix_pid>open-ils.cat_unix.pid</unix_pid>
543                     <max_requests>1000</max_requests>
544                     <unix_log>open-ils.cat_unix.log</unix_log>
545                     <min_children>1</min_children>
546                     <max_children>15</max_children>
547                     <min_spare_children>1</min_spare_children>
548                     <max_spare_children>5</max_spare_children>
549                 </unix_config>
550                 <app_settings>
551                     <marctemplates>
552                         <K_book>LOCALSTATEDIR/templates/marc/k_book.xml</K_book>
553                     </marctemplates>
554                 </app_settings>
555             </open-ils.cat>
556
557             <open-ils.supercat>
558                 <keepalive>5</keepalive>
559                 <stateless>1</stateless>
560                 <language>perl</language>
561                 <implementation>OpenILS::Application::SuperCat</implementation>
562                 <max_requests>199</max_requests>
563                 <unix_config>
564                     <unix_sock>open-ils.supercat_unix.sock</unix_sock>
565                     <unix_pid>open-ils.supercat_unix.pid</unix_pid>
566                     <max_requests>1000</max_requests>
567                     <unix_log>open-ils.supercat_unix.log</unix_log>
568                     <min_children>1</min_children>
569                     <max_children>15</max_children>
570                     <min_spare_children>1</min_spare_children>
571                     <max_spare_children>5</max_spare_children>
572                 </unix_config>
573             </open-ils.supercat>
574
575             <!-- server for accessing user info -->
576             <open-ils.trigger>
577                 <keepalive>5</keepalive>
578                 <stateless>1</stateless>
579                 <language>perl</language>
580                 <implementation>OpenILS::Application::Trigger</implementation>
581                 <max_requests>93</max_requests>
582                 <unix_config>
583                     <unix_sock>open-ils.trigger_unix.sock</unix_sock>
584                     <unix_pid>open-ils.trigger_unix.pid</unix_pid>
585                     <max_requests>1000</max_requests>
586                     <unix_log>open-ils.trigger_unix.log</unix_log>
587                     <min_children>1</min_children>
588                     <max_children>15</max_children>
589                     <min_spare_children>1</min_spare_children>
590                     <max_spare_children>5</max_spare_children>
591                 </unix_config>
592                 <app_settings>
593                     <!-- number of parallel open-ils.trigger processes to use for collection and reaction -->
594                     <!--
595                     <parallel>
596                         <collect>3</collect>
597                         <react>3</react>
598                     </parallel>
599                     -->
600                 </app_settings>
601             </open-ils.trigger>
602
603             <opensrf.math>
604                 <keepalive>3</keepalive>
605                 <stateless>1</stateless>
606                 <language>c</language>
607                 <implementation>osrf_math.so</implementation>
608                 <unix_config>
609                     <unix_sock>opensrf.math_unix.sock</unix_sock>
610                     <unix_pid>opensrf.math_unix.pid</unix_pid>
611                     <max_requests>1000</max_requests>
612                     <unix_log>opensrf.math_unix.log</unix_log>
613                     <min_children>1</min_children>
614                     <max_children>15</max_children>
615                     <min_spare_children>1</min_spare_children>
616                     <max_spare_children>5</max_spare_children>
617                 </unix_config>
618             </opensrf.math>
619
620             <opensrf.dbmath> 
621                 <keepalive>3</keepalive>
622                 <stateless>1</stateless>
623                 <language>c</language>
624                 <implementation>osrf_dbmath.so</implementation>
625                 <unix_config>
626                     <max_requests>1000</max_requests>
627                     <unix_log>opensrf.dbmath_unix.log</unix_log>
628                     <unix_sock>opensrf.dbmath_unix.sock</unix_sock>
629                     <unix_pid>opensrf.dbmath_unix.pid</unix_pid>
630                     <min_children>1</min_children>
631                     <max_children>15</max_children>
632                     <min_spare_children>1</min_spare_children> 
633                     <max_spare_children>5</max_spare_children>
634                 </unix_config>
635             </opensrf.dbmath>
636
637             <open-ils.penalty>
638                 <keepalive>3</keepalive>
639                 <stateless>1</stateless>
640                 <language>perl</language>
641                 <implementation>OpenILS::Application::Penalty</implementation>
642                 <max_requests>99</max_requests>
643                 <unix_config>
644                     <max_requests>1000</max_requests>
645                     <unix_log>open-ils.penalty_unix.log</unix_log>
646                     <unix_sock>open-ils.penalty_unix.sock</unix_sock>
647                     <unix_pid>open-ils.penalty_unix.pid</unix_pid>
648                     <min_children>1</min_children>
649                     <max_children>15</max_children>
650                     <min_spare_children>1</min_spare_children>
651                     <max_spare_children>5</max_spare_children>
652                 </unix_config>
653                 <app_settings>
654                     <patron_penalty>penalty/patron_penalty.js</patron_penalty>
655                     <script_path>LIBDIR/javascript</script_path>
656                     <script_path>LOCALSTATEDIR</script_path>
657                     <script_path>LOCALSTATEDIR/catalog</script_path>
658                 </app_settings>
659             </open-ils.penalty>
660
661             <open-ils.circ> 
662                 <keepalive>3</keepalive>
663                 <stateless>1</stateless>
664                 <language>perl</language>
665                 <implementation>OpenILS::Application::Circ</implementation>
666                 <max_requests>99</max_requests>
667                 <unix_config>
668                     <max_requests>1000</max_requests>
669                     <unix_log>open-ils.circ_unix.log</unix_log>
670                     <unix_sock>open-ils.circ_unix.sock</unix_sock>
671                     <unix_pid>open-ils.circ_unix.pid</unix_pid>
672                     <min_children>1</min_children>
673                     <max_children>15</max_children>
674                     <min_spare_children>1</min_spare_children> 
675                     <max_spare_children>5</max_spare_children>
676                 </unix_config>
677                 <app_settings>
678                     <notify_hold>
679                         <email>false</email> <!-- set to false to disable hold notice emails -->
680                     </notify_hold>
681
682                     <!-- circulation policy scripts -->
683                     <script_path>LIBDIR/javascript</script_path>
684                     <script_path>LOCALSTATEDIR</script_path>
685                     <script_path>LOCALSTATEDIR/catalog</script_path>
686                     <legacy_script_support>false</legacy_script_support>
687                     <scripts> 
688                         <circ_permit_patron>circ/circ_permit_patron.js</circ_permit_patron>
689                         <circ_permit_copy>circ/circ_permit_copy.js</circ_permit_copy>
690                         <circ_duration>circ/circ_duration.js</circ_duration>
691                         <circ_recurring_fines>circ/circ_recurring_fines.js</circ_recurring_fines>
692                         <circ_max_fines>circ/circ_max_fines.js</circ_max_fines>
693                         <circ_permit_renew>circ/circ_permit_renew.js</circ_permit_renew>
694                         <circ_permit_hold>circ/circ_permit_hold.js</circ_permit_hold>
695                     </scripts>               
696
697                     <circ_modifiers>
698                         <mod>art</mod>
699                         <mod>atlas</mod>
700                         <mod>audiobook</mod>
701                         <mod>av</mod>
702                         <mod>new-av</mod>
703                         <mod>bestseller</mod>
704                         <mod>bestsellernh</mod>
705                         <mod>book</mod>
706                         <mod>cd</mod>
707                         <mod>dvd</mod>
708                         <mod>dvd-long</mod>
709                         <mod>e-book</mod>
710                         <mod>equipment</mod>
711                         <mod>filmstrip</mod>
712                         <mod>kit</mod>
713                         <mod>magazine</mod>
714                         <mod>map</mod>
715                         <mod>microform</mod>
716                         <mod>music</mod>
717                         <mod>record</mod>
718                         <mod>software</mod>
719                         <mod>softwrlong</mod>
720                         <mod>equip-long</mod>
721                         <mod>talking book</mod>
722                         <mod>toy</mod>
723                         <mod>video</mod>
724                         <mod>video-long</mod>
725                     </circ_modifiers>
726
727                     <billing_types>
728                         <type>Miscellaneous</type>
729                         <type>Overdue materials</type>
730                         <type>Fee for placing a hold</type>
731                         <type>Fee for checking out a book</type>
732                         <type>Fee for library card</type>
733                         <type>Miscellaneous charges</type>
734                         <type>Lost materials</type>
735                         <type>Damaged material</type>
736                         <type>Overdue Reserves charge</type>
737                         <type>Recall overdue</type>
738                         <type>Fee for processing lost library materials</type>
739                         <type>Fee for sending patron bills to collection agency</type>
740                         <type>Fee for interlibrary loan</type>
741                         <type>Fee for copies</type>
742                         <type>Money advanced to pay for telephone use</type>
743                         <type>Deposit fee</type>
744                         <type>Fee for disk</type>
745                         <type>Fee for faxing</type>
746                         <type>Fee for laminating</type>
747                         <type>Fee for room cleaning</type>
748                         <type>Deposit returned; fee refund</type>
749                         <type>Sale items</type>
750                         <type>Fee for lost card</type>
751                         <type>Long overdue items</type>
752                         <type>Lost/Replacement Cassette</type>
753                         <type>Returned Check</type>
754                     </billing_types>
755                 </app_settings>
756             </open-ils.circ>
757
758             <open-ils.ingest>
759                 <keepalive>3</keepalive>
760                 <stateless>1</stateless>
761                 <implementation>OpenILS::Application::Ingest</implementation>
762                 <language>perl</language>
763                 <max_requests>1000000</max_requests>
764                 <unix_config>
765                     <max_requests>1000000</max_requests>
766                     <unix_log>open-ils.ingest-unix.log</unix_log>
767                     <unix_sock>open-ils.ingest-unix.sock</unix_sock>
768                     <unix_pid>open-ils.ingest-unix.pid</unix_pid>
769                     <min_children>5</min_children>
770                     <max_children>20</max_children>
771                     <min_spare_children>2</min_spare_children>
772                     <max_spare_children>5</max_spare_children>
773                 </unix_config>
774                 <app_settings>
775                     <script_path>LIBDIR/javascript/</script_path>
776                     <script_path>LOCALSTATEDIR/catalog/</script_path>
777                     <script_path>LOCALSTATEDIR/web/opac/common/js/</script_path>
778                     <scripts>
779                         <biblio_fingerprint>biblio_fingerprint.js</biblio_fingerprint>
780                         <biblio_descriptor>biblio_descriptor.js</biblio_descriptor>
781                     </scripts>
782                 </app_settings>
783             </open-ils.ingest>
784
785             <open-ils.storage>
786                 <keepalive>10</keepalive>
787                 <stateless>1</stateless>
788                 <language>perl</language>
789                 <implementation>OpenILS::Application::Storage</implementation>
790                 <unix_config>
791                     <max_requests>1000</max_requests>
792                     <unix_log>open-ils.storage_unix.log</unix_log>
793                     <unix_sock>open-ils.storage_unix.sock</unix_sock>
794                     <unix_pid>open-ils.storage_unix.pid</unix_pid>
795                     <min_children>1</min_children>
796                     <max_children>10</max_children>
797                     <min_spare_children>1</min_spare_children>
798                     <max_spare_children>5</max_spare_children>
799                 </unix_config>
800                 <app_settings>
801                     <!-- default_preferred_language: Set the global, default preferred languange -->
802                     <default_preferred_language>eng</default_preferred_language>
803
804                     <!-- default_preferred_language_weight: Set the weight (higher is "better") for the preferred language -->
805                     <default_preferred_language_weight>5</default_preferred_language_weight>
806
807                     <script_path>LIBDIR/javascript/</script_path>
808                     <script_path>LOCALSTATEDIR/catalog/</script_path>
809                     <scripts>
810                         <biblio_fingerprint>biblio_fingerprint.js</biblio_fingerprint>
811                     </scripts>
812                     <databases>
813                         <driver>Pg</driver>
814                         <database>
815                             <type>master</type>
816                             <weight>2</weight>
817                             <user>postgres</user>
818                             <host>localhost</host>
819                             <port>5432</port>
820                             <pw>postgres</pw>
821                             <db>evergreen</db>
822                             <client_encoding>UTF-8</client_encoding>
823                         </database>
824                     </databases>
825                 </app_settings>
826             </open-ils.storage>
827
828             <open-ils.cstore>
829                 <keepalive>6</keepalive>
830                 <stateless>1</stateless>
831                 <language>C</language>
832                 <implementation>oils_cstore.so</implementation>
833                 <unix_config>
834                     <max_requests>1000</max_requests>
835                     <min_children>1</min_children>
836                     <max_children>15</max_children>
837                     <min_spare_children>1</min_spare_children>
838                     <max_spare_children>5</max_spare_children>
839                 </unix_config>
840                 <app_settings>
841                     <max_query_recursion>100</max_query_recursion>
842                     <driver>pgsql</driver>
843                     <database>
844                         <type>master</type>
845                         <weight>2</weight>
846                         <user>postgres</user>
847                         <host>localhost</host>
848                         <port>5432</port>
849                         <pw>postgres</pw>
850                         <db>evergreen</db>
851                         <client_encoding>UTF-8</client_encoding>
852                     </database>
853                 </app_settings>
854             </open-ils.cstore>
855
856             <open-ils.pcrud>
857                 <keepalive>6</keepalive>
858                 <migratable>1</migratable>
859                 <stateless>1</stateless>
860                 <language>C</language>
861                 <implementation>oils_pcrud.so</implementation>
862
863                 <unix_config>
864                     <unix_log>open-ils.pcrud.log</unix_log>
865                     <unix_sock>open-ils.pcrud.sock</unix_sock>
866                     <unix_pid>open-ils.pcrud.pid</unix_pid>
867                     <max_requests>1000</max_requests>
868                     <min_children>1</min_children>
869                     <max_children>15</max_children>
870                     <min_spare_children>1</min_spare_children>
871                     <max_spare_children>5</max_spare_children>
872                 </unix_config>
873
874                 <app_settings>
875                     <IDL>SYSCONFDIR/fm_IDL.xml</IDL>
876                     <driver>pgsql</driver>
877                     <database>
878                         <type>master</type>
879                         <weight>2</weight>
880                         <user>postgres</user>
881                         <host>localhost</host>
882                         <port>5432</port>
883                         <pw>postgres</pw>
884                         <db>evergreen</db>
885                         <client_encoding>UTF-8</client_encoding>
886                     </database>
887                 </app_settings>
888             </open-ils.pcrud>
889
890             <open-ils.qstore>
891                 <keepalive>6</keepalive>
892                 <stateless>1</stateless>
893                 <language>C</language>
894                 <implementation>oils_qstore.so</implementation>
895                 <unix_config>
896                     <max_requests>1000</max_requests>
897                     <min_children>1</min_children>
898                     <max_children>15</max_children>
899                     <min_spare_children>1</min_spare_children>
900                     <max_spare_children>5</max_spare_children>
901                 </unix_config>
902                 <app_settings>
903                     <driver>pgsql</driver>
904                     <database>
905                         <type>master</type>
906                         <weight>2</weight>
907                         <user>postgres</user>
908                         <host>localhost</host>
909                         <port>5432</port>
910                         <pw>postgres</pw>
911                         <db>evergreen</db>
912                         <client_encoding>UTF-8</client_encoding>
913                     </database>
914                 </app_settings>
915             </open-ils.qstore>
916
917             <opensrf.settings>
918                 <keepalive>1</keepalive>
919                 <stateless>1</stateless>
920                 <language>perl</language>
921                 <implementation>OpenSRF::Application::Settings</implementation>
922                 <max_requests>17</max_requests>
923                 <unix_config>
924                     <unix_sock>opensrf.settings_unix.sock</unix_sock>
925                     <unix_pid>opensrf.settings_unix.pid</unix_pid>
926                     <max_requests>300</max_requests>
927                     <unix_log>opensrf.settings_unix.log</unix_log>
928                     <min_children>5</min_children>
929                     <max_children>15</max_children>
930                     <min_spare_children>3</min_spare_children>
931                     <max_spare_children>5</max_spare_children>
932                 </unix_config>
933             </opensrf.settings>
934
935             <open-ils.collections>
936                 <keepalive>3</keepalive>
937                 <stateless>1</stateless>
938                 <language>perl</language>
939                 <implementation>OpenILS::Application::Collections</implementation>
940                 <max_requests>17</max_requests>
941                 <unix_config>
942                     <unix_sock>open-ils.collections_unix.sock</unix_sock>
943                     <unix_pid>open-ils.collections_unix.pid</unix_pid>
944                     <max_requests>1000</max_requests>
945                     <unix_log>open-ils.collections_unix.log</unix_log>
946                     <min_children>1</min_children>
947                     <max_children>10</max_children>
948                     <min_spare_children>1</min_spare_children>
949                     <max_spare_children>5</max_spare_children>
950                 </unix_config>
951             </open-ils.collections>
952
953             <open-ils.reporter>
954                 <keepalive>3</keepalive>
955                 <stateless>1</stateless>
956                 <language>perl</language>
957                 <implementation>OpenILS::Application::Reporter</implementation>
958                 <max_requests>99</max_requests>
959                 <unix_config>
960                     <unix_sock>open-ils.reporter_unix.sock</unix_sock>
961                     <unix_pid>open-ils.reporter_unix.pid</unix_pid>
962                     <max_requests>1000</max_requests>
963                     <unix_log>open-ils.reporter_unix.log</unix_log>
964                     <min_children>1</min_children>
965                     <max_children>10</max_children>
966                     <min_spare_children>1</min_spare_children>
967                     <max_spare_children>5</max_spare_children>
968                 </unix_config>
969             </open-ils.reporter>
970
971             <open-ils.reporter-store>
972                 <keepalive>6</keepalive>
973                 <stateless>1</stateless>
974                 <language>C</language>
975                 <implementation>oils_rstore.so</implementation>
976                 <unix_config>
977                     <max_requests>400</max_requests>
978                     <min_children>1</min_children>
979                     <max_children>10</max_children>
980                     <min_spare_children>1</min_spare_children>
981                     <max_spare_children>5</max_spare_children>
982                 </unix_config>
983                 <app_settings>
984                     <driver>pgsql</driver>
985                     <database>
986                         <type>master</type>
987                         <weight>2</weight>
988                         <user>postgres</user>
989                         <host>localhost</host>
990                         <port>5432</port>
991                         <pw>postgres</pw>
992                         <db>evergreen</db>
993                         <client_encoding>UTF-8</client_encoding>
994                     </database>
995                 </app_settings>
996             </open-ils.reporter-store>
997
998 <!--
999            <open-ils.resolver>
1000                <keepalive>3</keepalive>
1001                <stateless>1</stateless>
1002                <language>perl</language>
1003                <implementation>OpenILS::Application::ResolverResolver</implementation>
1004                <max_requests>93</max_requests>
1005                <unix_config>
1006                   <unix_sock>open-ils.resolver_unix.sock</unix_sock>
1007                   <unix_pid>open-ils.resolver_unix.pid</unix_pid>
1008                   <max_requests>1000</max_requests>
1009                   <unix_log>open-ils.resolver_unix.log</unix_log>
1010                   <min_children>5</min_children>
1011                   <max_children>15</max_children>
1012                   <min_spare_children>3</min_spare_children>
1013                   <max_spare_children>5</max_spare_children>
1014                </unix_config>
1015                <app_settings>
1016                   <cache_timeout>86400</cache_timeout>
1017                   <default_url_base>http://path/to/sfx</default_url_base>
1018                </app_settings>
1019             </open-ils.resolver>
1020 -->
1021
1022             <open-ils.permacrud>
1023                <keepalive>3</keepalive>
1024                <stateless>1</stateless>
1025                <language>perl</language>
1026                <implementation>OpenILS::Application::PermaCrud</implementation>
1027                <max_requests>17</max_requests>
1028                <unix_config>
1029                   <unix_sock>open-ils.permacrud_unix.sock</unix_sock>
1030                   <unix_pid>open-ils.permacrud_unix.pid</unix_pid>
1031                   <max_requests>1000</max_requests>
1032                   <unix_log>open-ils.permacrud_unix.log</unix_log>
1033                   <min_children>5</min_children>
1034                   <max_children>15</max_children>
1035                   <min_spare_children>3</min_spare_children>
1036                   <max_spare_children>5</max_spare_children>
1037                </unix_config>
1038             </open-ils.permacrud>
1039
1040             <open-ils.fielder>
1041                <keepalive>3</keepalive>
1042                <stateless>1</stateless>
1043                <language>perl</language>
1044                <implementation>OpenILS::Application::Fielder</implementation>
1045                <max_requests>17</max_requests>
1046                <unix_config>
1047                   <unix_sock>open-ils.fielder_unix.sock</unix_sock>
1048                   <unix_pid>open-ils.fielder_unix.pid</unix_pid>
1049                   <max_requests>1000</max_requests>
1050                   <unix_log>open-ils.fielder_unix.log</unix_log>
1051                   <min_children>5</min_children>
1052                   <max_children>15</max_children>
1053                   <min_spare_children>3</min_spare_children>
1054                   <max_spare_children>5</max_spare_children>
1055                </unix_config>
1056             </open-ils.fielder>
1057
1058             <open-ils.vandelay>
1059                 <keepalive>5</keepalive>
1060                 <stateless>1</stateless>
1061                 <language>perl</language>
1062                 <implementation>OpenILS::Application::Vandelay</implementation>
1063                 <max_requests>100</max_requests>
1064                 <unix_config>
1065                     <unix_sock>vandelay_unix.sock</unix_sock>
1066                     <unix_pid>vandelay_unix.pid</unix_pid>
1067                     <unix_log>vandelay_unix.log</unix_log>
1068                     <max_requests>100</max_requests>
1069                     <min_children>1</min_children>
1070                     <max_children>15</max_children>
1071                     <min_spare_children>1</min_spare_children>
1072                     <max_spare_children>5</max_spare_children>
1073                 </unix_config>
1074                 <app_settings>
1075                     <databases>
1076                         <!-- temporary location for MARC import files.  
1077                             Files will be deleted after records are spooled.
1078                             *note:  in a multi-brick environment, this will need to
1079                             be on a write-able NFS share.  -->
1080                         <importer>/tmp</importer>
1081                     </databases>
1082                 </app_settings>
1083             </open-ils.vandelay>
1084
1085             <open-ils.serial>
1086                 <keepalive>3</keepalive>
1087                 <stateless>1</stateless>
1088                 <language>perl</language>
1089                 <implementation>OpenILS::Application::Serial</implementation>
1090                 <max_requests>17</max_requests>
1091                 <unix_config>
1092                     <unix_sock>open-ils.serial_unix.sock</unix_sock>
1093                     <unix_pid>open-ils.serial_unix.pid</unix_pid>
1094                     <max_requests>1000</max_requests>
1095                     <unix_log>open-ils.serial_unix.log</unix_log>
1096                     <min_children>5</min_children>
1097                     <max_children>15</max_children>
1098                     <min_spare_children>3</min_spare_children>
1099                     <max_spare_children>5</max_spare_children>
1100                 </unix_config>
1101                 <app_settings>
1102                 </app_settings>
1103             </open-ils.serial>
1104
1105         </apps>
1106     </default>
1107
1108     <hosts>
1109
1110         <localhost> 
1111             <!-- ^-=- 
1112             Should match the fully qualified domain name of the host.
1113
1114             On Linux, the output of the following command is authoritative:
1115             $ perl -MNet::Domain -e 'print Net::Domain::hostfqdn() . "\n";'
1116
1117             To use 'localhost' instead, run osrf_ctl.sh with the -l flag
1118             -->
1119
1120             <activeapps>
1121                 <!-- services hosted on this machine -->
1122                 <appname>opensrf.settings</appname> 
1123                 <appname>opensrf.math</appname> 
1124                 <appname>opensrf.dbmath</appname> 
1125                 <appname>open-ils.acq</appname> 
1126                 <appname>open-ils.booking</appname>
1127                 <appname>open-ils.cat</appname> 
1128                 <appname>open-ils.supercat</appname> 
1129                 <appname>open-ils.search</appname> 
1130                 <appname>open-ils.circ</appname> 
1131                 <appname>open-ils.actor</appname> 
1132                 <appname>open-ils.auth</appname> 
1133                 <appname>open-ils.storage</appname>  
1134                 <appname>open-ils.penalty</appname>  
1135                 <appname>open-ils.cstore</appname>  
1136                 <appname>open-ils.collections</appname>  
1137                 <appname>open-ils.ingest</appname>  
1138                 <appname>open-ils.reporter</appname>  
1139                 <appname>open-ils.reporter-store</appname>  
1140                 <!-- <appname>open-ils.resolver</appname> -->
1141                 <appname>open-ils.permacrud</appname>  
1142                 <appname>open-ils.pcrud</appname>  
1143                 <appname>open-ils.trigger</appname>  
1144                 <appname>open-ils.fielder</appname>  
1145                 <appname>open-ils.vandelay</appname>  
1146                 <appname>open-ils.serial</appname>  
1147             </activeapps>
1148         </localhost>
1149     </hosts>
1150
1151 </opensrf>