Sha256: 570ff30699dd99ff986884b289b2fbac7f3304f4c5b408961f6e2da9ae8415c6

Contents?: true

Size: 508 Bytes

Versions: 20

Compression:

Stored size: 508 Bytes

Contents

# frozen_string_literal: true
class RelationController < ApplicationController
  include Blacklight::Configurable
  # include Blacklight::SearchHelper
  copy_blacklight_config_from(CatalogController)

  def index
    @relations = Geoblacklight::Relation::RelationResponse.new(params[:id], repository)
    render layout: !request.xhr?
  end

  private

  def repository_class
    blacklight_config.repository_class
  end

  def repository
    @repository ||= repository_class.new(blacklight_config)
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
geoblacklight-3.8.1 app/controllers/relation_controller.rb
geoblacklight-3.8.0 app/controllers/relation_controller.rb
geoblacklight-4.0.0 app/controllers/relation_controller.rb
geoblacklight-4.0.0.pre.rc3 app/controllers/relation_controller.rb
geoblacklight-3.7.0 app/controllers/relation_controller.rb
geoblacklight-4.0.0.pre.rc2 app/controllers/relation_controller.rb
geoblacklight-4.0.0.pre.rc1 app/controllers/relation_controller.rb
geoblacklight-3.6.0 app/controllers/relation_controller.rb
geoblacklight-3.5.0 app/controllers/relation_controller.rb
geoblacklight-4.0.0.pre.alpha.3 app/controllers/relation_controller.rb
geoblacklight-4.0.0.pre.alpha.2 app/controllers/relation_controller.rb
geoblacklight-4.0.0.pre.alpha.1 app/controllers/relation_controller.rb
geoblacklight-4.0.0.pre.alpha app/controllers/relation_controller.rb
geoblacklight-3.4.0 app/controllers/relation_controller.rb
geoblacklight-3.3.1 app/controllers/relation_controller.rb
geoblacklight-3.3.0 app/controllers/relation_controller.rb
geoblacklight-3.2.0 app/controllers/relation_controller.rb
geoblacklight-3.1.0 app/controllers/relation_controller.rb
geoblacklight-3.0.1 app/controllers/relation_controller.rb
geoblacklight-3.0.0 app/controllers/relation_controller.rb