Link to Bb Learn Files from a Website

Sample Code Files

Download and unzip the zipped file below.

MonganContentColl


Instructions and Notes

Information below appears in ReadMe.txt file provided in code above.

***Instructions***
Dr. William Mongan, Drexel CCI CS Department, created this website code, and he
let Mike Galloway make a copy of the version he used for his CS283 Systems
Programming in summer 2016, so that Mike could share share the code with other
CCI instructors who might want to use it if they had a public website and had
content they wanted to only be available to students enrolled in their current
CCI Bb Learn course shell. Mike will make this code available via the public
CCI Docs Bb Learn website at Blackboard Learn as a zip file with the contents
of this ReadMe file included and showing on the webpage where the link to
the zip file is offered.

The website code came from https://www.cs.drexel.edu/~wmm24/cs283_su16/ on
7/27/16.

To use this code, you'll need to be familiar with javascript, HTML, and have a
Bb Learn course shell.

You can make whatever changes you wish to this code if you are teaching here at
Drexel CCI.

The scripts folder contains all the javascript files.

coursePrint.js is where all the javscript functions used on the HTML pages are
defined.

courseInfo.js stores all the variables used by the javascript functions in
coursePrint.js. The general idea is that information that would likely change
each quarter would be stored in courseInfo.js.

Comments in courseInfo.js, along with values left in for the variables that were
used for Mongan's summer 2016 CS 283 course, will tell you what their use is and
hopefully help you know how to update them.

The left hand panel navigation links are generated by the left_nav() function in
coursePrint.js.

There is a good deal of information and content hard coded into the HTML files,
as this was generally content that wasn't likely to change for Dr. Mongan each
quarter. Much of this information likely won't apply to you, but you can see how
he did things for examples and change as you wish.

Files used in a Bb Learn course shell are generally stored in that shell's
"content collection."

To link to files in your Bb Learn course shell's content collection, so that
only students enrolled in that course shell can access them, see courseInfo.js,
and enter the correct values for your crn, separator, quartercode, and coursenum.

How to find this info in your Bb Learn course shell:
  1) Click "Content Collection" under "Control Panel".
  2) The line immediately below "Content Collection" when "Content Collection"
    is expanded is what you want.

Non-cross-listed course example:
If 42345.201545 is listed, 42345 is the crn, and 201545 is quartercode.

Cross-listed course example:
If XLSCS283001002003atm_201545 is listed, XLSCS283001002003atm42345 is the crn,
and 201545 is quartercode.

Make sure you are using the correct separator character between the crn and quartercode.

How to find the web URL for a file in your Bb Learn course shell's content collection:
1) Click the line immediately below "Content Collection" when "Content
  Collection" is expanded
2) Hover over a file or folder with your mouse cursor.
3) Click the circled down arrow next to the file or folder
4) Click "360 View".
5) Look at the "Web Folder URL".

Note that Dr. Mongan had a folder in his BB Learn course shells' content
collection corresponding to the coursenum variable set above and seen below
when bblearn_content_base is set. If you don't have a such a folder in your
content collection, change the bblearn_content_base assignment line below
to the following:

bblearn_content_base = "https://learn.dcollege.net/bbcswebdav/courses/" + crn + separator + quartercode;

Create links to files in your Bb Learn course shell by using this format:

bblearn_content_base/file_in_Bb_shell
bblearn_content_base/folder_in_Bb_shell/file_in_Bb_shell

See the lectures variable in courseInfo.js for examples of how to construct
these links.

The lecture.html and syllabus file are the only HTML files here currently that
link to files in a Bb Learn course shell.

***Changes made by Mike Galloway***
Mike moved relevant javascript files to a folder called "scripts" and adjusted
relevant links to those javascript files.
All files converted to UNIX file format.
Tabs replaced with two whitespaces.
Extra line breaks removed.
Trailing spaces in lines removed.
Minor changes made to code to make it more uniform and closed open HTML tags.
Removed the following line:
  <!--This file created 12:41 AM  2/26/00 by Claris Home Page version 3.0-->
Made sure doctype at top of all HTML files was the following:
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
Removed Google Analytics javascript from all webpages.
Removed commented out sections of code from html files.

syllabus.html file used to have this line in <head></head> area:
  <script language="javascript" src="../teaching/courses.js"></script>
But this line and javascript file were removed.
The only variables used in the file were "termcode" and "term".
Those variables were moved to bottom of courseInfo.js.
***Note: old courses.js file said termcode was "201504." That was an error.***