[LON-CAPA-admin] loncapa helppage

Stuart Peter Raeburn raeburn at msu.edu
Fri Jan 20 12:42:16 EST 2006


Hi Hon-Kie, 

The script which builds the javascript arrays which populate the dynamic 
year, semester, department and number select boxes gets information about 
LON-CAPA courseIDs in your domain and their corresponding institutional 
course codes from a call to lonnet::courseiddump() which extracts 
information from the nohist_courseids.db file. 

When as DC you use MCRS to update the institutional course code associated 
with a course, the nohist_courseids.db file is updated via a call to 
&lonnet::courseidput(). 

If the entry for a specific course is absent from the javascript arrays, but 
is present in nohist_courseids.db then that suggests that the institutional 
course code did not match the regular expression you use in 
localenroll::instcode_format() to extract appropriate information from the 
course code.  You might need to fix your pattern matching.  Alternatively, 
as subroutines in localenroll.pm are customized for each institution, it 
would be possible to manually enter the information into this subroutine.  
However, if you make changes to localenroll.pm to do this you'd need to 
restart loncontrol for lond to see them, which is why you'd prefer to do 
this programmatically. 

To troubleshoot further I'd need to know the institutional code (as set in 
MCRS), and to see the contents of localenroll::instcode_format used in your 
domain. 

Stuart 


H. K. Ng writes: 

> On the loncapa helppage, there is a row for students to pick year, 
> semester, department etc. Where does the script get the information from? 
> One course was incorrectly setup so now it does not show on the list. I 
> like to fix it manually. It doesn't seem to be reading it from 
> nohist_courseid.db. -hk 
> 
> _______________________________________________
> LON-CAPA-admin mailing list
> LON-CAPA-admin at mail.lon-capa.org
> http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin 
> 
 





More information about the LON-CAPA-admin mailing list