[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
raeburn
raeburn at source.lon-capa.org
Fri Dec 27 18:31:02 EST 2013
raeburn Fri Dec 27 23:31:02 2013 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
- "textbook" is a course request type.
- courses of type "textbook" have specific default credits and upload quota,
set via domain configuration.
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1245 loncom/lonnet/perl/lonnet.pm:1.1246
--- loncom/lonnet/perl/lonnet.pm:1.1245 Fri Dec 13 02:10:33 2013
+++ loncom/lonnet/perl/lonnet.pm Fri Dec 27 23:31:01 2013
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.1245 2013/12/13 02:10:33 raeburn Exp $
+# $Id: lonnet.pm,v 1.1246 2013/12/27 23:31:01 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2032,7 +2032,7 @@
}
}
if (ref($domconfig{'requestcourses'}) eq 'HASH') {
- foreach my $item ('official','unofficial','community') {
+ foreach my $item ('official','unofficial','community','textbook') {
$domdefaults{$item} = $domconfig{'requestcourses'}{$item};
}
}
@@ -2049,11 +2049,13 @@
if (ref($domconfig{'coursedefaults'}{'coursecredits'}) eq 'HASH') {
$domdefaults{'officialcredits'} = $domconfig{'coursedefaults'}{'coursecredits'}{'official'};
$domdefaults{'unofficialcredits'} = $domconfig{'coursedefaults'}{'coursecredits'}{'unofficial'};
+ $domdefaults{'textbookcredits'} = $domconfig{'coursedefaults'}{'coursecredits'}{'textbook'};
}
if (ref($domconfig{'coursedefaults'}{'uploadquota'}) eq 'HASH') {
$domdefaults{'officialquota'} = $domconfig{'coursedefaults'}{'uploadquota'}{'official'};
$domdefaults{'unofficialquota'} = $domconfig{'coursedefaults'}{'uploadquota'}{'unofficial'};
- $domdefaults{'communityquota'} = $domconfig{'coursedefaults'}{'uploadquota'}{'community'};
+ $domdefaults{'communityquota'} = $domconfig{'coursedefaults'}{'uploadquota'}{'community'};
+ $domdefaults{'textbookquota'} = $domconfig{'coursedefaults'}{'uploadquota'}{'textbook'};
}
}
if (ref($domconfig{'usersessions'}) eq 'HASH') {
@@ -6207,6 +6209,7 @@
official => 1,
unofficial => 1,
community => 1,
+ textbook => 1,
);
} elsif ($context eq 'requestauthor') {
%tools = (
@@ -13266,7 +13269,7 @@
=over
=item
-official, unofficial, community
+official, unofficial, community, textbook
=back
@@ -13287,7 +13290,8 @@
=over
=item
-canuse_pdfforms, officialcredits, unofficialcredits, officialquota, unofficialquota, communityquota
+canuse_pdfforms, officialcredits, unofficialcredits, textbookcredits, officialquota, unofficialquota,
+communityquota, textbookquota
=back
More information about the LON-CAPA-cvs
mailing list