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