Skip to content

This guide provides instructions and information about Stanford Web Services Jumpstart platform, based on Drupal 7.

We've released our new Stanford Sites on Drupal 8 (D8) platform — the new framework for Stanford Sites in 2020 and beyond. Check out our new User Guide to help you set up your website on the D8 platform. 

Read more about our road to D8 

Course Importer

Course Importer

The course importer uses RSS feeds to import courses from  https://explorecourses.stanford.edu/ and can display them on your site.  If your website is on the Stanford Sites service, this module is already installed for you. Otherwise, you can download it from the Stanford Drupal Features server at http://drupalfeatures.stanford.edu/project/stanford-courses.

Site Owners can create, edit and delete course importers.

Once installed on your site, you can find documentation for the Stanford Courses module on your site at admin/help/stanford_courses.

How it works:

To use the Stanford Course Importer you’ll need to create a Stanford Course Importer node and give it a feed URL that specifies the search criteria for the courses to import from Explore Courses. The importer retrieves course information, and for each course, creates and populates a course node with the course information.

Creating the Stanford Course Importer and importing courses

Before starting, be sure to have the following information ready:

  • Title of your course importer

  • Feed URL from explorecourses.stanford.edu

  • Optionally, a description of your importer

 

Get the feed URL:

  1. Navigate to http://explorecourses.stanford.edu/

  2. Enter the search criteria which will list the courses you wish to import

  3. Your search will result in a long URL like this being displayed in the address bar of your browser:

  4. https://explorecourses.stanford.edu/search?view=catalog&page=0&q=FINANCE&filter-catalognumber-FINANCE=on&filter-coursestatus-Active=on

  5. Copy that URL from your browser's address bar for use as your feed URL

 

Create the course importer:

  1. From the Site Actions Menu, select Add Stanford Course Importer (node/add/stanford-course-importer)

You should see the following screen:

 

2. Paste the feed URL from your search at explorecourses.stanford.edu

3. Optionally, enter your description of your importer in body text area

4. Scroll to the bottom of the page and select “Save”

Upon first saving the course importer, the importer will immediately import the items from the feed.  Be prepared, this may take some time.

 

Verify the import

To verify that the importer imported the course you were expecting, first, verify that the number of nodes created corresponds with what you expect. This number should display when the import finishes.

To check that the courses imported are the ones you expect:

  1. Select “Manage Content” from the Site Actions Menu to bring up the manage content page

  2. Under “Type” filter select “Course Importer”  

  3. Click on “Apply”

  4. If necessary, sort by date by clicking on the “Updated” column header

  5. Check that the most recent courses reflect the information that you expected

Updating the importer

Did you forget to add a tag to the courses you imported?  Maybe you imported the wrong feed?  Not to worry. Here’s how to update or change the importer and the items you’ve imported.

  1. Find the Stanford Course Importer node you originally used to import the items.

    1. Select “Manage Content” from the Site Actions Menu

    2. On the content page, under “Type” select “Course Importer”

    3. Click on “Apply”

    4. Scroll through the list until you find the importer to update

    5. Select the importer by clicking on the title

 

Tabs you should see:

2. Delete all the courses imported using this importer​

  1. On the importer node, select the “Delete Items” tab​
  2. Click on “Delete” to confirm

3. Make your changes

  1. On the importer node, Select “Edit”

  2. Make your changes to the importer

  3. Scroll to the bottom of the page and click on “Save” to save your changes​

4. After saving, import the courses with the new criteria

  1. Select “Import”

  2. Click on “Import” to confirm