Sha256: cb0a16088b56c1b43ae2a97b5fca788cacbf0cda8ff6f2585f92236f7cf2fdee

Contents?: true

Size: 772 Bytes

Versions: 36

Compression:

Stored size: 772 Bytes

Contents

module Hyrax
  class CitationsController < ApplicationController
    include WorksControllerBehavior
    include Breadcrumbs
    include SingularSubresourceController

    # Overrides decide_layout from WorksControllerBehavior
    with_themed_layout '1_column'

    before_action :build_breadcrumbs, only: [:work, :file]

    def work
      show
    end

    def file
      # We set _@presenter_ here so it isn't set in WorksControllerBehavior#presenter
      # which is intended to find works (not files)
      solr_file = ::SolrDocument.find(params[:id])
      authorize! :show, solr_file
      @presenter = FileSetPresenter.new(solr_file, current_ability, request)
      show
    end

    private

      def show_presenter
        WorkShowPresenter
      end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
hyrax-2.9.6 app/controllers/hyrax/citations_controller.rb
hyrax-2.9.5 app/controllers/hyrax/citations_controller.rb
hyrax-2.9.4 app/controllers/hyrax/citations_controller.rb
hyrax-2.9.3 app/controllers/hyrax/citations_controller.rb
hyrax-2.9.2 app/controllers/hyrax/citations_controller.rb
hyrax-2.9.1 app/controllers/hyrax/citations_controller.rb
hyrax-2.9.0 app/controllers/hyrax/citations_controller.rb
hyrax-2.8.0 app/controllers/hyrax/citations_controller.rb
hyrax-2.7.2 app/controllers/hyrax/citations_controller.rb
hyrax-2.7.1 app/controllers/hyrax/citations_controller.rb
hyrax-2.7.0 app/controllers/hyrax/citations_controller.rb
hyrax-2.6.0 app/controllers/hyrax/citations_controller.rb
hyrax-3.0.0.pre.rc1 app/controllers/hyrax/citations_controller.rb
hyrax-3.0.0.pre.beta3 app/controllers/hyrax/citations_controller.rb
hyrax-2.5.1 app/controllers/hyrax/citations_controller.rb
hyrax-2.5.0 app/controllers/hyrax/citations_controller.rb
hyrax-3.0.0.pre.beta2 app/controllers/hyrax/citations_controller.rb
hyrax-2.4.1 app/controllers/hyrax/citations_controller.rb
hyrax-3.0.0.pre.beta1 app/controllers/hyrax/citations_controller.rb
hyrax-2.4.0 app/controllers/hyrax/citations_controller.rb