]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/javascript/backend/circ/circ_duration.js
adding and updating circ scripts as the code evolves
[Evergreen.git] / Open-ILS / src / javascript / backend / circ / circ_duration.js
1
2 function go() {
3
4 /* load the lib script */
5 load_lib('circ_lib.js');
6
7 /* collect some useful variables */
8 var copy                                        = environment.copy;
9 var patron                              = environment.patron;
10 var patronStanding      = patron.standing.value.toLowerCase();
11 var patronProfile               = patron.profile.name.toLowerCase();
12 var copyStatus                  = copy.status.name.toLowerCase();
13 var patronItemsOut      = environment.patronItemsOut;
14 var patronFines         = environment.patronFines;
15 var isRenewal                   = environment.isRenewal;
16
17
18 /* set sane defaults */
19 result.durationLevel    = copy.loan_duration;
20 result.durationRule     = "2wk_default";
21
22
23
24
25
26 return;
27
28
29 } go();