From 7a91ac8dbacf7a9f723f6488a3e98229196ca050 Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 22 Aug 2008 20:32:15 +0000 Subject: [PATCH] These are deprecated. Removing. git-svn-id: svn://svn.open-ils.org/ILS/trunk@10413 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Evergreen/circ_rules/calculate_duration.rules | 15 ---- .../circ_rules/calculate_max_fines.rules | 9 --- .../calculate_recurring_fines.rules | 10 --- Evergreen/circ_rules/circ_main.rules | 71 ------------------- Evergreen/circ_rules/dr_script.ttk | 45 ------------ Evergreen/circ_rules/permit_circ.rules | 47 ------------ Evergreen/circ_rules/permit_hold.rules | 44 ------------ 7 files changed, 241 deletions(-) delete mode 100644 Evergreen/circ_rules/calculate_duration.rules delete mode 100644 Evergreen/circ_rules/calculate_max_fines.rules delete mode 100644 Evergreen/circ_rules/calculate_recurring_fines.rules delete mode 100644 Evergreen/circ_rules/circ_main.rules delete mode 100644 Evergreen/circ_rules/dr_script.ttk delete mode 100644 Evergreen/circ_rules/permit_circ.rules delete mode 100644 Evergreen/circ_rules/permit_hold.rules diff --git a/Evergreen/circ_rules/calculate_duration.rules b/Evergreen/circ_rules/calculate_duration.rules deleted file mode 100644 index 9049765804..0000000000 --- a/Evergreen/circ_rules/calculate_duration.rules +++ /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 index 08d51db0cc..0000000000 --- a/Evergreen/circ_rules/calculate_max_fines.rules +++ /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 index 14581a57a4..0000000000 --- a/Evergreen/circ_rules/calculate_recurring_fines.rules +++ /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 index b5403585eb..0000000000 --- a/Evergreen/circ_rules/circ_main.rules +++ /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 index b388460afa..0000000000 --- a/Evergreen/circ_rules/dr_script.ttk +++ /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 index c929bf30d5..0000000000 --- a/Evergreen/circ_rules/permit_circ.rules +++ /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 index ccb5e46f41..0000000000 --- a/Evergreen/circ_rules/permit_hold.rules +++ /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"); - -%] -- 2.43.2