<%= setup_context(:object => @accession) %>
<%= render_aspace_partial :partial => "sidebar" %>
<%= render_aspace_partial :partial => "accessions/toolbar" %>
<%= readonly_context :accession, @accession do |readonly| %>

<%= @accession.display_string %> <%= I18n.t("accession._singular") %>

<%= render_aspace_partial :partial => "shared/flash_messages" %> <% define_template "accession", jsonmodel_definition(:accession) do |form| %>

<%= I18n.t "accession._frontend.section.basic_information" %>

<%= readonly.label_and_textarea "title" %> <%= readonly.label_and_fourpartid %> <%= readonly.label_and_date "accession_date" %> <%= readonly.label_and_textarea "content_description" %> <%= readonly.label_and_textarea "condition_description" %> <%= readonly.label_and_textarea "disposition" %> <%= readonly.label_and_textarea "inventory" %> <%= readonly.label_and_textarea "provenance" %> <%= readonly.label_and_textarea "retention_rule" %> <%= readonly.label_and_textarea "general_note" %> <%= readonly.label_and_select "acquisition_type", readonly.possible_options_for("acquisition_type", true) %> <%= readonly.label_and_select "resource_type", readonly.possible_options_for("resource_type", true) %> <%= readonly.label_and_boolean "restrictions_apply" %> <%= readonly.label_and_boolean "publish" %> <%= readonly.label_and_boolean "access_restrictions" %> <%= readonly.label_and_textarea "access_restrictions_note" %> <%= readonly.label_and_boolean "use_restrictions" %> <%= readonly.label_and_textarea "use_restrictions_note" %> <%= display_audit_info(@accession) %>
<% end %> <% readonly.emit_template("accession") %> <% if @accession.dates.length > 0 %> <%= render_aspace_partial :partial => "dates/show", :locals => { :dates => @accession.dates, :section_id => "accession_dates_" } %> <% end %> <% if @accession.extents.length > 0 %> <%= render_aspace_partial :partial => "extents/show", :locals => { :extents => @accession.extents, :section_id => "accession_extents_" } %> <% end %> <% if @accession.linked_agents.length > 0 %> <%= render_aspace_partial :partial => "linked_agents/show", :locals => { :linked_agents => @accession.linked_agents, :section_id => "accession_linked_agents_" } %> <% end %> <% if @accession.related_resources.length > 0 %> <%= render_aspace_partial :partial => "related_resources/show", :locals => { :related_resources => @accession.related_resources, :section_id => "accession_related_resources_" } %> <% end %> <% if @accession.related_accessions.length > 0 %> <%= render_aspace_partial :partial => "interrelated_accessions/show", :locals => { :related_accessions => @accession.related_accessions, :section_id => "accession_related_accessions_" } %> <% end %> <% if not @accession.subjects.blank? %> <%= render_aspace_partial :partial => "subjects/show_inline", :locals => {:subjects => @accession.subjects, :section_id => "accession_subjects_"} %> <% end %> <% if @accession.external_documents.length > 0 %> <%= render_aspace_partial :partial => "external_documents/show", :locals => { :external_documents => @accession.external_documents, :section_id => "accession_external_documents_" } %> <% end %> <% if @accession.rights_statements.length > 0 %> <%= render_aspace_partial :partial => "rights_statements/show", :locals => { :rights_statements => @accession.rights_statements, :section_id => "accession_rights_statements_" } %> <% end %> <% if @accession.instances.length > 0 %> <%= render_aspace_partial :partial => "instances/show", :locals => { :instances => @accession.instances, :section_id => "accession_instances_" } %> <% end %> <% if @accession.deaccessions.length > 0 %> <%= render_aspace_partial :partial => "deaccessions/show", :locals => { :deaccessions => @accession.deaccessions, :context => readonly, :section_id => "accession_deaccessions_" } %> <% end %> <% if @accession.collection_management %> <%= render_aspace_partial :partial => "collection_management/show", :locals => { :collection_management => @accession.collection_management, :context => readonly, :section_id => "accession_collection_management_" } %> <% end %> <% if @accession.classifications %> <%= render_aspace_partial :partial => "classifications/show", :locals => { :classifications => @accession.classifications, :context => readonly, :section_id => "accession_classifications_" } %> <% end %> <%= render_aspace_partial :partial => "linked_events/show", :locals => { :linked_events => @accession.linked_events, :context => readonly, :section_id => "accession_linked_events_" } %> <% if @accession.user_defined %> <%= render_aspace_partial :partial => "user_defined/show", :locals => { :user_defined => @accession.user_defined, :context => readonly, :section_id => "accession_user_defined_" } %> <% end %> <%= show_plugins_for(@accession, readonly) %> <% end %>