File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -152,8 +152,8 @@ public function author_view()
152152
153153 public function preview_view ()
154154 {
155-
156- return ;
155+ $ content = json_decode ( $ this -> opencast_content );
156+ return array ( ' content ' => ( $ content -> title ?: ' Video-ID: ' . $ content -> id )) ;
157157 }
158158
159159 private function getAttrArray ()
Original file line number Diff line number Diff line change @@ -74,6 +74,8 @@ export default AuthorView.extend({
7474 let $opencast_content = { } ;
7575 $opencast_content . id = this . $ ( ".cw-opencast-content option:selected" ) . attr ( 'data-opencastid' ) ;
7676 $opencast_content . useplayer = this . $ ( '.cw-opencast-useocplayer:checked' ) . val ( ) ;
77+ $opencast_content . title = this . $ ( ".cw-opencast-content option:selected" ) . attr ( 'data-episodetitle' ) ;
78+
7779 switch ( $opencast_content . useplayer ) {
7880 case 'theodul' :
7981 default :
Original file line number Diff line number Diff line change 1111 data-urlmp4 =" { { url_mp4} } "
1212 data-urlopencasttheodul =" { { url_opencast_theodul} } "
1313 data-urlopencastpaella =" { { url_opencast_paella} } "
14- data-opencastid =" { { id} } " >
14+ data-opencastid =" { { id} } "
15+ data-episodetitle =" { { title} } " >
1516 { {title} }
1617 </option >
1718 { {/episodes} }
Original file line number Diff line number Diff line change 1-
1+ < p class = " OpenCastBlock-preview-content " > { {content } }</ p >
You can’t perform that action at this time.
0 commit comments