Skip to content

Commit

Permalink
Merge pull request #21 from uriweb/release-1.5.1
Browse files Browse the repository at this point in the history
Release 1.5.1
  • Loading branch information
alexandragauss authored Jan 8, 2025
2 parents 5649a26 + b4a90e4 commit d5ca67a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

A tool that makes it easy to embed dynamic course data from Kuali.

## What's new in v1.5.0
## What's new in v1.5.1

- Displays the first version of each course, removing duplicates.
- Displays the first version of each course, removing duplicates. Applies to complete course lists as well as when only a single course is called.

## Example Usage

Expand All @@ -16,6 +16,6 @@ __Contributors:__ [bjcfuller](https://github.com/bjcfuller), [alexandragauss](ht
__Tags:__ plugins, shortcodes
__Requires at least:__ 5.0
__Tested up to:__ 6.7.1
__Stable tag:__ 1.5.0
__Stable tag:__ 1.5.1
__License:__ GPL-3.0
__Licence URI:__ https://www.gnu.org/licenses/gpl-3.0.html
6 changes: 4 additions & 2 deletions inc/uri-kuali-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ function uri_kuali_api_get_courses( $id, $atts ) {

/* If a course number is specified, build URL for single course */
else {
$url = $api_base . '/cm/courses/queryAll?subjectCode=' . $id . '&number=' . $atts['number'] . '&status=active';
return uri_kuali_get_data( $url );
$url = $api_base . '/cm/courses/queryAll?subjectCode=' . $id . '&number=' . $atts['number'] . '&status=active&fields=number,title,description,_id,pid';
$getdata = uri_kuali_get_data($url);
$course_list = uri_kuali_api_return_newest_course_versions( $getdata->res, $url );
return $course_list;
}
}
2 changes: 1 addition & 1 deletion uri-kuali.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: URI Kuali
Plugin URI: https://www.uri.edu
Description: Implements a shortcode to display course data from Kuali's API. [courses subject="AAF"]
Version: 1.5.0
Version: 1.5.1
Author: Brandon Fuller
Author: Alexandra Gauss
Author URI:
Expand Down

0 comments on commit d5ca67a

Please sign in to comment.