Skip to content
Snippets Groups Projects
Commit 05573be1 authored by Anusha Ranganathan's avatar Anusha Ranganathan
Browse files

Removed abilities and metadata not used by rdms

parent 82db6bf4
No related branches found
No related tags found
2 merge requests!19Develop,!4Customise dataset show page
......@@ -12,124 +12,25 @@
<!-- Accordion body -->
<div id="description" class="panel-collapse collapse in">
<div class="panel-body">
<% if can? :read_identifier, presenter.model_name.name.constantize %>
<%= presenter.attribute_to_html(:doi, label: 'DOI', html_dl: true) %>
<% end %>
<% if can? :read_title, presenter.model_name.name.constantize %>
<%= presenter.attribute_to_html(:title, label: t('Title'), html_dl: true) %>
<% end %>
<% if can? :read_alternative_title, presenter.model_name.name.constantize %>
<%= presenter.attribute_to_html(:alternative_title, label: t('rdms.fields.alternative_title'), html_dl: true) %>
<% end %>
<% if can? :read_creator, presenter.model_name.name.constantize %>
<%= presenter.attribute_to_html(:complex_person, render_as: :nested_person, label: t('rdms.fields.complex_person'), html_dl: true) %>
<% end %>
<% if can? :read_resource_type, presenter.model_name.name.constantize %>
<%= presenter.attribute_to_html(:resource_type, render_as: :faceted, html_dl: true) %>
<% end %>
<% if can? :read_abstract, presenter.model_name.name.constantize %>
<%= presenter.attribute_to_html(:abstract, render_as: :faceted, html_dl: true) %>
<% end %>
<% if can? :read_description, presenter.model_name.name.constantize %>
<%= presenter.attribute_to_html(:description, render_as: :faceted, html_dl: true) %>
<% end %>
<% if can? :read_keyword, presenter.model_name.name.constantize %>
<%= presenter.attribute_to_html(:keyword, render_as: :faceted, html_dl: true) %>
<% end %>
<% if can? :read_subject, presenter.model_name.name.constantize %>
<%= presenter.attribute_to_html(:subject, render_as: :faceted, html_dl: true) %>
<% end %>
<% if can? :read_publisher, presenter.model_name.name.constantize %>
<%= presenter.attribute_to_html(:publisher, render_as: :faceted, html_dl: true) %>
<% end %>
<% if can? :read_language, presenter.model_name.name.constantize %>
<%= presenter.attribute_to_html(:language, render_as: :faceted, html_dl: true) %>
<% end %>
<% if can? :read_date, presenter.model_name.name.constantize %>
<%= presenter.attribute_to_html(:date_created, render_as: :linked, search_field: 'date_created_tesim', html_dl: true) %>
<%= presenter.attribute_to_html(:date_modified, label: t('hyrax.base.show.last_modified'), html_dl: true) %>
<%= presenter.attribute_to_html(:complex_date, render_as: :nested_date, label: t('rdms.fields.complex_date'), html_dl: true) %>
<% end %>
<% if can? :read_identifier, presenter.model_name.name.constantize %>
<%= presenter.attribute_to_html(:complex_identifier, render_as: :nested_identifier, label: t('rdms.fields.complex_identifier'), html_dl: true) %>
<% end %>
<% if can? :read_funding_reference, presenter.model_name.name.constantize %>
<%= presenter.attribute_to_html(:complex_funding_reference, render_as: :nested_funding_reference, label: t('rdms.fields.complex_funding_reference'), html_dl: true) %>
<% end %>
<% if can? :read_related, presenter.model_name.name.constantize %>
<%= presenter.attribute_to_html(:complex_relation, render_as: :nested_relation, label: t('rdms.fields.complex_relation'), html_dl: true) %>
<% end %>
<%= presenter.attribute_to_html(:doi, label: 'DOI', html_dl: true) %>
<%= presenter.attribute_to_html(:title, label: t('Title'), html_dl: true) %>
<%= presenter.attribute_to_html(:alternative_title, label: t('rdms.fields.alternative_title'), html_dl: true) %>
<%= presenter.attribute_to_html(:complex_person, render_as: :nested_person, label: t('rdms.fields.complex_person'), html_dl: true) %>
<%= presenter.attribute_to_html(:resource_type, render_as: :faceted, html_dl: true) %>
<%= presenter.attribute_to_html(:abstract, render_as: :faceted, html_dl: true) %>
<%= presenter.attribute_to_html(:description, render_as: :faceted, html_dl: true) %>
<%= presenter.attribute_to_html(:keyword, render_as: :faceted, html_dl: true) %>
<%= presenter.attribute_to_html(:subject, render_as: :faceted, html_dl: true) %>
<%= presenter.attribute_to_html(:publisher, render_as: :faceted, html_dl: true) %>
<%= presenter.attribute_to_html(:language, render_as: :faceted, html_dl: true) %>
<%= presenter.attribute_to_html(:date_created, render_as: :linked, search_field: 'date_created_tesim', html_dl: true) %>
<%= presenter.attribute_to_html(:date_modified, label: t('hyrax.base.show.last_modified'), html_dl: true) %>
<%= presenter.attribute_to_html(:complex_date, render_as: :nested_date, label: t('rdms.fields.complex_date'), html_dl: true) %>
<%= presenter.attribute_to_html(:complex_identifier, render_as: :nested_identifier, label: t('rdms.fields.complex_identifier'), html_dl: true) %>
<%= presenter.attribute_to_html(:complex_funding_reference, render_as: :nested_funding_reference, label: t('rdms.fields.complex_funding_reference'), html_dl: true) %>
<%= presenter.attribute_to_html(:complex_relation, render_as: :nested_relation, label: t('rdms.fields.complex_relation'), html_dl: true) %>
</div> <!-- panel body -->
</div> <!-- Accordion body -->
</div> <!-- Description accordion -->
<!-- Method accordion -->
<div class="panel panel-default">
<!-- Accordion header -->
<div class="panel-heading" data-toggle="collapse" data-target="#experimentalMethod">
<h4 class="panel-title">
<a class="accordion-toggle">Method</a>
</h4>
</div> <!-- Accordion header -->
<!-- Accordion body -->
<div id="experimentalMethod" class="panel-collapse collapse in">
<div class="panel-body">
<%= presenter.attribute_to_html(:characterization_methods, render_as: :faceted, label: t('rdms.fields.characterization_methods'), html_dl: true) %>
<%= presenter.attribute_to_html(:computational_methods, render_as: :faceted, label: t('rdms.fields.computational_methods'), html_dl: true) %>
<%= presenter.attribute_to_html(:origin_system_provenance, label: t('rdms.fields.origin_system_provenance'), html_dl: true) %>
<%= presenter.attribute_to_html(:properties_addressed, render_as: :faceted, label: t('rdms.fields.properties_addressed'), html_dl: true) %>
<%= presenter.attribute_to_html(:synthesis_and_processing, render_as: :faceted, label: t('rdms.fields.synthesis_and_processing'), html_dl: true) %>
</div> <!-- panel body -->
</div> <!-- Accordion body -->
</div> <!-- Method accordion -->
<!-- Instruments accordion -->
<div class="panel panel-default">
<!-- Accordion header -->
<div class="panel-heading" data-toggle="collapse" data-target="#instrument">
<h4 class="panel-title">
<a class="accordion-toggle">Instruments</a>
</h4>
</div> <!-- Accordion header -->
<!-- Accordion body -->
<div id="instrument" class="panel-collapse collapse in">
<div class="panel-body">
<%= presenter.attribute_to_html(:complex_instrument, render_as: :nested_instrument, label: t('rdms.fields.instrument'), html_dl: true) %>
</div> <!-- panel body -->
</div> <!-- Accordion body -->
</div> <!-- Instruments accordion -->
<!-- Specimen details accordion -->
<div class="panel panel-default">
<!-- Accordion header -->
<div class="panel-heading" data-toggle="collapse" data-target="#specimenType">
<h4 class="panel-title">
<a class="accordion-toggle">Specimen details</a>
</h4>
</div> <!-- Accordion header -->
<!-- Accordion body -->
<div id="specimenType" class="panel-collapse collapse in">
<div class="panel-body">
<%= presenter.attribute_to_html(:material_type, label: t('rdms.fields.material_type'), html_dl: true) %>
<%= presenter.attribute_to_html(:complex_specimen_type, render_as: :nested_specimen_type, label: t('rdms.fields.complex_specimen_type'), html_dl: true) %>
</div> <!-- panel body -->
</div> <!-- Accordion body -->
</div> <!-- Specimen details accordion -->
</div>
<!-- Accordion wrapper -->
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment