[open-ils-commits] r10286 - trunk/Open-ILS/examples

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Aug 6 22:34:58 EDT 2008


Author: erickson
Date: 2008-08-06 22:34:51 -0400 (Wed, 06 Aug 2008)
New Revision: 10286

Modified:
   trunk/Open-ILS/examples/opensrf.xml.example
Log:
added example config for over/pre due notices

Modified: trunk/Open-ILS/examples/opensrf.xml.example
===================================================================
--- trunk/Open-ILS/examples/opensrf.xml.example	2008-08-07 02:30:47 UTC (rev 10285)
+++ trunk/Open-ILS/examples/opensrf.xml.example	2008-08-07 02:34:51 UTC (rev 10286)
@@ -32,7 +32,7 @@
 
         <ils_events>/openils/var/data/ils_events.xml</ils_events> <!-- ILS events description file -->
 
-        <email_notify>
+        <email_notify> <!-- this will eventually move into the notifications section below... -->
             <!-- global email notification settings -->
             <template>/openils/var/data/hold_notification_template.example</template>
             <smtp_server>localhost</smtp_server>
@@ -45,6 +45,51 @@
         </email_notify>
 
 
+      <notifications>
+        <!-- global mail server settings -->
+        <smtp_server>localhost</smtp_server>
+        <sender_address>evergreen at localhost</sender_address>
+
+        <!-- Overdue notices -->
+        <overdue>
+
+            <!-- optionally, you can define a sender address per notice type -->
+            <sender_address>overdue at localhost</sender_address>
+
+            <!-- The system can generate an XML file of overdue notices.  This is the
+                directory where they are stored.  Files are named overdue.YYYY-MM-DD.xml -->
+            <notice_dir>/openils/var/data/overdue</notice_dir>
+
+            <notice>
+                <!-- Notify at 7 days overdue -->
+                <notify_interval>7 days</notify_interval>
+                <!-- Options include always, noemail, and never.  'noemail' means a notice
+                     will be appended to the notice file only if the patron has no valid email address.  -->
+                <file_append>noemail</file_append>
+                <!-- do we attempt email notification? -->
+                <email_notify>true</email_notify>
+                <!-- notice template file -->
+                <template>/openils/var/data/templates/overdue_7day.example</template>
+            </notice>
+        </overdue>
+
+        <!-- Courtesy notices -->
+        <predue>
+            <notice>
+                <!-- All circulations that circulate between 5 and 13 days -->
+                <circ_duration_range>
+                    <from>5 days</from>
+                    <to>13 days</to>
+                </circ_duration_range>
+                <!-- notify at 1 day before the due date -->
+                <notify_interval>1 day</notify_interval>
+                <file_append>false</file_append>
+                <email_notify>true</email_notify>
+                <template>/openils/var/data/templates/predue_1day.example</template>
+            </notice>
+        </predue>
+      </notifications>
+
         <reporter>
             <!--
             Settings for the reporter daemon process 



More information about the open-ils-commits mailing list