Sha256: a6897e3cd712e6dfd876d98866f992bd87dfed6d9904e07b20db98bc573582a7
Contents?: true
Size: 937 Bytes
Versions: 5
Compression:
Stored size: 937 Bytes
Contents
module FcrepoAdmin class ObjectsController < ApplicationController layout 'fcrepo_admin/objects' include FcrepoAdmin::Controller::ControllerBehavior before_filter :load_and_authorize_object def show respond_to do |format| format.html { load_solr_document } format.xml { render :xml => @object.object_xml } end end def audit_trail if @object.auditable? respond_to do |format| format.html format.xml { render :xml => @object.audit_trail.to_xml } end else render :text => I18n.t("fcrepo_admin.object.audit_trail.not_implemented"), :status => 404 end end def permissions end protected def load_solr_document query = ActiveFedora::SolrService.construct_query_for_pids([@object.pid]) @document = SolrDocument.new(ActiveFedora::SolrService.query(query).first, nil) end end end
Version data entries
5 entries across 5 versions & 1 rubygems