[LON-CAPA-cvs] cvs: loncom /interface lonpopulate.pm

raeburn lon-capa-cvs@mail.lon-capa.org
Mon, 08 Dec 2003 17:06:26 -0000


raeburn		Mon Dec  8 12:06:26 2003 EDT

  Modified files:              
    /loncom/interface	lonpopulate.pm 
  Log:
  Added Apache::lonlocal::mt wrapper to check for Course Coordinators when building notification list.  Some modifications to instructions included in sections and crosslistings menus.
  
  
Index: loncom/interface/lonpopulate.pm
diff -u loncom/interface/lonpopulate.pm:1.1 loncom/interface/lonpopulate.pm:1.2
--- loncom/interface/lonpopulate.pm:1.1	Mon Dec  8 11:16:03 2003
+++ loncom/interface/lonpopulate.pm	Mon Dec  8 12:06:26 2003
@@ -5,6 +5,7 @@
 use Apache::lonnet ();
 use Apache::loncommon ();
 use Apache::lonhtmlcommon ();
+use Apache::lonlocal ();
 use Apache::Constants qw(:common :http REDIRECT);
 use Time::Local;
 use LONCAPA::Enrollment ();
@@ -199,7 +200,7 @@
 
   if ($action eq "information") {
       $r->print(<<ENDONE);
-          <table border='0' width='100%'>
+          <br/><table border='0' width='100%'>
             <tr>
               <td>&nbsp;</td>
               <td><b>Use the menu on the left to choose an enrollment management task.</b><br/><br/></td>
@@ -224,7 +225,7 @@
               <td>Use <i>"Section settings"</i> to make changes to the choice of sections included for enrollment in your LON-CAPA course.</td>
             </tr>
               <td>&nbsp;</td>
-              <td>Use <i>"Student photos"</i> to enable or disable the use of student photos in your course.</td>
+              <td>Use <i>"Student photos"</i> to enable or disable automatic upload of student photos to your course.</td>
             </tr>
             <tr>
               <td>&nbsp;</td>
@@ -419,7 +420,7 @@
 
       my %coursepersonnel=&Apache::lonnet::get_course_adv_roles($dom.'/'.$crs);
       foreach (sort keys %coursepersonnel) {
-          if ($_ eq "Course Coordinator")
+          if ($_ eq &Apache::lonlocal::mt("Course Coordinator") )
           {
               my @ccs = ();
               if ($coursepersonnel{$_} =~ m/,/) {
@@ -500,7 +501,7 @@
       ");
       if ($cross_str > 0) {
           $r->print("
-                Currently, LON-CAPA course: $realm ($enrollvar{coursecode}) is crosslisted with $cross_str course section(s).  Students enrolling in these course sections will be automatically added to the class roster for the course, if you have chosen to enable a nightly automated enrollment update.  For each crosslisting, leave the checkbox checked if you want registered students in that course to be included in the student roster for LON-CAPA course: <b>$realm ($enrollvar{coursecode})</b>; otherwise uncheck it. If you wish to change the section/group ID assigned in your LON-CAPA course for a crosslisted course, enter the new section/group ID in the appropriate textbox. The LON-CAPA section/group ID can be left (or set to) empty, if you do not wish to tie a section/group ID to this crosslisting. Click 'Go' to store your changes.
+                Currently, LON-CAPA course: $realm ($enrollvar{coursecode}) is crosslisted with $cross_str course section(s).  Students enrolling in these course sections will be automatically added to the class roster for the course, if you have chosen to enable a nightly automated enrollment update.  For each crosslisting, leave the checkbox checked if you want registered students in that course to be included in the student roster for LON-CAPA course: <b>$realm ($enrollvar{coursecode})</b>; otherwise uncheck it. If you wish to change the section/group ID assigned in your LON-CAPA course for a crosslisted course, enter the new section/group ID in the appropriate textbox. The LON-CAPA section/group ID can be left (or set to) empty, if you do not wish to tie a section/group ID to this crosslisting. If you wish to add new crosslisted courses, enter the number of new courses to add in the textbox at the bottom of the page. You will provide information about each of the new crosslistings on a subsequent page.  Click 'Go' to store your changes.
               </td>
              </tr>
             </table>
@@ -596,7 +597,7 @@
               </td>
              </tr>
              <tr>
-              <td>For each section, check the checkbox if you want registered students in that section to be included in the student roster for LON-CAPA course: <b>$realm ($enrollvar{coursecode})</b>; otherwise uncheck it. If you want to change the section/group designation used for this section in LON-CAPA, delete the currecnt value in the LON-CAPA section/group textbox and enter the new value. Click 'Go' to store your changes.</td>
+              <td>For each section, check the checkbox if you want registered students in that section to be included in the student roster for LON-CAPA course: <b>$realm ($enrollvar{coursecode})</b>; otherwise uncheck it. If you want to change the section/group designation used for this section in LON-CAPA, delete the currecnt value in the LON-CAPA section/group textbox and enter the new value. The LON-CAPA section/group ID can be left (or set to) empty, if you do not wish to tie a section/group ID to this section. If you wish to add new course section, enter the number of new sections to add in the textbox at the bottom of the page. You will provide information about each of the new sections on a subsequent page. Click 'Go' to store your changes.</td>
              </tr>
             </table>
             <br/>
@@ -675,7 +676,7 @@
           if (@currsections) {
               my $secshow = @currsections;
               $r->print("
-                Currently, LON-CAPA course: $realm ($enrollvar{coursecode}) incorporates enrollment from $secshow sections.  Students enrolling in any of these course sections will be automatically added to the class roster for the course, if you have chosen to enable a nightly automated enrollment update. For each section, uncheck the checkbox if you want registered students in that section to cease being included in the student roster for LON-CAPA course: <b>$realm ($enrollvar{coursecode})</b>; otherwise leave it checked. If you want to change the section/group designation used for this section in LON-CAPA, delete the current value in the LON-CAPA section/groupID textbox and enter the new value. Click 'Go' to store your changes.
+                Currently, LON-CAPA course: $realm ($enrollvar{coursecode}) incorporates enrollment from $secshow sections.  Students enrolling in any of these course sections will be automatically added to the class roster for the course, if you have chosen to enable a nightly automated enrollment update. For each section, uncheck the checkbox if you want registered students in that section to cease being included in the student roster for LON-CAPA course: <b>$realm ($enrollvar{coursecode})</b>; otherwise leave it checked. If you want to change the section/group designation used for this section in LON-CAPA, delete the current value in the LON-CAPA section/groupID textbox and enter the new value. If you wish to add new course section, enter the number of new sections to add in the textbox at the bottom of the page. You will provide information about each of the new sections on a subsequent page. Click 'Go' to store your changes.
               </td>
              </tr>
             </table>