[LON-CAPA-cvs] cvs: loncom /interface courseclassifier.pm
raeburn
raeburn at source.lon-capa.org
Wed May 13 15:30:13 EDT 2015
raeburn Wed May 13 19:30:13 2015 EDT
Modified files:
/loncom/interface courseclassifier.pm
Log:
- coding style.
Index: loncom/interface/courseclassifier.pm
diff -u loncom/interface/courseclassifier.pm:1.20 loncom/interface/courseclassifier.pm:1.21
--- loncom/interface/courseclassifier.pm:1.20 Thu Dec 11 00:07:12 2014
+++ loncom/interface/courseclassifier.pm Wed May 13 19:30:13 2015
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Utilities for classifying courses based on institutional code
#
-# $Id: courseclassifier.pm,v 1.20 2014/12/11 00:07:12 raeburn Exp $
+# $Id: courseclassifier.pm,v 1.21 2015/05/13 19:30:13 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -687,7 +687,8 @@
my ($by_year,$by_sem,$by_dept,$cat_order,$codetitles) = @_;
my @unsorted = keys(%{$by_year});
my @sorted_yrs;
- &sort_cats('0',$cat_order,$codetitles,\@unsorted,\@sorted_yrs); my $output = 'var idcse_by_yr_year = new Array("'.join('","', at sorted_yrs).'");'."\n".
+ &sort_cats('0',$cat_order,$codetitles,\@unsorted,\@sorted_yrs);
+ my $output = 'var idcse_by_yr_year = new Array("'.join('","', at sorted_yrs).'");'."\n".
'var idcse_by_yr_dept = new Array('.scalar(@sorted_yrs).');'."\n".
'var idcse_by_yr_num = new Array('.scalar(@sorted_yrs).');'."\n";
for (my $i=0; $i<@sorted_yrs; $i++) {
More information about the LON-CAPA-cvs
mailing list