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