]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/strings/ex.ttk
added first part of myopac, minor changes
[working/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         IF type == ex_types.USER_WRONG_PASSWORD;
34                 ret("Password is incorrect");   END;
35
36         IF type == ex_types.UNKNOWN_USER;
37                 ret("User is not recognized"); END;
38
39         IF type == ex_types.MAX_RENEWALS_REACHED;
40                 ret("The maximun number of renewals has been reached"); END;
41
42         IF type == ex_types.COPY_NEEDED_FOR_HOLD;
43                 ret("Copy is needed to fulfill a hold"); END;
44
45         IF type == ex_types.NO_HOLD_FOUND;
46                 ret("The requested hold could not be found"); END;
47
48         IF type == ex_types.NO_TRANSACTION_FOUND;
49                 ret("The requested transaction could not be found"); END;
50
51         ret("Unknown exception occured");
52
53 -%]