Skip to content
Snippets Groups Projects
Commit 64ab0696 authored by uhensler's avatar uhensler
Browse files

Merge branch 'OpenOLAT_13.2'

parents cc82e935 78099beb
No related branches found
No related tags found
No related merge requests found
...@@ -132,9 +132,7 @@ public class VideoDisplayController extends BasicController { ...@@ -132,9 +132,7 @@ public class VideoDisplayController extends BasicController {
super(ureq, wControl); super(ureq, wControl);
this.videoEntry = videoEntry; this.videoEntry = videoEntry;
this.displayOptions = displayOptions; this.displayOptions = displayOptions;
this.descriptionText = displayOptions.isCustomDescription() this.descriptionText = getDescription(courseNode, displayOptions);
? displayOptions.getDescriptionText()
: courseNode.getLearningObjectives();
mainVC = createVelocityContainer("video_run"); mainVC = createVelocityContainer("video_run");
putInitialPanel(mainVC); putInitialPanel(mainVC);
...@@ -199,6 +197,12 @@ public class VideoDisplayController extends BasicController { ...@@ -199,6 +197,12 @@ public class VideoDisplayController extends BasicController {
} }
} }
} }
private String getDescription(VideoCourseNode courseNode, VideoDisplayOptions displayOptions) {
if (displayOptions.isCustomDescription()) return displayOptions.getDescriptionText();
if (courseNode != null) return courseNode.getLearningObjectives();
return null;
}
public VideoMeta getVideoMetadata() { public VideoMeta getVideoMetadata() {
return videoMetadata; return videoMetadata;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment