[open-ils-commits] r483 - conifer/trunk/circ (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri May 15 12:27:45 EDT 2009
Author: dbs
Date: 2009-05-15 12:27:43 -0400 (Fri, 15 May 2009)
New Revision: 483
Modified:
conifer/trunk/circ/circ_duration_OWA.js
conifer/trunk/circ/circ_duration_OWAL.js
conifer/trunk/circ/circ_groups.js
Log:
Update SVN to match current production rules
Modified: conifer/trunk/circ/circ_duration_OWA.js
===================================================================
--- conifer/trunk/circ/circ_duration_OWA.js 2009-05-15 13:55:11 UTC (rev 482)
+++ conifer/trunk/circ/circ_duration_OWA.js 2009-05-15 16:27:43 UTC (rev 483)
@@ -253,7 +253,132 @@
break;
}
break;
-
+
+ case 'Staff members':
+ switch(copy.circ_modifier) {
+ case 'CD MUSIC':
+ result.durationRule = '3_days_1_renew';
+ break;
+ case 'CIRC':
+ result.durationRule = '28_days_3_renew';
+ break;
+ case 'CIRC SHORT':
+ result.durationRule = '3_days_1_renew';
+ result.recurringFinesRule = '10_dollars_per_day';
+ result.maxFine = '50_dollars';
+ break;
+ case 'CRC MEDIA':
+ result.durationRule = '7_days_3_renew';
+ break;
+ case 'CRC SPEC':
+ result.durationRule = '28_days_3_renew';
+ break;
+ case 'CRC TEXT':
+ result.durationRule = '28_days_3_renew';
+ break;
+ case 'DNON':
+ // use defaults
+ break;
+ case 'DOC':
+ result.durationRule = '28_days_3_renew';
+ break;
+ case 'DVD VIDEO':
+ result.durationRule = '3_days_1_renew';
+ break;
+
+ /* settings for law item types are those applicable to LAW FACLTY
+ and will need to be changed as soon as a conifer Law Faculty patron
+ group can be created */
+
+ case 'LAW MONO':
+ result.durationRule = '28_days_5_renew';
+ result.recurringFinesRule = 'free';
+ result.maxFine = 0;
+ break;
+ case 'LAW NOCIRC':
+ result.durationRule = '14_days_5_renew';
+ result.recurringFinesRule = 'free';
+ result.maxFine = 0;
+ break;
+ case 'LAW RES1D':
+ result.durationRule = '2_days_20_renew';
+ result.recurringFinesRule = 'free';
+ result.maxFine = 0;
+ break;
+ case 'LAW RES3D':
+ result.durationRule = '3_days_20_renew';
+ result.recurringFinesRule = 'free';
+ result.maxFine = 0;
+ break;
+ case 'LAW RES3H':
+ result.durationRule = '2_days_20_renew';
+ result.recurringFinesRule = 'free';
+ result.maxFine = 0;
+ break;
+ case 'LAW RES5H':
+ result.durationRule = '2_days_20_renew';
+ result.recurringFinesRule = 'free';
+ result.maxFine = 0;
+ break;
+ case 'LAW SERIAL':
+ result.durationRule = '14_days_5_renew';
+ result.recurringFinesRule = 'free';
+ result.maxFine = 0;
+ break;
+ case 'MAP':
+ // use defaults
+ break;
+ case 'MAP (CIRCULATING)':
+ result.durationRule = '28_days_3_renew';
+ break;
+ case 'MAP (REFERENCE)':
+ // use defaults
+ break;
+ case 'MEDIA':
+ result.durationRule = '28_days_3_renew';
+ break;
+ case 'MFORM':
+ result.durationRule = '28_days_3_renew';
+ break;
+ case 'MFORM REF':
+ // use defaults
+ break;
+ case 'MFORM SER':
+ // use defaults
+ break;
+ case 'REF':
+ result.durationRule = '7_days_3_renew';
+ break;
+ case 'RSV1':
+ result.durationRule = '1_day_1_renew';
+ result.recurringFinesRule = '10_dollars_per_day';
+ result.maxFine = '50_dollars';
+ break;
+ case 'RSV2':
+ result.durationRule = '120_minutes_0_renew';
+ result.recurringFinesRule = '5_cents_per_minute';
+ result.maxFine = '50_dollars';
+ break;
+ case 'RSV3':
+ result.durationRule = '3_days_1_renew';
+ result.recurringFinesRule = '10_dollars_per_day';
+ result.maxFine = '50_dollars';
+ break;
+ case 'RSV7':
+ result.durationRule = '7_days_1_renew';
+ result.recurringFinesRule = '10_dollars_per_day';
+ result.maxFine = '50_dollars';
+ break;
+ case 'SER':
+ result.durationRule = '1_day_1_renew';
+ result.recurringFinesRule = '2_dollars_per_day';
+ break;
+ case 'THESIS':
+ result.durationRule = '28_days_3_renew';
+ break;
+ }
+ break;
+
case 'Graduate':
switch(copy.circ_modifier) {
case 'CD MUSIC':
Modified: conifer/trunk/circ/circ_duration_OWAL.js
===================================================================
--- conifer/trunk/circ/circ_duration_OWAL.js 2009-05-15 13:55:11 UTC (rev 482)
+++ conifer/trunk/circ/circ_duration_OWAL.js 2009-05-15 16:27:43 UTC (rev 483)
@@ -253,7 +253,132 @@
break;
}
break;
-
+
+ case 'Staff members':
+ switch(copy.circ_modifier) {
+ case 'CD MUSIC':
+ result.durationRule = '3_days_1_renew';
+ break;
+ case 'CIRC':
+ result.durationRule = '28_days_3_renew';
+ break;
+ case 'CIRC SHORT':
+ result.durationRule = '3_days_1_renew';
+ result.recurringFinesRule = '10_dollars_per_day';
+ result.maxFine = '50_dollars';
+ break;
+ case 'CRC MEDIA':
+ result.durationRule = '7_days_3_renew';
+ break;
+ case 'CRC SPEC':
+ result.durationRule = '28_days_3_renew';
+ break;
+ case 'CRC TEXT':
+ result.durationRule = '28_days_3_renew';
+ break;
+ case 'DNON':
+ // use defaults
+ break;
+ case 'DOC':
+ result.durationRule = '28_days_3_renew';
+ break;
+ case 'DVD VIDEO':
+ result.durationRule = '3_days_1_renew';
+ break;
+
+ /* settings for law item types are those applicable to LAW FACLTY
+ and will need to be changed as soon as a conifer Law Faculty patron
+ group can be created */
+
+ case 'LAW MONO':
+ result.durationRule = '28_days_5_renew';
+ result.recurringFinesRule = 'free';
+ result.maxFine = 0;
+ break;
+ case 'LAW NOCIRC':
+ result.durationRule = '14_days_5_renew';
+ result.recurringFinesRule = 'free';
+ result.maxFine = 0;
+ break;
+ case 'LAW RES1D':
+ result.durationRule = '2_days_20_renew';
+ result.recurringFinesRule = 'free';
+ result.maxFine = 0;
+ break;
+ case 'LAW RES3D':
+ result.durationRule = '3_days_20_renew';
+ result.recurringFinesRule = 'free';
+ result.maxFine = 0;
+ break;
+ case 'LAW RES3H':
+ result.durationRule = '2_days_20_renew';
+ result.recurringFinesRule = 'free';
+ result.maxFine = 0;
+ break;
+ case 'LAW RES5H':
+ result.durationRule = '2_days_20_renew';
+ result.recurringFinesRule = 'free';
+ result.maxFine = 0;
+ break;
+ case 'LAW SERIAL':
+ result.durationRule = '14_days_5_renew';
+ result.recurringFinesRule = 'free';
+ result.maxFine = 0;
+ break;
+ case 'MAP':
+ // use defaults
+ break;
+ case 'MAP (CIRCULATING)':
+ result.durationRule = '28_days_3_renew';
+ break;
+ case 'MAP (REFERENCE)':
+ // use defaults
+ break;
+ case 'MEDIA':
+ result.durationRule = '28_days_3_renew';
+ break;
+ case 'MFORM':
+ result.durationRule = '28_days_3_renew';
+ break;
+ case 'MFORM REF':
+ // use defaults
+ break;
+ case 'MFORM SER':
+ // use defaults
+ break;
+ case 'REF':
+ result.durationRule = '7_days_3_renew';
+ break;
+ case 'RSV1':
+ result.durationRule = '1_day_1_renew';
+ result.recurringFinesRule = '10_dollars_per_day';
+ result.maxFine = '50_dollars';
+ break;
+ case 'RSV2':
+ result.durationRule = '120_minutes_0_renew';
+ result.recurringFinesRule = '5_cents_per_minute';
+ result.maxFine = '50_dollars';
+ break;
+ case 'RSV3':
+ result.durationRule = '3_days_1_renew';
+ result.recurringFinesRule = '10_dollars_per_day';
+ result.maxFine = '50_dollars';
+ break;
+ case 'RSV7':
+ result.durationRule = '7_days_1_renew';
+ result.recurringFinesRule = '10_dollars_per_day';
+ result.maxFine = '50_dollars';
+ break;
+ case 'SER':
+ result.durationRule = '1_day_1_renew';
+ result.recurringFinesRule = '2_dollars_per_day';
+ break;
+ case 'THESIS':
+ result.durationRule = '28_days_3_renew';
+ break;
+ }
+ break;
+
case 'Graduate':
switch(copy.circ_modifier) {
case 'CD MUSIC':
Modified: conifer/trunk/circ/circ_groups.js
===================================================================
--- conifer/trunk/circ/circ_groups.js 2009-05-15 13:55:11 UTC (rev 482)
+++ conifer/trunk/circ/circ_groups.js 2009-05-15 16:27:43 UTC (rev 483)
@@ -19,24 +19,30 @@
maxHolds : -1
},
'Faculty' : {
- maxItemsOut : 50,
+ maxItemsOut : 60,
fineThreshold : 10,
overdueThreshold : 1,
maxHolds : -1
},
- 'Graduate students' : {
- maxItemsOut : 50,
+ 'Graduate' : {
+ maxItemsOut : 60,
fineThreshold : 10,
overdueThreshold : 1,
maxHolds : -1
},
- 'Undergraduate students' : {
+ 'Undergraduate' : {
maxItemsOut : 30,
fineThreshold : 10,
overdueThreshold : 1,
maxHolds : -1
},
- 'Guest borrowers' : {
+ 'Staff members' : {
+ maxItemsOut : 30,
+ fineThreshold : 10,
+ overdueThreshold : 1,
+ maxHolds : -1
+ },
+ 'Readers' : {
maxItemsOut : 15,
fineThreshold : 10,
overdueThreshold : 1,
More information about the open-ils-commits
mailing list