Class: ContainersController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- ContainersController
- Defined in:
- public/app/controllers/containers_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
#archivesspace, can_access?, permission_mappings, set_access_control
Instance Method Details
#show ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'public/app/controllers/containers_controller.rb', line 3 def show uri = "/repositories/#{params[:rid]}/top_containers/#{params[:id]}" begin @criteria = {} @result = archivesspace.get_record(uri, @criteria) @repo_info = @result.repository_information @page_title = "#{I18n.t('top_container._singular')}: #{strip_mixed_content(@result.display_string)}" @context = [{:uri => @repo_info['top']['uri'], :crumb => @repo_info['top']['name'], type: 'repository'}, {:uri => nil, :crumb => process_mixed_content(@result.display_string), type: @result.primary_type}] # fetch all the objects in this container fetch_objects_in_container(uri, params) rescue RecordNotFound record_not_found(uri, 'top_container') end end |