These are deprecated. Removing.
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 22 Aug 2008 20:32:15 +0000 (20:32 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 22 Aug 2008 20:32:15 +0000 (20:32 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10413 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/circ_rules/calculate_duration.rules [deleted file]
Evergreen/circ_rules/calculate_max_fines.rules [deleted file]
Evergreen/circ_rules/calculate_recurring_fines.rules [deleted file]
Evergreen/circ_rules/circ_main.rules [deleted file]
Evergreen/circ_rules/dr_script.ttk [deleted file]
Evergreen/circ_rules/permit_circ.rules [deleted file]
Evergreen/circ_rules/permit_hold.rules [deleted file]

diff --git a/Evergreen/circ_rules/calculate_duration.rules b/Evergreen/circ_rules/calculate_duration.rules
deleted file mode 100644 (file)
index 9049765..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-[%
-       
-       rule                            = "2wk_default";
-       loan_duration   = copy.loan_duration;
-
-
-
-
-
-       # ------------------------------------------------------------------
-       # Default policy
-       # ------------------------------------------------------------------
-       ret(rule, loan_duration); 
-
-%]
diff --git a/Evergreen/circ_rules/calculate_max_fines.rules b/Evergreen/circ_rules/calculate_max_fines.rules
deleted file mode 100644 (file)
index 08d51db..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-[%
-
-# ------------------------------------------------------------------
-# Default policy
-# ------------------------------------------------------------------
-ret('books', NORMAL); 
-
-
-%]
diff --git a/Evergreen/circ_rules/calculate_recurring_fines.rules b/Evergreen/circ_rules/calculate_recurring_fines.rules
deleted file mode 100644 (file)
index 14581a5..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-[%
-
-# ------------------------------------------------------------------
-# Default policy
-# ------------------------------------------------------------------
-ret('books', NORMAL); 
-
-
-
-%]
diff --git a/Evergreen/circ_rules/circ_main.rules b/Evergreen/circ_rules/circ_main.rules
deleted file mode 100644 (file)
index b540358..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-[%
-
-
-       # ------------------------------------------------------------------
-       # Macros for simpler syntax
-       # ------------------------------------------------------------------
-       MACRO jump(n)           PROCESS "$n";
-
-       MACRO ret(status,text) PROCESS ret_block s=status t=text;
-
-       BLOCK ret_block;
-               result.0 = s;
-               result.1 = t;
-               "Template Result: "; result.0; " "; result.1; 
-               STOP;
-       END;
-
-
-       # ------------------------------------------------------------------
-       # These are passed in to every script
-       # ------------------------------------------------------------------
-       #       Objects         : Methods  
-       # -------------------
-       #       patron          :
-       #       copy                    : 
-       #       circlib         : 
-       #       standings       : 
-       #       title                   :
-       # ------------------------------------------------------------------
-
-       # ------------------------------------------------------------------
-       # Constants
-       # ------------------------------------------------------------------
-       OK                                                              = 0;
-       COPY_ISREF                                      = 2;
-       COPY_NOCIRC                                     = 3;
-       COPY_UNAVAIL                            = 4;
-       COPY_LOCATION                           = 5;
-       NOT_HOLD_USER                           = 6; 
-       NO_COPY                                         = 100; # used by container code
-
-
-       PATRON_STANDING                 = 10;
-       PATRON_FINE                                     = 11;
-       PATRON_CHECKOUT_COUNT   = 12;
-
-       LOW                                                     = 1;
-       NORMAL                                          = 2;
-       HIGH                                                    = 3;
-
-       SHORT                                                   = 1;
-       NORMAL                                          = 2; 
-       EXTENDED                                                = 3;
-
-
-
-       # ------------------------------------------------------------------
-       # Run the rules files
-       # ------------------------------------------------------------------
-       PROCESS "$run_block"
-               patron                  = circ_objects.patron 
-               copy                            = circ_objects.copy
-               circlib                 = circ_objects.copy.circ_lib() 
-               title                           = circ_objects.title
-               standings               = circ_objects.standings
-               patron_copies   = circ_objects.patron_copies
-               patron_fines    = circ_objects.patron_fines;
-
-%]
-
-
diff --git a/Evergreen/circ_rules/dr_script.ttk b/Evergreen/circ_rules/dr_script.ttk
deleted file mode 100644 (file)
index b388460..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-[%
-
-# ------------------------------------------------------------------
-# Circ Matrix
-#
-# Objects:
-#      patron
-#      copy
-#              loan_duration
-#      circlib
-#              shortname
-#
-# Constants:
-#      copy_types.*
-#      
-# ------------------------------------------------------------------
-
-# ------------------------------------------------------------------
-# Macros for simpler syntax
-
-MACRO jump(n) PROCESS $n;
-MACRO policy(p)  PROCESS policy_block val=p;
-BLOCK policy_block; val; STOP; END; 
-
-# ------------------------------------------------------------------
-
-
-
-IF circlib.shortname == 'ARL-ATH'; jump('ARL_ATH'); END;
-policy('pines_global_duration_policy_default'); 
-
-
-BLOCK ARL_ATH;
-       IF copy.type == copy_types.book AND copy.loan_duration == 1; policy('my_ath_policy'); END;
-       IF copy.type == copy_types.audio AND copy.loan_duration == 2; policy('my_other_ath_policy'); END;
-END;
-       
-
-BLOCK BTRL;
-       IF copy.type == copy_types.dvd; policy('my_btrl_audio_policy'); END;
-END;
-
-
-
-%]
diff --git a/Evergreen/circ_rules/permit_circ.rules b/Evergreen/circ_rules/permit_circ.rules
deleted file mode 100644 (file)
index c929bf3..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-[%
-
-# ------------------------------------------------------------------
-# Permissibility script.  
-# ------------------------------------------------------------------
-
-
-
-# ------------------------------------------------------------------
-# Patron checks
-# ------------------------------------------------------------------
-
-IF patron.standing != "Good";
-       ret(PATRON_STANDING, "Patron not in good standing: ${patron.standing}"); END;
-
-IF patron.profile == "Staff" && patron_copies > 50;
-       ret(PATRON_CHECKOUT_COUNT, "Patron checkout count exceeds limit"); END; 
-
-IF patron.profile == "Patrons" && patron_copies > 10;
-       ret(PATRON_CHECKOUT_COUNT, "Patron checkout count exceeds limit"); END; 
-
-IF patron.profile == "Users" && patron_copies > 5;
-       ret(PATRON_CHECKOUT_COUNT, "Patron checkout count exceeds limit"); END; 
-
-
-# ------------------------------------------------------------------
-# Copy checks
-# ------------------------------------------------------------------
-
-IF ! copy.circulate;   
-       ret(COPY_NOCIRC, "Copy is not allowed to circulate"); END; 
-
-IF copy.status != "Available" && copy.status != "On holds shelf";
-       ret(COPY_UNAVAIL, "Copy is unavailable: ${copy.status}"); END;
-
-IF !copy.location.circulate;           
-       ret(COPY_LOCATION, "Copy location not allowed to curculate"); END;
-
-IF copy.ref; 
-       ret(COPY_ISREF, "Copy is reference material"); END;
-
-
-
-
-ret(OK,"Allowed");
-
-%]
diff --git a/Evergreen/circ_rules/permit_hold.rules b/Evergreen/circ_rules/permit_hold.rules
deleted file mode 100644 (file)
index ccb5e46..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-[%
-
-# ------------------------------------------------------------------
-# Permissibility script.  
-# ------------------------------------------------------------------
-
-
-
-# ------------------------------------------------------------------
-# Patron checks
-# ------------------------------------------------------------------
-
-IF patron.standing != "Good";
-       ret(PATRON_STANDING, "Patron not in good standing: ${patron.standing}"); END;
-
-IF patron.profile == "STAFF" && patron_copies > 50;
-       ret(PATRON_CHECKOUT_COUNT, "Patron checkout count exceeds limit"); END; 
-
-IF patron.profile == "ADULT" && patron_copies > 10;
-       ret(PATRON_CHECKOUT_COUNT, "Patron checkout count exceeds limit"); END; 
-
-IF patron.profile == "JUVENILE" && patron_copies > 5;
-       ret(PATRON_CHECKOUT_COUNT, "Patron checkout count exceeds limit"); END; 
-
-
-# ------------------------------------------------------------------
-# Copy checks
-# ------------------------------------------------------------------
-
-IF ! copy.circulate;   
-       ret(COPY_NOCIRC, "Copy is not allowed to circulate"); END; 
-
-IF !copy.location.circulate;           
-       ret(COPY_LOCATION, "Copy location not allowed to curculate"); END;
-
-IF copy.ref; 
-       ret(COPY_ISREF, "Copy is reference material"); END;
-
-
-
-
-ret(OK,"Allowed");
-
-%]