Created
June 7, 2016 12:32
-
-
Save cfitz/c647d253da5fe2a1cd9d26077f1273a6 to your computer and use it in GitHub Desktop.
adding root record id to an archival object summary
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
<fieldset class="form-horizontal"> | |
<section id="summary"> | |
<h3><%= I18n.t("archival_object._public.section.summary") %></h3> | |
<dl class="dl-horizontal"> | |
<%= label_and_value I18n.t("archival_object.component_id"), archival_object['component_id'] %> | |
<%= label_and_value I18n.t("archival_object.level"), i18n_enum(:archival_object, 'level', archival_object['level']) %> | |
<%= label_and_value I18n.t("archival_object.language"), i18n_enum(:archival_object, 'language', archival_object['language']) %> | |
<%= label_and_value "Root Record ID", @tree_view["path_to_root"].first["id"] %> | |
</dl> | |
</section> | |
<%= render_aspace_partial :partial => "dates", :locals => {:dates => archival_object['dates']} %> | |
<%= render_aspace_partial :partial => "extents", :locals => {:extents => archival_object['extents']} %> | |
<%= render_aspace_partial :partial => "agents", :locals => {:linked_agents => archival_object.published_agents} %> | |
<%= render_aspace_partial :partial => "subjects", :locals => {:subjects => archival_object['subjects']} %> | |
<%= render_aspace_partial :partial => "notes", :locals => {:notes => archival_object.published_notes} %> | |
<%= render_aspace_partial :partial => "external_documents", :locals => {:external_documents => archival_object.published_external_documents} %> | |
<%= render_aspace_partial :partial => "instances", :locals => {:instances => archival_object.published_instances} %> | |
<%= render_aspace_partial :partial => "components", :locals => { | |
:record_type => "archival_object", | |
:root_uri => archival_object.uri, | |
} | |
%> | |
</fieldset> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment