]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/examples/opensrf.xml.example
Added a new login type "persist", as a peer of "opac", "staff", and "temp".
[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             <!-- XXX If you use the Amazon plugin, you must link back to Amazon in the OPAC -->
266
267             <!-- load the Amazon added content module -->
268             <module>OpenILS::WWW::AddedContent::Amazon</module>
269             <!--
270             Base URL for Amazon added content fetching.  This URL may
271             need to be shortened when new (read: non-image) content 
272             fetching capabilities are added
273             -->
274             <base_url>http://images.amazon.com/images/P/</base_url>
275
276             <!--
277             Max number of seconds to wait for an added content request to 
278             return data.  Data not returned within the timeout is considered
279             a failure
280             -->
281             <timeout>1</timeout>
282
283             <!--
284             After added content lookups have been disabled due to too many
285             lookup failures, this is the amount of time to wait before
286             we try again
287             -->
288             <retry_timeout>600</retry_timeout>
289
290             <!--
291             maximum number of consecutive lookup errors a given process can 
292             have before added content lookups are disabled for everyone
293             -->
294             <max_errors>15</max_errors>
295
296             <!-- If a userid is required to access the added content.. -->
297             <userid>MY_USER_ID</userid>
298
299             <!--
300             You can add free-form settings here and they will be accessible
301             within the added content module
302             -->
303
304         </added_content>
305
306
307
308         <!-- no apps are enabled globally by default -->
309         <activeapps/> 
310
311         <cache>
312             <!-- memcache servers -->
313             <global>
314                 <servers>
315                     <server>localhost:11211</server>
316                 </servers>
317                 <max_cache_time>86400</max_cache_time>
318             </global>
319             <anon>
320                 <!-- anonymous cache.  currently, primarily used for web session caching -->
321                 <servers>
322                     <server>localhost:11211</server>
323                 </servers>
324                 <max_cache_time>1800</max_cache_time>
325                 <!-- maximum size of a single cache entry / default = 100k-->
326                 <max_cache_size>102400</max_cache_size>
327             </anon>
328         </cache>
329
330         <apps>
331             <!-- Acquisitions server -->
332             <open-ils.acq>
333                 <keepalive>5</keepalive>
334                 <stateless>1</stateless>
335                 <language>perl</language>
336                 <implementation>OpenILS::Application::Acq</implementation>
337                 <max_requests>100</max_requests>
338                 <unix_config>
339                     <unix_sock>open-ils.acq_unix.sock</unix_sock>
340                     <unix_pid>open-ils.acq_unix.pid</unix_pid>
341                     <unix_log>open-ils.acq_unix.log</unix_log>
342                     <max_requests>100</max_requests>
343                     <min_children>1</min_children>
344                     <max_children>15</max_children>
345                     <min_spare_children>1</min_spare_children>
346                     <max_spare_children>5</max_spare_children>
347                 </unix_config>
348             </open-ils.acq>
349
350             <!-- Authentication server -->
351             <open-ils.auth>
352
353                 <!-- how long to wait between stateful requests before the child process re-joins the pool -->
354                 <keepalive>5</keepalive>
355
356                 <!-- true if this service support stateless requests -->
357                 <stateless>1</stateless>
358
359                 <!-- implementation language -->
360                 <language>c</language>
361
362                 <!-- library to plugin -->
363                 <implementation>oils_auth.so</implementation>
364
365                 <!-- maximum required opensrf requests within a stateful connection -->
366                 <max_requests>93</max_requests>
367
368                 <unix_config>
369                     <!--
370                     maximum number of top level requests coming to 
371                     this child before the child is recycled
372                     -->
373                     <max_requests>1000</max_requests>
374                     <!-- min children to fork -->
375                     <min_children>1</min_children>
376                     <!-- max possible children to fork -->
377                     <max_children>15</max_children>
378
379                     <!--
380                     C forking implementation does not support 
381                     min/max idle children, but may in the future
382                     -->
383
384                     <!-- min idle children -->
385                     <min_spare_children>1</min_spare_children>
386                     <!-- max idle children -->
387                     <max_spare_children>5</max_spare_children>
388
389                 </unix_config>
390
391                 <app_settings>
392                     <!-- defined app-specific settings here -->
393                     <default_timeout>
394                         <!-- default login timeouts based on login type -->
395                         <opac>420</opac>
396                         <staff>7200</staff>
397                         <temp>300</temp>
398                                                 <persist>2 weeks</persist>
399                     </default_timeout>
400                 </app_settings>
401             </open-ils.auth>
402
403
404             <!-- Generic search server -->
405             <open-ils.search>
406                 <keepalive>5</keepalive>
407                 <stateless>1</stateless>
408                 <language>perl</language>
409                 <implementation>OpenILS::Application::Search</implementation>
410                 <max_requests>93</max_requests>
411                 <unix_config>
412
413                     <!-- the following 3 settings are currently used by Perl services only -->
414                     <unix_sock>open-ils.search_unix.sock</unix_sock>
415                     <unix_pid>open-ils.search_unix.pid</unix_pid>
416                     <unix_log>open-ils.search_unix.log</unix_log>
417
418                     <max_requests>1000</max_requests>
419                     <min_children>1</min_children>
420                     <max_children>15</max_children>
421                     <min_spare_children>1</min_spare_children>
422                     <max_spare_children>5</max_spare_children>
423                 </unix_config>
424                 <app_settings>
425                     <marc_html_xsl>oilsMARC21slim2HTML.xsl</marc_html_xsl>
426                     <marc_html_xsl_slim>oilsMARC21slim2HTMLslim.xsl</marc_html_xsl_slim>
427
428                     <spelling_dictionary>
429                         <!-- 
430                             Optionally configure different dictionaries depending on search context.  
431                             If no dictionaries are defined, the default Aspell dictionary is used.
432                         -->
433                         <!--
434                         <default>LOCALSTATEDIR/data/default_dict.txt</default>
435                         <title>LOCALSTATEDIR/data/title_dict.txt</title>
436                         <author>LOCALSTATEDIR/data/author_dict.txt</author>
437                         <subject>LOCALSTATEDIR/data/subject_dict.txt</subject>
438                         <series>LOCALSTATEDIR/data/series_dict.txt</series>
439                         -->
440                     </spelling_dictionary>
441
442                     <!-- Default to using staged search -->
443                     <use_staged_search>true</use_staged_search>
444
445                     <!--
446                         For staged search, we estimate hits based on inclusion or exclusion.
447
448                         Valid settings:
449                             inclusion - visible ratio on superpage
450                             exclusion - excluded ratio on superpage
451                             delete_adjusted_inclusion - included ratio on superpage, ratio adjusted by deleted count
452                             delete_adjusted_exclusion - excluded ratio on superpage, ratio adjusted by deleted count
453
454                         Under normal circumstances, inclusion is the best strategy, and both delete_adjusted variants
455                         will return the same value +/- 1.  The exclusion strategy is the original, and works well
456                         when there are few deleted or excluded records, in other words, when the superpage is not
457                         sparsely populated with visible records.
458                     -->
459                     <estimation_strategy>inclusion</estimation_strategy>
460
461                     <!-- Baseline number of records to check for hit estimation. -->
462                     <superpage_size>1000</superpage_size>
463
464                     <!-- How many superpages to consider for searching overall. -->
465                     <max_superpages>10</max_superpages>
466
467                     <!-- zip code database file -->
468                     <!--<zips_file>LOCALSTATEDIR/data/zips.txt</zips_file>-->
469                 </app_settings>
470             </open-ils.search>
471
472             <!-- server for accessing user info -->
473             <open-ils.actor>
474                 <keepalive>5</keepalive>
475                 <stateless>1</stateless>
476                 <language>perl</language>
477                 <implementation>OpenILS::Application::Actor</implementation>
478                 <max_requests>93</max_requests>
479                 <unix_config>
480                     <unix_sock>open-ils.actor_unix.sock</unix_sock>
481                     <unix_pid>open-ils.actor_unix.pid</unix_pid>
482                     <max_requests>1000</max_requests>
483                     <unix_log>open-ils.actor_unix.log</unix_log>
484                     <min_children>1</min_children>
485                     <max_children>15</max_children>
486                     <min_spare_children>1</min_spare_children>
487                     <max_spare_children>5</max_spare_children>
488                 </unix_config>
489                 <!-- set this to 'true' to have barcode search also search patron records by unique ID -->
490                 <app_settings>
491                     <id_as_barcode>false</id_as_barcode>
492                 </app_settings>
493
494             </open-ils.actor>
495
496             <open-ils.booking>
497                 <keepalive>5</keepalive>
498                 <stateless>1</stateless>
499                 <language>perl</language>
500                 <implementation>OpenILS::Application::Booking</implementation>
501                 <max_requests>199</max_requests>
502                 <unix_config>
503                     <unix_sock>open-ils.booking_unix.sock</unix_sock>
504                     <unix_pid>open-ils.booking_unix.pid</unix_pid>
505                     <max_requests>1000</max_requests>
506                     <unix_log>open-ils.booking_unix.log</unix_log>
507                     <min_children>1</min_children>
508                     <max_children>15</max_children>
509                     <min_spare_children>1</min_spare_children>
510                     <max_spare_children>5</max_spare_children>
511                 </unix_config>
512                 <app_settings>
513                     <marctemplates>
514                         <K_book>LOCALSTATEDIR/templates/marc/k_book.xml</K_book>
515                     </marctemplates>
516                 </app_settings>
517             </open-ils.booking>
518
519             <open-ils.cat>
520                 <keepalive>5</keepalive>
521                 <stateless>1</stateless>
522                 <language>perl</language>
523                 <implementation>OpenILS::Application::Cat</implementation>
524                 <max_requests>199</max_requests>
525                 <unix_config>
526                     <unix_sock>open-ils.cat_unix.sock</unix_sock>
527                     <unix_pid>open-ils.cat_unix.pid</unix_pid>
528                     <max_requests>1000</max_requests>
529                     <unix_log>open-ils.cat_unix.log</unix_log>
530                     <min_children>1</min_children>
531                     <max_children>15</max_children>
532                     <min_spare_children>1</min_spare_children>
533                     <max_spare_children>5</max_spare_children>
534                 </unix_config>
535                 <app_settings>
536                     <marctemplates>
537                         <K_book>LOCALSTATEDIR/templates/marc/k_book.xml</K_book>
538                     </marctemplates>
539                 </app_settings>
540             </open-ils.cat>
541
542             <open-ils.supercat>
543                 <keepalive>5</keepalive>
544                 <stateless>1</stateless>
545                 <language>perl</language>
546                 <implementation>OpenILS::Application::SuperCat</implementation>
547                 <max_requests>199</max_requests>
548                 <unix_config>
549                     <unix_sock>open-ils.supercat_unix.sock</unix_sock>
550                     <unix_pid>open-ils.supercat_unix.pid</unix_pid>
551                     <max_requests>1000</max_requests>
552                     <unix_log>open-ils.supercat_unix.log</unix_log>
553                     <min_children>1</min_children>
554                     <max_children>15</max_children>
555                     <min_spare_children>1</min_spare_children>
556                     <max_spare_children>5</max_spare_children>
557                 </unix_config>
558             </open-ils.supercat>
559
560             <!-- server for accessing user info -->
561             <open-ils.trigger>
562                 <keepalive>5</keepalive>
563                 <stateless>1</stateless>
564                 <language>perl</language>
565                 <implementation>OpenILS::Application::Trigger</implementation>
566                 <max_requests>93</max_requests>
567                 <unix_config>
568                     <unix_sock>open-ils.trigger_unix.sock</unix_sock>
569                     <unix_pid>open-ils.trigger_unix.pid</unix_pid>
570                     <max_requests>1000</max_requests>
571                     <unix_log>open-ils.trigger_unix.log</unix_log>
572                     <min_children>1</min_children>
573                     <max_children>15</max_children>
574                     <min_spare_children>1</min_spare_children>
575                     <max_spare_children>5</max_spare_children>
576                 </unix_config>
577             </open-ils.trigger>
578
579             <opensrf.math>
580                 <keepalive>3</keepalive>
581                 <stateless>1</stateless>
582                 <language>c</language>
583                 <implementation>osrf_math.so</implementation>
584                 <max_requests>97</max_requests>
585                 <unix_config>
586                     <unix_sock>opensrf.math_unix.sock</unix_sock>
587                     <unix_pid>opensrf.math_unix.pid</unix_pid>
588                     <max_requests>1000</max_requests>
589                     <unix_log>opensrf.math_unix.log</unix_log>
590                     <min_children>1</min_children>
591                     <max_children>15</max_children>
592                     <min_spare_children>1</min_spare_children>
593                     <max_spare_children>5</max_spare_children>
594                 </unix_config>
595             </opensrf.math>
596
597             <opensrf.dbmath> 
598                 <keepalive>3</keepalive>
599                 <stateless>1</stateless>
600                 <language>c</language>
601                 <implementation>osrf_dbmath.so</implementation>
602                 <max_requests>99</max_requests>
603                 <unix_config>
604                     <max_requests>1000</max_requests>
605                     <unix_log>opensrf.dbmath_unix.log</unix_log>
606                     <unix_sock>opensrf.dbmath_unix.sock</unix_sock>
607                     <unix_pid>opensrf.dbmath_unix.pid</unix_pid>
608                     <min_children>1</min_children>
609                     <max_children>15</max_children>
610                     <min_spare_children>1</min_spare_children> 
611                     <max_spare_children>5</max_spare_children>
612                 </unix_config>
613             </opensrf.dbmath>
614
615             <open-ils.penalty>
616                 <keepalive>3</keepalive>
617                 <stateless>1</stateless>
618                 <language>perl</language>
619                 <implementation>OpenILS::Application::Penalty</implementation>
620                 <max_requests>99</max_requests>
621                 <unix_config>
622                     <max_requests>1000</max_requests>
623                     <unix_log>open-ils.penalty_unix.log</unix_log>
624                     <unix_sock>open-ils.penalty_unix.sock</unix_sock>
625                     <unix_pid>open-ils.penalty_unix.pid</unix_pid>
626                     <min_children>1</min_children>
627                     <max_children>15</max_children>
628                     <min_spare_children>1</min_spare_children>
629                     <max_spare_children>5</max_spare_children>
630                 </unix_config>
631                 <app_settings>
632                     <patron_penalty>penalty/patron_penalty.js</patron_penalty>
633                     <script_path>LIBDIR/javascript</script_path>
634                     <script_path>LOCALSTATEDIR</script_path>
635                     <script_path>LOCALSTATEDIR/catalog</script_path>
636                 </app_settings>
637             </open-ils.penalty>
638
639             <open-ils.circ> 
640                 <keepalive>3</keepalive>
641                 <stateless>1</stateless>
642                 <language>perl</language>
643                 <implementation>OpenILS::Application::Circ</implementation>
644                 <max_requests>99</max_requests>
645                 <unix_config>
646                     <max_requests>1000</max_requests>
647                     <unix_log>open-ils.circ_unix.log</unix_log>
648                     <unix_sock>open-ils.circ_unix.sock</unix_sock>
649                     <unix_pid>open-ils.circ_unix.pid</unix_pid>
650                     <min_children>1</min_children>
651                     <max_children>15</max_children>
652                     <min_spare_children>1</min_spare_children> 
653                     <max_spare_children>5</max_spare_children>
654                 </unix_config>
655                 <app_settings>
656                     <notify_hold>
657                         <email>true</email> <!-- set to false to disable hold notice emails -->
658                     </notify_hold>
659
660                     <!-- circulation policy scripts -->
661                     <script_path>LIBDIR/javascript</script_path>
662                     <script_path>LOCALSTATEDIR</script_path>
663                     <script_path>LOCALSTATEDIR/catalog</script_path>
664                     <legacy_script_support>false</legacy_script_support>
665                     <scripts> 
666                         <circ_permit_patron>circ/circ_permit_patron.js</circ_permit_patron>
667                         <circ_permit_copy>circ/circ_permit_copy.js</circ_permit_copy>
668                         <circ_duration>circ/circ_duration.js</circ_duration>
669                         <circ_recurring_fines>circ/circ_recurring_fines.js</circ_recurring_fines>
670                         <circ_max_fines>circ/circ_max_fines.js</circ_max_fines>
671                         <circ_permit_renew>circ/circ_permit_renew.js</circ_permit_renew>
672                         <circ_permit_hold>circ/circ_permit_hold.js</circ_permit_hold>
673                     </scripts>               
674
675                     <circ_modifiers>
676                         <mod>art</mod>
677                         <mod>atlas</mod>
678                         <mod>audiobook</mod>
679                         <mod>av</mod>
680                         <mod>new-av</mod>
681                         <mod>bestseller</mod>
682                         <mod>bestsellernh</mod>
683                         <mod>book</mod>
684                         <mod>cd</mod>
685                         <mod>dvd</mod>
686                         <mod>dvd-long</mod>
687                         <mod>e-book</mod>
688                         <mod>equipment</mod>
689                         <mod>filmstrip</mod>
690                         <mod>kit</mod>
691                         <mod>magazine</mod>
692                         <mod>map</mod>
693                         <mod>microform</mod>
694                         <mod>music</mod>
695                         <mod>record</mod>
696                         <mod>software</mod>
697                         <mod>softwrlong</mod>
698                         <mod>equip-long</mod>
699                         <mod>talking book</mod>
700                         <mod>toy</mod>
701                         <mod>video</mod>
702                         <mod>video-long</mod>
703                     </circ_modifiers>
704
705                     <billing_types>
706                         <type>Miscellaneous</type>
707                         <type>Overdue materials</type>
708                         <type>Fee for placing a hold</type>
709                         <type>Fee for checking out a book</type>
710                         <type>Fee for library card</type>
711                         <type>Miscellaneous charges</type>
712                         <type>Lost materials</type>
713                         <type>Damaged material</type>
714                         <type>Overdue Reserves charge</type>
715                         <type>Recall overdue</type>
716                         <type>Fee for processing lost library materials</type>
717                         <type>Fee for sending patron bills to collection agency</type>
718                         <type>Fee for interlibrary loan</type>
719                         <type>Fee for copies</type>
720                         <type>Money advanced to pay for telephone use</type>
721                         <type>Deposit fee</type>
722                         <type>Fee for disk</type>
723                         <type>Fee for faxing</type>
724                         <type>Fee for laminating</type>
725                         <type>Fee for room cleaning</type>
726                         <type>Deposit returned; fee refund</type>
727                         <type>Sale items</type>
728                         <type>Fee for lost card</type>
729                         <type>Long overdue items</type>
730                         <type>Lost/Replacement Cassette</type>
731                         <type>Returned Check</type>
732                     </billing_types>
733                 </app_settings>
734             </open-ils.circ>
735
736             <open-ils.ingest>
737                 <keepalive>3</keepalive>
738                 <stateless>1</stateless>
739                 <implementation>OpenILS::Application::Ingest</implementation>
740                 <language>perl</language>
741                 <max_requests>1000000</max_requests>
742                 <unix_config>
743                     <max_requests>1000000</max_requests>
744                     <unix_log>open-ils.ingest-unix.log</unix_log>
745                     <unix_sock>open-ils.ingest-unix.sock</unix_sock>
746                     <unix_pid>open-ils.ingest-unix.pid</unix_pid>
747                     <min_children>5</min_children>
748                     <max_children>20</max_children>
749                     <min_spare_children>2</min_spare_children>
750                     <max_spare_children>5</max_spare_children>
751                 </unix_config>
752                 <app_settings>
753                     <script_path>LIBDIR/javascript/</script_path>
754                     <script_path>LOCALSTATEDIR/catalog/</script_path>
755                     <script_path>LOCALSTATEDIR/web/opac/common/js/</script_path>
756                     <scripts>
757                         <biblio_fingerprint>biblio_fingerprint.js</biblio_fingerprint>
758                         <biblio_descriptor>biblio_descriptor.js</biblio_descriptor>
759                     </scripts>
760                 </app_settings>
761             </open-ils.ingest>
762
763             <open-ils.storage>
764                 <keepalive>10</keepalive>
765                 <stateless>1</stateless>
766                 <language>perl</language>
767                 <implementation>OpenILS::Application::Storage</implementation>
768                 <unix_config>
769                     <max_requests>1000</max_requests>
770                     <unix_log>open-ils.storage_unix.log</unix_log>
771                     <unix_sock>open-ils.storage_unix.sock</unix_sock>
772                     <unix_pid>open-ils.storage_unix.pid</unix_pid>
773                     <min_children>1</min_children>
774                     <max_children>10</max_children>
775                     <min_spare_children>1</min_spare_children>
776                     <max_spare_children>5</max_spare_children>
777                 </unix_config>
778                 <app_settings>
779                     <script_path>LIBDIR/javascript/</script_path>
780                     <script_path>LOCALSTATEDIR/catalog/</script_path>
781                     <scripts>
782                         <biblio_fingerprint>biblio_fingerprint.js</biblio_fingerprint>
783                     </scripts>
784                     <databases>
785                         <driver>Pg</driver>
786                         <database>
787                             <type>master</type>
788                             <weight>2</weight>
789                             <user>postgres</user>
790                             <host>localhost</host>
791                             <port>5432</port>
792                             <pw>postgres</pw>
793                             <db>evergreen</db>
794                             <client_encoding>UTF-8</client_encoding>
795                         </database>
796                     </databases>
797                 </app_settings>
798             </open-ils.storage>
799
800
801             <open-ils.cstore>
802                 <keepalive>6</keepalive>
803                 <stateless>1</stateless>
804                 <language>C</language>
805                 <implementation>oils_cstore.so</implementation>
806                 <max_requests>200</max_requests>
807                 <unix_config>
808                     <max_requests>1000</max_requests>
809                     <min_children>1</min_children>
810                     <max_children>15</max_children>
811                     <min_spare_children>1</min_spare_children>
812                     <max_spare_children>5</max_spare_children>
813                 </unix_config>
814                 <app_settings>
815                     <max_query_recursion>100</max_query_recursion>
816                     <driver>pgsql</driver>
817                     <database>
818                         <type>master</type>
819                         <weight>2</weight>
820                         <user>postgres</user>
821                         <host>localhost</host>
822                         <port>5432</port>
823                         <pw>postgres</pw>
824                         <db>evergreen</db>
825                         <client_encoding>UTF-8</client_encoding>
826                     </database>
827                 </app_settings>
828             </open-ils.cstore>
829
830
831             <open-ils.pcrud>
832                 <keepalive>6</keepalive>
833                 <migratable>1</migratable>
834                 <stateless>1</stateless>
835                 <language>C</language>
836                 <implementation>oils_pcrud.so</implementation>
837                 <max_requests>200</max_requests>
838
839                 <unix_config>
840                     <unix_log>open-ils.pcrud.log</unix_log>
841                     <unix_sock>open-ils.pcrud.sock</unix_sock>
842                     <unix_pid>open-ils.pcrud.pid</unix_pid>
843                     <max_requests>1000</max_requests>
844                     <min_children>1</min_children>
845                     <max_children>15</max_children>
846                     <min_spare_children>1</min_spare_children>
847                     <max_spare_children>5</max_spare_children>
848                 </unix_config>
849
850                 <app_settings>
851                     <IDL>SYSCONFDIR/fm_IDL.xml</IDL>
852                     <driver>pgsql</driver>
853                     <database>
854                         <type>master</type>
855                         <weight>2</weight>
856                         <user>postgres</user>
857                         <host>localhost</host>
858                         <port>5432</port>
859                         <pw>postgres</pw>
860                         <db>evergreen</db>
861                         <client_encoding>UTF-8</client_encoding>
862                     </database>
863                 </app_settings>
864             </open-ils.pcrud>
865
866
867             <opensrf.settings>
868                 <keepalive>1</keepalive>
869                 <stateless>1</stateless>
870                 <language>perl</language>
871                 <implementation>OpenSRF::Application::Settings</implementation>
872                 <max_requests>17</max_requests>
873                 <unix_config>
874                     <unix_sock>opensrf.settings_unix.sock</unix_sock>
875                     <unix_pid>opensrf.settings_unix.pid</unix_pid>
876                     <max_requests>300</max_requests>
877                     <unix_log>opensrf.settings_unix.log</unix_log>
878                     <min_children>5</min_children>
879                     <max_children>15</max_children>
880                     <min_spare_children>3</min_spare_children>
881                     <max_spare_children>5</max_spare_children>
882                 </unix_config>
883             </opensrf.settings>
884
885             <open-ils.collections>
886                 <keepalive>3</keepalive>
887                 <stateless>1</stateless>
888                 <language>perl</language>
889                 <implementation>OpenILS::Application::Collections</implementation>
890                 <max_requests>17</max_requests>
891                 <unix_config>
892                     <unix_sock>open-ils.collections_unix.sock</unix_sock>
893                     <unix_pid>open-ils.collections_unix.pid</unix_pid>
894                     <max_requests>1000</max_requests>
895                     <unix_log>open-ils.collections_unix.log</unix_log>
896                     <min_children>1</min_children>
897                     <max_children>10</max_children>
898                     <min_spare_children>1</min_spare_children>
899                     <max_spare_children>5</max_spare_children>
900                 </unix_config>
901             </open-ils.collections>
902
903             <open-ils.reporter>
904                 <keepalive>3</keepalive>
905                 <stateless>1</stateless>
906                 <language>perl</language>
907                 <implementation>OpenILS::Application::Reporter</implementation>
908                 <max_requests>99</max_requests>
909                 <unix_config>
910                     <unix_sock>open-ils.reporter_unix.sock</unix_sock>
911                     <unix_pid>open-ils.reporter_unix.pid</unix_pid>
912                     <max_requests>1000</max_requests>
913                     <unix_log>open-ils.reporter_unix.log</unix_log>
914                     <min_children>1</min_children>
915                     <max_children>10</max_children>
916                     <min_spare_children>1</min_spare_children>
917                     <max_spare_children>5</max_spare_children>
918                 </unix_config>
919             </open-ils.reporter>
920
921
922             <open-ils.reporter-store>
923                 <keepalive>6</keepalive>
924                 <stateless>1</stateless>
925                 <language>C</language>
926                 <implementation>oils_rstore.so</implementation>
927                 <max_requests>95</max_requests>
928                 <unix_config>
929                     <max_requests>400</max_requests>
930                     <min_children>1</min_children>
931                     <max_children>10</max_children>
932                     <min_spare_children>1</min_spare_children>
933                     <max_spare_children>5</max_spare_children>
934                 </unix_config>
935                 <app_settings>
936                     <driver>pgsql</driver>
937                     <database>
938                         <type>master</type>
939                         <weight>2</weight>
940                         <user>postgres</user>
941                         <host>localhost</host>
942                         <port>5432</port>
943                         <pw>postgres</pw>
944                         <db>evergreen</db>
945                         <client_encoding>UTF-8</client_encoding>
946                     </database>
947                 </app_settings>
948             </open-ils.reporter-store>
949
950             <open-ils.permacrud>
951                <keepalive>3</keepalive>
952                <stateless>1</stateless>
953                <language>perl</language>
954                <implementation>OpenILS::Application::PermaCrud</implementation>
955                <max_requests>17</max_requests>
956                <unix_config>
957                   <unix_sock>open-ils.permacrud_unix.sock</unix_sock>
958                   <unix_pid>open-ils.permacrud_unix.pid</unix_pid>
959                   <max_requests>1000</max_requests>
960                   <unix_log>open-ils.permacrud_unix.log</unix_log>
961                   <min_children>5</min_children>
962                   <max_children>15</max_children>
963                   <min_spare_children>3</min_spare_children>
964                   <max_spare_children>5</max_spare_children>
965                </unix_config>
966             </open-ils.permacrud>
967
968             <open-ils.fielder>
969                <keepalive>3</keepalive>
970                <stateless>1</stateless>
971                <language>perl</language>
972                <implementation>OpenILS::Application::Fielder</implementation>
973                <max_requests>17</max_requests>
974                <unix_config>
975                   <unix_sock>open-ils.fielder_unix.sock</unix_sock>
976                   <unix_pid>open-ils.fielder_unix.pid</unix_pid>
977                   <max_requests>1000</max_requests>
978                   <unix_log>open-ils.fielder_unix.log</unix_log>
979                   <min_children>5</min_children>
980                   <max_children>15</max_children>
981                   <min_spare_children>3</min_spare_children>
982                   <max_spare_children>5</max_spare_children>
983                </unix_config>
984             </open-ils.fielder>
985
986             <open-ils.vandelay>
987                 <keepalive>5</keepalive>
988                 <stateless>1</stateless>
989                 <language>perl</language>
990                 <implementation>OpenILS::Application::Vandelay</implementation>
991                 <max_requests>100</max_requests>
992                 <unix_config>
993                     <unix_sock>vandelay_unix.sock</unix_sock>
994                     <unix_pid>vandelay_unix.pid</unix_pid>
995                     <unix_log>vandelay_unix.log</unix_log>
996                     <max_requests>100</max_requests>
997                     <min_children>1</min_children>
998                     <max_children>15</max_children>
999                     <min_spare_children>1</min_spare_children>
1000                     <max_spare_children>5</max_spare_children>
1001                 </unix_config>
1002                 <app_settings>
1003                     <databases>
1004                         <!-- temporary location for MARC import files.  
1005                             Files will be deleted after records are spooled.
1006                             *note:  in a multi-brick environment, this will need to
1007                             be on a write-able NFS share.  -->
1008                         <importer>/tmp</importer>
1009                     </databases>
1010                 </app_settings>
1011             </open-ils.vandelay>
1012
1013         </apps>
1014     </default>
1015
1016     <hosts>
1017
1018         <localhost> 
1019             <!-- ^-=- 
1020             Should match the fully qualified domain name of the host.
1021
1022             On Linux, the output of the following command is authoritative:
1023             $ perl -MNet::Domain -e 'print Net::Domain::hostfqdn() . "\n";'
1024
1025             To use 'localhost' instead, run osrf_ctl.sh with the -l flag
1026             -->
1027
1028             <activeapps>
1029                 <!-- services hosted on this machine -->
1030                 <appname>opensrf.settings</appname> 
1031                 <appname>opensrf.math</appname> 
1032                 <appname>opensrf.dbmath</appname> 
1033                 <appname>open-ils.acq</appname> 
1034                 <appname>open-ils.booking</appname>
1035                 <appname>open-ils.cat</appname> 
1036                 <appname>open-ils.supercat</appname> 
1037                 <appname>open-ils.search</appname> 
1038                 <appname>open-ils.circ</appname> 
1039                 <appname>open-ils.actor</appname> 
1040                 <appname>open-ils.auth</appname> 
1041                 <appname>open-ils.storage</appname>  
1042                 <appname>open-ils.penalty</appname>  
1043                 <appname>open-ils.cstore</appname>  
1044                 <appname>open-ils.collections</appname>  
1045                 <appname>open-ils.ingest</appname>  
1046                 <appname>open-ils.reporter</appname>  
1047                 <appname>open-ils.reporter-store</appname>  
1048                 <appname>open-ils.permacrud</appname>  
1049                 <appname>open-ils.pcrud</appname>  
1050                 <appname>open-ils.trigger</appname>  
1051                 <appname>open-ils.fielder</appname>  
1052                 <appname>open-ils.vandelay</appname>  
1053             </activeapps>
1054         </localhost>
1055     </hosts>
1056
1057 </opensrf>