Class: Krikri::ValidationReportsController

Inherits:
CatalogController show all
Defined in:
app/controllers/krikri/validation_reports_controller.rb

Overview

Marshals validation reports for views.

ValidationReportsController inherits from the host application’s ApplicationController. It does not interit from Krikri’s ApplicationController.

Instance Method Summary collapse

Instance Method Details

#showObject

Render the show view

This differs from Blacklight::CatalogController‘s normal handling of the index and show views, Giving a paginated list of response documents instead of showing a single document.

@todo: consider bringing this in line with Blacklight’s approach



28
29
30
31
32
33
# File 'app/controllers/krikri/validation_reports_controller.rb', line 28

def show
  @current_provider = params[:provider]

  @response = build_report.find(params[:id])
  @documents = @response.documents
end