[% # ------------------------------------------------------------------ # 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; %]