+++ /dev/null
-[%-
- # ------------------------------------------------------------------
- # return macro... ignore me.
- # ------------------------------------------------------------------
- MACRO ret(str) PROCESS ret_block s=str;
- BLOCK ret_block;
- s;
- STOP;
- END;
- # ------------------------------------------------------------------
--%]
-
-
-
-
-[%-
- # ------------------------------------------------------------------
- # RULES
- # ------------------------------------------------------------------
-
- IF type == ex_types.SEARCH_TOO_LARGE;
- ret("Search term is too broad, please narrow your search"); END;
-
- IF type == ex_types.UNKNOWN_BARCODE;
- ret("Barcode does not exist in the database"); END;
-
- IF type == ex_types.DUPLICATE_INVALID_USER_BARCODE;
- ret("Barcode is a duplicate or is not valid"); END;
-
- IF type == ex_types.DUPLICATE_USER_USERNAME;
- ret("Username is a duplicate"); END;
-
- IF type == ex_types.USER_WRONG_PASSWORD;
- ret("Password is incorrect"); END;
-
- IF type == ex_types.UNKNOWN_USER;
- ret("User is not recognized"); END;
-
- IF type == ex_types.MAX_RENEWALS_REACHED;
- ret("The maximun number of renewals has been reached"); END;
-
- IF type == ex_types.COPY_NEEDED_FOR_HOLD;
- ret("Copy is needed to fulfill a hold"); END;
-
- IF type == ex_types.NO_HOLD_FOUND;
- ret("The requested hold could not be found"); END;
-
- IF type == ex_types.NO_TRANSACTION_FOUND;
- ret("The requested transaction could not be found"); END;
-
- ret("Unknown exception occured");
-
--%]
+++ /dev/null
-[%-
- # ------------------------------------------------------------------
- # return macro...
- # ------------------------------------------------------------------
- MACRO ret(str) PROCESS ret_block s=str;
- BLOCK ret_block; "Permission Denied: " _ s; STOP; END;
- # ------------------------------------------------------------------
--%]
-
-[%
-
- perm_map = {};
- perm_map.EDIT_MARC = "MARC Editing";
- perm_map.OPAC_LOGIN = "OPAC Login";
- perm_map.STAFF_LOGIN = "STAFF Login";
- perm_map.COPY_HOLDS = "Copy level holds";
- perm_map.VOLUME_HOLDS = "Volume level holds";
- perm_map.TITLE_HOLDS = "Title level holds";
- perm_map.MR_HOLDS = "Metarecord/Title Group level holds";
- perm_map.REQUEST_HOLDS = "Requesting a hold for another user";
- perm_map.REQUEST_HOLDS_OVERRIDE = "Requesting a dissallowed hold for another user";
- perm_map.RENEW_HOLD_OVERRIDE = "Requesting renew for copy needed for hold";
- perm_map.CREATE_VOLUME = "Creating a new volume";
-
-
- ret(perm_map.$type);
-
-%]
-