CVS log for loncom/interface/courseclassifier.pm

[BACK] Up to [LON-CAPA] / loncom / interface

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.30: download - view: text, markup, annotated - select for diffs
Mon Jul 10 01:55:15 2023 UTC (9 months, 2 weeks ago) by raeburn
Branches: MAIN
CVS tags: version_2_12_X, version_2_11_4_msu, HEAD
Diff to previous 1.29: preferred, colored
Changes since revision 1.29: +1 -2 lines
- Remove debugging line

Revision 1.29: download - view: text, markup, annotated - select for diffs
Wed Mar 15 14:37:12 2023 UTC (13 months, 1 week ago) by raeburn
Branches: MAIN
Diff to previous 1.28: preferred, colored
Changes since revision 1.28: +5 -4 lines
- Add missing linefeed and remove some trailing whitespace.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sat Nov 5 06:00:07 2022 UTC (17 months, 3 weeks ago) by raeburn
Branches: MAIN
Diff to previous 1.27: preferred, colored
Changes since revision 1.27: +4 -1 lines
- In cases where course codes have been assigned to course(s) in a domain,
  but instcode_format() routine in localenroll.pm has not been customized,
  totcodes item (value is number of courses with codes) must be present
  in the instcats hash ref.
- Without this the text: "No official courses to display" will be shown above
  a listing of official courses, and clicking the "Show more details" link
  for a course will do nothing.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Tue Jul 23 13:58:53 2019 UTC (4 years, 9 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_11_X, version_2_11_4_uiuc, version_2_11_4, version_2_11_3_uiuc, version_2_11_3_msu, version_2_11_3
Diff to previous 1.26: preferred, colored
Changes since revision 1.26: +21 -33 lines
- Self-cataloging of courses based on institutional code is cached for 1 hour.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Wed Jan 18 21:24:39 2017 UTC (7 years, 3 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_11_2_uiuc, version_2_11_2_msu, version_2_11_2_educog, version_2_11_2
Diff to previous 1.25: preferred, colored
Changes since revision 1.25: +81 -4 lines
- Helpdesk web form
  - Domain configuration to specify which form fields besides E-mail address,
    Subject, and Description should be shown (some can be required fields).
  - Domain configuration to send submitted form to specified e-mail address(es)
    for user from other domains -- if no recipient set in user's domain for help).
  - Domain configuration to automatically include a specified string in the e-mail
    sent -- either prepended to the subject, or to the body.
  - If form is visited by a logged-in user with a role selected in an official
    course, the user can change the course code in the linked select boxes,
    in order to ask about a different course.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Wed Jan 18 21:07:31 2017 UTC (7 years, 3 months ago) by raeburn
Branches: MAIN
Diff to previous 1.24: preferred, colored
Changes since revision 1.24: +4 -2 lines
- Second arg in courseclassifier::javascript_code_selections() changed to ref
  to array.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Tue Oct 11 22:58:55 2016 UTC (7 years, 6 months ago) by raeburn
Branches: MAIN
Diff to previous 1.23: preferred, colored
Changes since revision 1.23: +9 -5 lines
- vpa priv allows Course Settings to be viewed, but not modified.
- users with vpa priv in a course receive "View parameter settings
  (due dates, etc) for resources and the course" item in the Main Menu,
  and a Settings item in the inline menu.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri May 22 16:00:55 2015 UTC (8 years, 11 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_11_1
Diff to previous 1.22: preferred, colored
Changes since revision 1.22: +6 -2 lines
- Last dropdown list element in linked institutional code dropdowns needs
  to include the class, if one was passed to &build_instcode_selectors().

Revision 1.22: download - view: text, markup, annotated - select for diffs
Thu May 21 23:26:34 2015 UTC (8 years, 11 months ago) by raeburn
Branches: MAIN
Diff to previous 1.21: preferred, colored
Changes since revision 1.21: +13 -7 lines
- General course settings: users allowed to clone course.
  - Show if domain default is set.
  - Adding any course-specific setting will cause domain default to
    be ignored.
  - For official courses, where localenroll::instcode_defaults()
    has been customized, can also allow cloning by specific
    partial institutional codes (e.g., department + number: such as
    phy184 for example).

Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed May 13 19:30:13 2015 UTC (8 years, 11 months ago) by raeburn
Branches: MAIN
Diff to previous 1.20: preferred, colored
Changes since revision 1.20: +3 -2 lines
- coding style.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu Dec 11 00:07:12 2014 UTC (9 years, 4 months ago) by raeburn
Branches: MAIN
Diff to previous 1.19: preferred, colored
Changes since revision 1.19: +12 -12 lines
- Coding style:
  keys() sort()

Revision 1.19: download - view: text, markup, annotated - select for diffs
Thu Jul 31 15:45:27 2014 UTC (9 years, 8 months ago) by musolffc
Branches: MAIN
Diff to previous 1.18: preferred, colored
Changes since revision 1.18: +59 -10 lines
Making drop-down selections persistent after search

Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Mar 17 02:33:32 2014 UTC (10 years, 1 month ago) by raeburn
Branches: MAIN
CVS tags: version_2_11_0_RC3, version_2_11_0
Diff to previous 1.17: preferred, colored
Changes since revision 1.17: +29 -9 lines
- Course/Community search in domains where institutional codes are defined:
  clicking radio buttons for official or unofficial courses will show/hide
  linked select boxes for filtering by institutional code.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Mar 16 22:27:06 2014 UTC (10 years, 1 month ago) by raeburn
Branches: MAIN
Diff to previous 1.16: preferred, colored
Changes since revision 1.16: +4 -3 lines
- Whitespace changes only.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Tue Mar 11 21:42:18 2014 UTC (10 years, 1 month ago) by raeburn
Branches: MAIN
Diff to previous 1.15: preferred, colored
Changes since revision 1.15: +27 -1 lines
- Moving &instcode_selectors() from lonpickcourse.pm to courseclassifier.pm
  to facilitate re-use.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Mon Jul 15 14:32:45 2013 UTC (10 years, 9 months ago) by bisitz
Branches: MAIN
CVS tags: version_2_11_0_RC2, version_2_11_0_RC1
Diff to previous 1.14: preferred, colored
Changes since revision 1.14: +2 -2 lines
XHTML: JavaScript event handlers in lower case

Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Mar 3 00:06:38 2011 UTC (13 years, 1 month ago) by raeburn
Branches: MAIN
CVS tags: version_2_10_X, version_2_10_1, version_2_10_0, loncapaMITrelate_1, language_hyphenation_merge, language_hyphenation, BZ4492-merge, BZ4492-feature_horizontal_radioresponse
Diff to previous 1.13: preferred, colored
Changes since revision 1.13: +7 -3 lines
- Institutional code compiled from selections in linked select boxes does
  not need regular expressions used in search of nohist_courseids.db when
  usd for helpdesk e-mail.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Fri Feb 25 02:40:42 2011 UTC (13 years, 2 months ago) by raeburn
Branches: MAIN
Diff to previous 1.12: preferred, colored
Changes since revision 1.12: +14 -12 lines
- Localization missing for text set dynamically by javascript.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri Feb 25 02:07:46 2011 UTC (13 years, 2 months ago) by raeburn
Branches: MAIN
Diff to previous 1.11: preferred, colored
Changes since revision 1.11: +20 -11 lines
- Bug 6333.

Revision 1.8.8.1: download - view: text, markup, annotated - select for diffs
Fri Dec 3 04:57:35 2010 UTC (13 years, 4 months ago) by raeburn
Branches: GCI_3
Diff to previous 1.8: preferred, colored next main 1.9: preferred, colored
Changes since revision 1.8: +5 -3 lines
- Customization for GCI_3.
  - Backport 1.11.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Fri Dec 3 04:28:36 2010 UTC (13 years, 4 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_10_0_RC2
Diff to previous 1.10: preferred, colored
Changes since revision 1.10: +5 -3 lines
- Eliminate javascript error on loading of help request form where all
  institutional codes are null.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Jul 9 14:40:20 2010 UTC (13 years, 9 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_10_0_RC1
Diff to previous 1.9: preferred, colored
Changes since revision 1.9: +48 -13 lines
- Bug 6333.
  Ensure that form element names for select boxes for institutional codes
  are always named Year, Semester, Department, Number, for consistency with
  names used in javascript to update select box items dynamically.

- Bug 5848.
  Assembly of institutional code from components conforms to order defined in
  localenroll::instcode_defaults().

Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Jul 8 23:19:19 2010 UTC (13 years, 9 months ago) by raeburn
Branches: MAIN
Diff to previous 1.8: preferred, colored
Changes since revision 1.8: +27 -10 lines
- Bug 6333.
  Ensure that form element names for select boxes for institutional codes
  are always named Year, Semester, Department, Number, for consistency with
  names used in javascript to update select box items dynamically.
  - Names of categories in domain from localenroll::instcode_format():
    codetitles array can differ from these form element names.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Jul 29 22:32:44 2009 UTC (14 years, 9 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_9_X, version_2_9_99_0, version_2_9_1, version_2_9_0, version_2_8_99_1, version_2_8_99_0, bz6209-base, bz6209, bz2851, PRINT_INCOMPLETE_base, PRINT_INCOMPLETE, GCI_2
Branch point for: GCI_3
Diff to previous 1.7: preferred, colored
Changes since revision 1.7: +9 -7 lines
lonpickcourse.pm
- Wording change.  "Course Type" changed to "Type".
- course filter form now sets a form element named "command" to 'gosearch' on submit.
- course filter form will automatically reload, but not search,
  if either Domain or Type are changed.

courseclassifier.pm
 Javascript function "setOfficial() checks if caller arg is defined

lond
&dump_course_id_handler() change.
 - change to the effect regexp_ok arg.
 - now if arg has a value of -1, a course will be excluded from the resturned list,
   if the instcode matches the RE.
   This excludes "official" courses (i.e., those with an instcode matching the expected pattern for the domain) from the list returned in a search for "unofficial" courses.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue May 5 05:30:00 2009 UTC (14 years, 11 months ago) by raeburn
Branches: MAIN
CVS tags: bz5969, BZ5971-printing-apage, BZ5434-fox
Diff to previous 1.6: preferred, colored
Changes since revision 1.6: +35 -6 lines
Case where there are linked select boxes for Year, Semester etc. to generate instcode filter.
  - Add radio button to toggle between "official" and unofficial" courses.
  - Appropriate instcodefilter now set when "unofficial" is selected.
  - Javascript to keep select boxes and radio buttons in consistent state.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri May 1 01:30:08 2009 UTC (14 years, 11 months ago) by raeburn
Branches: MAIN
Diff to previous 1.5: preferred, colored
Changes since revision 1.5: +365 -1 lines
Code reuse.
- Following routines: &recurse_options(), &build_javascript(),
                      &javascript_select_filler()
     moved from coursecatalog.pm to courseclassifier.pm for re-use.

- New routines: &instcode_selectors_data(), &build_instcode_selectors
    added to courseclassifier.pm to include code previously in
    coursecatalog::instcode_course_selector() --

- New routine:  &instcode_search_str() added to courseclassifier.pm to include
    code previously in coursecatalog::search_official_courselist().

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Mar 21 18:00:18 2008 UTC (16 years, 1 month ago) by raeburn
Branches: MAIN
CVS tags: version_2_8_X, version_2_8_2, version_2_8_1, version_2_8_0, version_2_7_X, version_2_7_99_1, version_2_7_99_0, version_2_7_1, version_2_7_0, version_2_6_X, version_2_6_99_1, version_2_6_99_0, version_2_6_3, GCI_1
Diff to previous 1.4: preferred, colored
Changes since revision 1.4: +4 -0 lines
- Add version string.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri Feb 15 02:30:14 2008 UTC (16 years, 2 months ago) by raeburn
Branches: MAIN
Diff to previous 1.3: preferred, colored
Changes since revision 1.3: +6 -2 lines
- courseclassifier.pm
  - support cases where displayed values differ from corresponding keys in oursenumber options. (Useful if institutional code uses specific characters to separate components).
    e.g., for code: ACCT-202-2007Fall, cousenumber 202 maps to -202-

- coursecatalog.pm
  - check for array reference to avoid an ISE in the case where no coursecodes are defined even though categories exist in a customized localenroll::instcode_format().

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Oct 6 04:32:49 2007 UTC (16 years, 6 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_6_2, version_2_6_1, version_2_6_0, version_2_5_99_1, version_2_5_99_0
Diff to previous 1.2: preferred, colored
Changes since revision 1.2: +1 -4 lines
Bug 5191.  Decouple storage of last access time for a course in nohist_courseids.db from storage of course information.
- Retain backwards compatibility with legacy lonnet::courseiddump()

Other general change: uniform use of 'inst_code' as key in frozen hash instead of 'instcode'.

lond
&put_course_id_handler()
- last access stored in escaped lasttime:courseid key = value hash item
  if legacy lonnet::courseiddump() updates courseinfo.
&put_course_id_hash_handler()
- additional argument - $mode ('timeonly', 'notime' or 'all')
  - determines whether last access, or courseinfo (description,inst_code,owner,type) or both are stored
&dump_course_id_handler()
- documentation updated
- style (replacing unless)
- change location of unescaping when checking filters so double escaping no longer needed for courseinfo stored in frozen hash
- return courseinfo in hash form, if requested as hash, when record has yet to be converted to a frozen hash
&validate_class_access_handler()
- eliminate extra unescaping of $ownerlist

lonnet.pm
&flushcourselogs() includes 'timeonly' argument in call to courseidput().
&courseidput() - if in 'timeonly' mode only courseids are sent to lond in courseidputhash call.
&createcourse()
- courseinfo values in hash no longer escaped (freeze_hash handles this)
- call to flushcourselogs() replaced by call to courseidput()

lonmodifycourse.pm
- courseinfo values in hash no longer escaped
- call to courseidput() includes 'notime' as fourth arg.

coursecatalog.pm
- remove unneeded code, since entry for each course in %courses hash will now be a hash ref.

courseclassifier.pm
- remove unneeded code, since entry for each course in %courses hash will now be a hash ref.

lonpickcourse.pm
- Entry for each course in %courses hash should be a hash ref, when constructing for onlyown courses case.
- instcode to inst_code
- no need to unescape courseinfo value (thaw_hash in lonnet::courseiddump does it)

lonparmset.pm
- call to flushcourselogs() replaced by call to courseidput() after updating course description.
- appenv user's session with new course description.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Oct 3 19:57:29 2007 UTC (16 years, 6 months ago) by raeburn
Branches: MAIN
Diff to previous 1.1: preferred, colored
Changes since revision 1.1: +7 -3 lines
Store data in nohist_courseids.db as a hash.  Maintain backwards compatibility with writes to the db from legacy lonnet.pm, and also reads from the db from legacy lonnet.pm.

Start towards inclusion of co-owners as well as a single owner, for the purposes of verifying access to official classlist data.

lond
- &put_course_id_hash_handler() added to handle storage of data in nohist_courseids.db as a frozen hash.
- &put_course_id_handler() will add to an existing hash if update is from a legacy lonnet which supplies : separated data.
- &dump_course_id_handler() $as_hash flag extracted from tail. If set, data are returned as a hash.
- validate_class_access_handler() will extract comma-separated owner and co-owners from ownerlist passed to it, and send array ref to localenroll::check_section() to determine if at least one on the owners is authorized to view classlist list data for the institutional section.

lonnet.pm
- storage of hash via call to courseidputhash in lond.  If command is unrecognized on the lond side, subset of the data sent as : separated values
- retrieval of data from nohist_courseids.db - additional $as_hash argument included in courseiddump call to indicate that data should be returned as a frozen hash.
- auto_validate_class_sec() - if third argument is an array ref, then an owner list is built from the supplied owners and co-owners.
- lasttime set on lonnet side (FIXME) - to be changed to lond side.

lomodifycourse.pm
- updated course settings sent as a ref to a hash to lonnet::courseidput()
- include LC_error in span for error messages
- eliminate duplicate error message
- display error if storage of changes fails
- form name corrected to cmod.

coursecatalog.pm
- eliminate unused arg from call to courseclassifier::retrieve_instcodes
- display owner and co-owners (sort by lastname)
- institutional section access for multiple owners

courseclassifier.pm
- course codes from course data if hash, or if : separated string.

lonpickcourse.pm
- course info extracted from hash
- owner info displayed in a list if owner and co-owners exist.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu Oct 12 22:47:31 2006 UTC (17 years, 6 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_5_X, version_2_5_2, version_2_5_1, version_2_5_0, version_2_4_X, version_2_4_99_0, version_2_4_2, version_2_4_1, version_2_4_0, version_2_3_X, version_2_3_99_0, version_2_3_2, version_2_3_1, version_2_3_0, version_2_2_99_1, version_2_2_99_0
Moving routines used by lonsupportreq.pm, lonnotify.pm and coursecatalog.pm to courseclassifier.pm

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>