Giter Site home page Giter Site logo

su-sws / stanford_courses Goto Github PK

View Code? Open in Web Editor NEW
3.0 31.0 5.0 650 KB

Drupal module for pulling course information from explorecourses.stanford.edu

License: GNU General Public License v2.0

PHP 68.77% JavaScript 14.77% SCSS 7.83% Twig 8.63%
d7 module

stanford_courses's Introduction

Version: 8.x-2.x

Maintainers: Mike Decker, sherakama

Changelog: Changelog.txt

Description

The Stanford Courses module is used to import course information from ExploreCourses and format it for use in the Stanford Sites environments.

Accessibility

WCAG Conformance 2.0 AA Badge Evaluation Date: 201X-XX-XX This module conforms to level AA WCAG 2.0 standards as required by the university's accessibility policy. For more information on the policy please visit: https://ucomm.stanford.edu/policies/accessibility-policy.html.

Installation

Install this module like any other module. See Drupal Documentation

Configuration

Nothing special needed.

Troubleshooting

If you are experiencing issues with this module try reverting the feature first. If you are still experiencing issues try posting an issue on the GitHub issues page.

Developer

If you wish to develop on this module you will most likely need to compile some new css. Please use the sass structure provided and compile with the sass compiler packaged in this module. To install:

npm install
npm run build

Contribution / Collaboration

You are welcome to contribute functionality, bug fixes, or documentation to this module. If you would like to suggest a fix or new functionality you may add a new issue to the GitHub issue queue or you may fork this repository and submit a pull request. For more help please see GitHub's article on fork, branch, and pull requests

stanford_courses's People

Contributors

agsdot avatar boznik avatar cjwest avatar cynmij avatar epicfaace avatar imonroe avatar jbickar avatar jdwjdwjdw avatar jenbreese avatar kmakitan avatar pookmish avatar sherakama avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stanford_courses's Issues

Layout shows label "body" and title does not have a heading tag/not visible

Describe the bug
Page for an individual course has several layout issues https://irinazaks.sites.stanford.edu/node/786

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://irinazaks.sites.stanford.edu/node/786
  2. See "Body" between node title and node body field

Expected behavior

Screenshots
Screen Shot 2022-06-09 at 3 40 00 PM

Desktop (please complete the following information):

  • OS: Mac
  • Browser: All browsers
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Add http specification to help text

Putting in a https URL causes the import to fail with an ugly error. At the least, put this in the help text; if possible, do some validation?

Provide a permalink to course page on Explore Courses

In cases where we want to link directly to a course's detail page on the Explore Courses website, it would be helpful to have a permalink returned in the feed.

In lieu of that, I've created links by passing the Course ID and Course Code as search parameters. The problem is that the Course Code value includes an ampersand for "MS&E". I got around this by creating a custom field template that passes the value I get from the feed through urlencode().

Add year to GUID

concat(administrativeInformation/courseId,"-",subject,"-",code,"-",year)

Nodereference View

Create a View that shows Courses as parent nodes, with all their children (Course Section nodes)

Provide means to update node references

Currently, automatic node references only get created when the import form is submitted.

Provide a form via hook_menu() to import them manually. Also a drush command.

Investigate whether it's possible/advisable to update them on cron run.

DateTimeZone error

On import:

  • warning: DateTimeZone::__construct() [datetimezone.--construct http://www.example.com/import/datetimezone.--construct]: Unknown or bad timezone (�) in /sites/all/modules/feeds/plugins/FeedsParser.inc on line 558.
  • warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, null given in /sites/all/modules/feeds/plugins/FeedsParser.inc on line 565.

Adding full course subject + school

Using a lookup table we can also get

What school a course is under. For example

Accounting (ACCT) => Graduate School of Business

We can also get the full course subject. For example

ACCT => Accounting.

h2. Deployment instruction:

  1. Apply the patch below
    http://www.privatepaste.com/32c657fe27
  2. Download the "import" dir and place it under the module directory
    https://www.dropbox.com/sh/2isblue3875cqro/JcVz4fj4Rz

This is still a rough patch but now the importer should add 2 new fields to the "stanford_course" content type

a. Subject (Full)
b. School

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.