<% if user_can?('update_event_record') && !record.suppressed %>
<%= render_aspace_partial :partial => "shared/event_dropdown", :locals => {:record => record} %>
<% end %>
<%= button_confirm_action(I18n.t("actions.publish"),
url_for({:action => :publish, :id => record.id}),
{
:class => "btn btn-sm btn-default",
:"data-title" => I18n.t("actions.publish_confirm_title"),
:"data-message" => I18n.t("actions.publish_confirm_message"),
:"data-confirm-btn-label" => "#{I18n.t("actions.publish")}",
:"data-confirm-btn-class" => "btn-primary",
}) %>
<% if record.publish %>
<%= link_to I18n.t("actions.view_published"), File.join(AppConfig[:public_proxy_url], record.uri).to_s, :target => "_blank", :class => "btn btn-sm btn-default" %>
<% end %>
<% if user_can?('merge_archival_record') %>
<%=
render_aspace_partial :partial => "shared/merge_dropdown",
:locals => {:record => record,
:multiplicity => "one",
:controller => controller.controller_name,
:confirmation_title => I18n.t("actions.merge_confirm_title"),
:confirmation_msg => I18n.t("actions.merge_resource_confirm_message",
:source => record.title)}
%>
<% end %>
<% if user_can?('transfer_archival_record') %>
<%=
render_aspace_partial :partial => "shared/transfer_dropdown",
:locals => {:record => record,
:controller => controller.controller_name,
:confirmation_title => I18n.t("actions.transfer_confirm_title"),
:confirmation_msg => I18n.t("actions.transfer_confirm_message",
:target => record.title)}
%>
<% end %>
<% if user_can?('suppress_archival_record') %>
<% if record.suppressed %>
<%= button_confirm_action I18n.t("actions.unsuppress"),
url_for(:action => :unsuppress, :id => record.id),
{
:class => "btn btn-sm btn-default unsuppress-record",
:"data-title" => I18n.t("actions.unsuppress_confirm_title"),
:"data-message" => I18n.t("actions.unsuppress_confirm_message"),
:"data-confirm-btn-label" => "#{I18n.t("actions.unsuppress")}"
}
%>
<% else %>
<%= button_confirm_action I18n.t("actions.suppress"),
url_for(:action => :suppress, :id => record.id),
{
:class => "btn btn-sm btn-warning suppress-record",
:"data-title" => I18n.t("actions.suppress_confirm_title"),
:"data-message" => I18n.t("actions.suppress_confirm_message"),
:"data-confirm-btn-label" => "#{I18n.t("actions.suppress")}",
:"data-confirm-btn-class" => "btn-warning"
}
%>
<% end %>
<% end %>
<% if user_can?('delete_archival_record') %>
<%= button_delete_action url_for(:action => :delete, :id => record.id) %>
<% end %>