Sha256: 878aa180b5ec04fb9721c2227288e11a50f2cffe57f92b3cc6b988dcdc1022bf

Contents?: true

Size: 682 Bytes

Versions: 10

Compression:

Stored size: 682 Bytes

Contents

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

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

    def work
      show
    end

    def file
      # We set _@presenter_ here so it isn't set in CurationConcernController#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

10 entries across 10 versions & 2 rubygems

Version Path
hyrax-1.1.1 app/controllers/hyrax/citations_controller.rb
hyrax-1.1.0 app/controllers/hyrax/citations_controller.rb
hyrax-1.0.5 app/controllers/hyrax/citations_controller.rb
hyrax-1.0.4 app/controllers/hyrax/citations_controller.rb
hyrax-1.0.3 app/controllers/hyrax/citations_controller.rb
hyrax-1.0.2 app/controllers/hyrax/citations_controller.rb
hyrax-1.0.1 app/controllers/hyrax/citations_controller.rb
hyrax-1.0.0.rc2 app/controllers/hyrax/citations_controller.rb
hyrax-1.0.0.rc1 app/controllers/hyrax/citations_controller.rb
test_hyrax-0.0.1.alpha app/controllers/hyrax/citations_controller.rb