circulation template scripts
[Evergreen.git] / Evergreen / circ_rules / circ_main.rules
index 64438be..d2cf9fe 100644 (file)
@@ -5,8 +5,8 @@
        # Macros for simpler syntax
        # ------------------------------------------------------------------
        MACRO jump(n)           PROCESS "$n";
-       MACRO policy(p) PROCESS policy_block val=p;
-       BLOCK policy_block; val; STOP; END; 
+#      MACRO policy(p) PROCESS policy_block val=p;
+#      BLOCK policy_block; val; STOP; END; 
 
        MACRO ret(status,text) PROCESS ret_block s=status t=text;
 
@@ -18,7 +18,6 @@
        END;
 
 
-
        # ------------------------------------------------------------------
        # These are passed in to every script
        # ------------------------------------------------------------------
        # ------------------------------------------------------------------
        # Constants
        # ------------------------------------------------------------------
-       OK                                                      = 0;
-       COPY_ISREF                              = 2;
-       COPY_NOCIRC                             = 3;
-       COPY_UNAVAIL                    = 4;
-       COPY_LOCATION                   = 5;
+       OK                                                              = 0;
+       COPY_ISREF                                      = 2;
+       COPY_NOCIRC                                     = 3;
+       COPY_UNAVAIL                            = 4;
+       COPY_LOCATION                           = 5;
+
+       PATRON_STANDING                 = 10;
+       PATRON_FINE                                     = 11;
+       PATRON_CHECKOUT_COUNT   = 12;
 
-       PATRON_STANDING         = 10;
-       PATRON_FINE                             = 11;
-       PATRON_CHARGE_COUNT     = 12;
+       LOW                                                     = 1;
+       NORMAL                                          = 2;
+       HIGH                                                    = 3;
+
+       SHORT                                                   = 1;
+       NORMAL                                          = 2; 
+       EXTENDED                                                = 3;
 
 
 
@@ -55,7 +62,8 @@
                circlib                 = circ_objects.copy.circlib() 
                title                           = circ_objects.title
                standings               = circ_objects.standings;
-
+               patron_copies   = circ_objects.patron_copies;
+               patron_fines    = circ_objects.patron_fines;
 
 %]