squashing bugs
[Evergreen.git] / Open-ILS / src / templates / strings / ex.ttk
1 [%-
2         # ------------------------------------------------------------------    
3         # return macro... ignore me.
4         # ------------------------------------------------------------------
5         MACRO ret(str) PROCESS ret_block s=str;
6         BLOCK ret_block;
7                 s;
8                 STOP;
9         END;
10         # ------------------------------------------------------------------
11 -%]
12
13
14
15
16 [%-
17         # ------------------------------------------------------------------    
18         # RULES
19         # ------------------------------------------------------------------
20
21         IF type == ex_types.SEARCH_TOO_LARGE;
22                 ret("Search term is too broad, please narrow your search");     END;
23
24         IF type == ex_types.UNKNOWN_BARCODE;
25                 ret("Barcode does not exist in the database");  END;
26
27         IF type == ex_types.DUPLICATE_INVALID_USER_BARCODE;
28                 ret("Barcode is a duplicate or is not valid");  END;
29
30         IF type == ex_types.DUPLICATE_USER_USERNAME;
31                 ret("Username is a duplicate"); END;
32
33 -%]