Skip to content

Commit

Permalink
Ticket 657 (#672)
Browse files Browse the repository at this point in the history
* working on migrating virtual playlists to real ones

* remove video-course-connection on ui

* working out some bugs and kinks

* create course playlist

* working on correct video discovery

* simplify loading of videos in playlist, fix http error 500

* fix typo

* allow adding and editing if playlists in a course

* choose default playlist if none is selected

* fix plyalist management

* some cleaning up

* update docs and remove obsolete code

* remove commented code snippet

* remove obsolete use statement

* remove unused global

* fix typo

* remove commented code
  • Loading branch information
tgloeggl authored Jan 11, 2023
1 parent 13f1e6d commit d206223
Show file tree
Hide file tree
Showing 35 changed files with 1,343 additions and 813 deletions.
6 changes: 3 additions & 3 deletions OpenCast.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function __construct()
$videos = new Navigation($this->_('Videos/Opencast'));
$videos->setDescription($this->_('Opencast Aufzeichnungen'));
$videos->setImage(Icon::create($this->assetsUrl . '/images/opencast-courseware.svg'));
$videos->setURL(PluginEngine::getURL($this, [], 'contents/index'));
$videos->setURL(PluginEngine::getURL($this, [], 'contents/index#/contents/videos'));

// use correct navigation for Stud.IP Versions below 5
VersionHelper::get()->addMainNavigation($videos);
Expand Down Expand Up @@ -129,7 +129,7 @@ public function getIconNavigation($course_id, $last_visit, $user_id = null)
{
$navigation = new Navigation(
$this->_('Videos/Opencast'),
PluginEngine::getURL($this, [], 'course')
PluginEngine::getURL($this, [], 'course/#/course/videos')
);
$navigation->setImage(Icon::create('video2'));

Expand Down Expand Up @@ -169,7 +169,7 @@ public function getTabNavigation($course_id)

$main = new Navigation(
$this->_($title),
PluginEngine::getURL($this, [], 'course')
PluginEngine::getURL($this, [], 'course#/course/videos')
);
$main->setImage(Icon::create('video2'));

Expand Down
2 changes: 1 addition & 1 deletion bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
// adding observer
NotificationCenter::addObserver('Opencast\Models\Videos', 'parseEvent', 'OpencastVideoSync');
NotificationCenter::addObserver('Opencast\Models\Videos', 'checkEventACL', 'OpencastVideoSync');
NotificationCenter::addObserver('Opencast\Models\Videos', 'addToCoursePlaylist', 'OpencastVideoSync');
NotificationCenter::addObserver('Opencast\Models\VideosUserPerms', 'setPermissions', 'OpencastVideoSync');
NotificationCenter::addObserver('Opencast\Models\VideoSeminars', 'videoSeminarEntry', 'OpencastVideoSync');
68 changes: 39 additions & 29 deletions docs/studip_opencast_routes.html

Large diffs are not rendered by default.

Loading

0 comments on commit d206223

Please sign in to comment.