|
4 | 4 | <div class="cds-detail-video cds-detail-video-wrapper bg-n pb-20"> |
5 | 5 | <!-- Video Section --> |
6 | 6 | <div ng-if="record.metadata.recid && (record | findMaster).key" class="bg-b"> |
7 | | - <div class="cds-video-iframe text-center"> |
8 | | - <iframe scrolling="no" |
9 | | - width="100%" |
10 | | - height="100%" |
11 | | - frameborder="0" |
12 | | - ng-src="{{ '' | previewIframeSrc: record.metadata.recid:(record | findMaster).key }}" |
13 | | - allowfullscreen> |
14 | | - </iframe> |
| 7 | + <div ng-class="{ 'container-fluid': showTranscript }"> |
| 8 | + <div ng-class="{ 'row': (record.metadata._files | filter:{context_type:'subtitle', content_type:'vtt'}).length > 0 && showTranscript }"> |
| 9 | + <div ng-class="{ 'col-md-8': (record.metadata._files | filter:{context_type:'subtitle', content_type:'vtt'}).length > 0 && showTranscript }"> |
| 10 | + <div class="cds-video-iframe text-center"> |
| 11 | + <iframe scrolling="no" |
| 12 | + width="100%" |
| 13 | + height="100%" |
| 14 | + frameborder="0" |
| 15 | + ng-src="{{ '' | previewIframeSrc: record.metadata.recid:(record | findMaster).key }}" |
| 16 | + allowfullscreen> |
| 17 | + </iframe> |
| 18 | + </div> |
| 19 | + </div> |
| 20 | + <!-- Section Transcriptions --> |
| 21 | + <div ng-show="(record.metadata._files | filter:{context_type:'subtitle', content_type:'vtt'}).length > 0 && showTranscript" class="col-md-4 bg-b"> |
| 22 | + <div |
| 23 | + id="transcriptionsSection" |
| 24 | + class="cds-detail cds-detail-video cds-div-shadow bg-w pt-10 px-20 pb-10 mb-30 mt-20 t-b" |
| 25 | + > |
| 26 | + <div class="pb-20"> |
| 27 | + <h3 class="bt bw-1 pt-10 mb-0"> |
| 28 | + <i class="fa fa-align-left"></i> Transcription |
| 29 | + <div class="pull-right"><i class="fa fa-close transcription-close" ng-click="toggleTranscript()"></i></div> |
| 30 | + </h3> |
| 31 | + </div> |
| 32 | + <input type="text" |
| 33 | + class="form-control mb-10" |
| 34 | + placeholder="Search transcript..." |
| 35 | + ng-model="transcriptSearch" |
| 36 | + ng-change="filterTranscript()"> |
| 37 | + <div> |
| 38 | + <div |
| 39 | + class="panel panel-default" |
| 40 | + style="max-height: 300px; overflow-y: auto;" |
| 41 | + ng-show="filteredTranscript.length > 0"> |
| 42 | + <div class="panel-body p-0"> |
| 43 | + <ul class="list-unstyled mb-0"> |
| 44 | + <li ng-repeat="line in filteredTranscript" |
| 45 | + ng-click="seekTo(line.start)" |
| 46 | + class="mb-10 transcript-line" |
| 47 | + ng-class="{ 'active': currentTranscriptLine === line }" |
| 48 | + style="cursor: pointer;"> |
| 49 | + <a> |
| 50 | + <strong>{{ convertToMinutesSeconds(line.start) }} - {{ convertToMinutesSeconds(line.end) }}</strong> |
| 51 | + </a> |
| 52 | + <div class="cds-deposit-frame-thumbnail-label"> |
| 53 | + {{ line.text }} |
| 54 | + </div> |
| 55 | + </li> |
| 56 | + </ul> |
| 57 | + </div> |
| 58 | + </div> |
| 59 | + <div class="form-group mb-10"> |
| 60 | + <label for="languageSelect">Transcript Language:</label> |
| 61 | + <select |
| 62 | + id="languageSelect" |
| 63 | + class="form-control" |
| 64 | + ng-model="selectedTranscriptLanguage" |
| 65 | + ng-options="lang as (lang | isoToLanguage) for (lang, _) in transcriptsByLanguage" |
| 66 | + ng-change="setTranscriptLanguage(selectedTranscriptLanguage)" |
| 67 | + ></select> |
| 68 | + </div> |
| 69 | + </div> |
| 70 | + </div> |
| 71 | + </div> |
15 | 72 | </div> |
16 | 73 | </div> |
| 74 | + <!-- /Section Transcriptions --> |
17 | 75 | <!-- /Video Section --> |
18 | 76 | <!-- Metadata Section --> |
19 | 77 | <div class="container-fluid"> |
@@ -181,6 +239,7 @@ <h4>{{translation.title.title}}</h4> |
181 | 239 | </li> |
182 | 240 | </ul> |
183 | 241 | </div> |
| 242 | + <!-- License --> |
184 | 243 | </div> |
185 | 244 | </div> |
186 | 245 | <!-- Related links --> |
@@ -237,56 +296,6 @@ <h3 class="cds-title-section-decoration bt bw-1 pt-10 mb-20"><i class="fa fa-sha |
237 | 296 | <!-- /Left Column --> |
238 | 297 | <!-- Right Column --> |
239 | 298 | <div class="col-md-4"> |
240 | | - <!-- Section Transcriptions --> |
241 | | - <div |
242 | | - id="transcriptionsSection" |
243 | | - class="cds-detail cds-detail-video cds-div-shadow bg-w pt-10 px-20 pb-10 mb-30 mt-20 t-b" |
244 | | - ng-show="(record.metadata._files | filter:{context_type:'subtitle', content_type:'vtt'}).length > 0 && showTranscript" > |
245 | | - <div class="cds-detail-title cds-detail-video-title pb-20"> |
246 | | - <h3 class="cds-title-section-decoration bt bw-1 pt-10 mb-0"> |
247 | | - <i class="fa fa-align-left"></i> Transcription |
248 | | - </h3> |
249 | | - </div> |
250 | | - <input type="text" |
251 | | - class="form-control mb-10" |
252 | | - placeholder="Search transcript..." |
253 | | - ng-model="transcriptSearch" |
254 | | - ng-change="filterTranscript()"> |
255 | | - <div> |
256 | | - <div |
257 | | - class="panel panel-default" |
258 | | - style="max-height: 300px; overflow-y: auto;" |
259 | | - ng-show="filteredTranscript.length > 0"> |
260 | | - <div class="panel-body p-0"> |
261 | | - <ul class="list-unstyled mb-0"> |
262 | | - <li ng-repeat="line in filteredTranscript" |
263 | | - ng-click="seekTo(line.start)" |
264 | | - class="mb-10 transcript-line" |
265 | | - ng-class="{ 'active': currentTranscriptLine === line }" |
266 | | - style="cursor: pointer;"> |
267 | | - <a> |
268 | | - <strong>{{ convertToMinutesSeconds(line.start) }} - {{ convertToMinutesSeconds(line.end) }}</strong> |
269 | | - </a> |
270 | | - <div class="cds-deposit-frame-thumbnail-label"> |
271 | | - {{ line.text }} |
272 | | - </div> |
273 | | - </li> |
274 | | - </ul> |
275 | | - </div> |
276 | | - </div> |
277 | | - <div class="form-group mb-10"> |
278 | | - <label for="languageSelect">Transcript Language:</label> |
279 | | - <select |
280 | | - id="languageSelect" |
281 | | - class="form-control" |
282 | | - ng-model="selectedTranscriptLanguage" |
283 | | - ng-options="lang as (lang | isoToLanguage) for (lang, _) in transcriptsByLanguage" |
284 | | - ng-change="setTranscriptLanguage(selectedTranscriptLanguage)" |
285 | | - ></select> |
286 | | - </div> |
287 | | - </div> |
288 | | - </div> |
289 | | - <!-- /Section Transcriptions --> |
290 | 299 | <!-- Section Download --> |
291 | 300 | <div class="cds-detail cds-detail-video cds-div-shadow bg-w pt-10 px-20 pb-10 mb-30 mt-20 t-b"> |
292 | 301 | <ng-include src="'/static/templates/cds_records/video/downloads.html'"></ng-include> |
|
0 commit comments