Skip to content
Snippets Groups Projects
Commit 78099beb authored by uhensler's avatar uhensler
Browse files

OO-4070: RS when open a video resource in author list

parent 42ac7f46
No related branches found
No related tags found
No related merge requests found
......@@ -132,9 +132,7 @@ public class VideoDisplayController extends BasicController {
super(ureq, wControl);
this.videoEntry = videoEntry;
this.displayOptions = displayOptions;
this.descriptionText = displayOptions.isCustomDescription()
? displayOptions.getDescriptionText()
: courseNode.getLearningObjectives();
this.descriptionText = getDescription(courseNode, displayOptions);
mainVC = createVelocityContainer("video_run");
putInitialPanel(mainVC);
......@@ -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() {
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