[LON-CAPA-cvs] cvs: loncom /homework response.pm /localize lonlocal.pm
jms
lon-capa-cvs-allow@mail.lon-capa.org
Mon, 24 Nov 2008 16:53:26 -0000
jms Mon Nov 24 16:53:26 2008 EDT
Modified files:
/loncom/localize lonlocal.pm
/loncom/homework response.pm
Log:
POD changes
Index: loncom/localize/lonlocal.pm
diff -u loncom/localize/lonlocal.pm:1.50 loncom/localize/lonlocal.pm:1.51
--- loncom/localize/lonlocal.pm:1.50 Fri Sep 19 12:31:06 2008
+++ loncom/localize/lonlocal.pm Mon Nov 24 16:53:16 2008
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Localization routines
#
-# $Id: lonlocal.pm,v 1.50 2008/09/19 12:31:06 raeburn Exp $
+# $Id: lonlocal.pm,v 1.51 2008/11/24 16:53:16 jms Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -410,13 +410,19 @@
return $locale_obj;
}
+=pod
+
+=item * normalize_string
+
+Normalize string (reduce fragility in the lexicon files)
-# ==================== Normalize string (reduce fragility in the lexicon files)
+This normalizes a string to reduce fragility in the lexicon files of
+huge messages (such as are used by the helper), and allow useful
+formatting: reduce all consecutive whitespace to a single space,
+and remove all HTML
+
+=cut
-# This normalizes a string to reduce fragility in the lexicon files of
-# huge messages (such as are used by the helper), and allow useful
-# formatting: reduce all consecutive whitespace to a single space,
-# and remove all HTML
sub normalize_string {
my $s = shift;
$s =~ s/\s+/ /g;
@@ -427,13 +433,27 @@
return $s;
}
-# alias for normalize_string; recommend using it only in the lexicon
+=pod
+
+=item * ns
+
+alias for normalize_string; recommend using it only in the lexicon
+
+=cut
+
sub ns {
return normalize_string(@_);
}
-# mtn: call the mt function and the normalization function easily.
-# Returns original non-normalized string if there was no translation
+=pod
+
+=item * mtn
+
+mtn: call the mt function and the normalization function easily.
+Returns original non-normalized string if there was no translation
+
+=cut
+
sub mtn (@) {
my @args = @_; # don't want to modify caller's string; if we
# didn't care about that we could set $_[0]
Index: loncom/homework/response.pm
diff -u loncom/homework/response.pm:1.206 loncom/homework/response.pm:1.207
--- loncom/homework/response.pm:1.206 Fri Oct 24 16:22:54 2008
+++ loncom/homework/response.pm Mon Nov 24 16:53:26 2008
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# various response type definitons response definition
#
-# $Id: response.pm,v 1.206 2008/10/24 16:22:54 bisitz Exp $
+# $Id: response.pm,v 1.207 2008/11/24 16:53:26 jms Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -217,23 +217,26 @@
}
sub mandatory_part_meta {
-#
-# Autogenerate metadata for mandatory
-# input (from RAT or lonparmset) and
-# output (to lonspreadsheet)
-# of each part
+=pod
+
+=item meta_part_order
+
+Autogenerate metadata for mandatory
+input (from RAT or lonparmset) and
+output (to lonspreadsheet)
+of each part
#
return
-# &meta_parameter_write('opendate','date_start','',
-# 'Opening Date').
-# &meta_parameter_write('duedate','date_end','',
-# 'Due Date').
-# &meta_parameter_write('answerdate','date_start','',
-# 'Show Answer Date').
-# &meta_parameter_write('weight','int_zeropos','',
-# 'Available Points').
-# &meta_parameter_write('maxtries','int_pos','',
-# 'Maximum Number of Tries').
+ &meta_parameter_write('opendate','date_start','',
+ 'Opening Date').
+ &meta_parameter_write('duedate','date_end','',
+ 'Due Date').
+ &meta_parameter_write('answerdate','date_start','',
+ 'Show Answer Date').
+ &meta_parameter_write('weight','int_zeropos','',
+ 'Available Points').
+ &meta_parameter_write('maxtries','int_pos','',
+ 'Maximum Number of Tries').
&meta_package_write('part').
&meta_stores_write('solved','string',
'Problem Status').
@@ -241,10 +244,12 @@
'Number of Attempts').
&meta_stores_write('awarded','float',
'Partial Credit Factor');
-#
-# Note: responseid-specific data 'submission' and 'awarddetail'
-# not available to spreadsheet -> skip here
-#
+
+Note: responseid-specific data 'submission' and 'awarddetail'
+not available to spreadsheet -> skip here
+
+=cut
+
}
sub meta_part_order {