-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit allows videos to be embedded into a Generic Work. When the value is present, an embedded video should display. related: - https://github.com/scientist-softserv/atla-hyku/pull/34/files Issue: - #911
- Loading branch information
1 parent
3f80715
commit b834101
Showing
12 changed files
with
121 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<%# OVERRIDE Hyrax 3.6.0 to remove the broken error alerts from form validations %> | ||
<%= simple_form_for [main_app, @form], | ||
html: { | ||
data: { behavior: 'work-form', | ||
'param-key' => @form.model_name.param_key }, | ||
multipart: true | ||
} do |f| %> | ||
<%# OVERRIDE Here to remove broken error alert from form validation %> | ||
<% if Flipflop.batch_upload? && !f.object.persisted? %> | ||
<% provide :metadata_tab do %> | ||
<p class="switch-upload-type"><%= t('.batch_upload_hint') %> <%= link_to t('.batch_link'), hyrax.new_batch_upload_path(payload_concern: @form.model.class) %></p> | ||
<% end %> | ||
<% end %> | ||
<%= render 'hyrax/base/guts4form', f: f, tabs: form_tabs_for(form: f.object) %> | ||
<% end %> | ||
|
||
<script type="text/javascript"> | ||
Blacklight.onLoad(function() { | ||
<%# This causes the page to switch back to the default template if they've | ||
previously visited the batch download page in this Turbolinks session %> | ||
$("#fileupload").fileupload('option', 'downloadTemplateId', 'template-download') | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div class="col-sm-12"> | ||
<iframe class='video-embed-viewer' src="<%="#{@presenter.solr_document[:video_embed_tesim].first}"%>" title="Video Player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<%# OVERRIDE from Hyrax 3.6.0 to hide broken flash messages on the dashboard edit work pages %> | ||
|
||
<!DOCTYPE html> | ||
<html lang="<%= I18n.locale.to_s %>" prefix="og:http://ogp.me/ns#"> | ||
<head> | ||
<%= render partial: 'layouts/head_tag_content' %> | ||
<%= content_for(:head) %> | ||
</head> | ||
|
||
<body class="dashboard"> | ||
<div class="skip-to-content"> | ||
<%= link_to "Skip to Content", "#skip-to-content" %> | ||
</div> | ||
<%= render '/masthead' %> | ||
<%= content_for(:navbar) %> | ||
<div id="content-wrapper" role="main"> | ||
<div class="sidebar maximized"> | ||
<%= render 'hyrax/dashboard/sidebar' %> | ||
</div> | ||
<div class="main-content maximized"> | ||
<%# OVERRIDE here to hide broken flash messages on the dashboard edit work pages. %> | ||
<%# regex includes only the paths for works since this is the only known place flash messages are broken. %> | ||
<%= render '/flash_msg' %> | ||
<%= render_breadcrumbs builder: Hyrax::BootstrapBreadcrumbsBuilder %> | ||
<% if content_for?(:page_header) %> | ||
<div class="row"> | ||
<div class="col-xs-12 main-header"> | ||
<%= yield(:page_header) %> | ||
</div> | ||
</div> | ||
<% end %> | ||
|
||
<a name="skip-to-content" id="skip-to-content"></a> | ||
<%= content_for?(:content) ? yield(:content) : yield %> | ||
|
||
</div> | ||
|
||
</div><!-- /#content-wrapper --> | ||
<%= render 'shared/ajax_modal' %> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters