Related Works

List works that are related to this one.

<%= form_for [:curation_concern, curation_concern], method: :patch, html: {id:"edit_related_works"} do |f| %> <%#= f.select :related_work_ids, options_from_collection_for_select(curation_concern.related_works, :id, :title, curation_concern.related_work_ids),{include_hidden: false}, { multiple: true, class:"autocomplete chosen-select", "data-source"=>catalog_index_path, "data-exclude"=>"#{curation_concern.pid}", "data-placeholder"=>"Choose works to associate..."} %> <%= f.text_field :related_work_tokens, class:"autocomplete tokens", "data-url"=>catalog_index_path, "data-load"=>curation_concern.related_works.to_json, "data-exclude"=>"[#{curation_concern.pid.inspect}]" %> <%= f.submit "Update Related Works", class: 'btn btn-primary' %> <% end %> <% if curation_concern.referenced_by_works.present? %> <% curation_concern.referenced_by_works.each do |related_work| %> <% end %> <% end %>

Referenced by

Works that list this one in as being related to them.

Work Title
<%= link_to related_work.title, polymorphic_path([:curation_concern, related_work]) %>