README.rdoc in fcrepo_admin-0.3.3 vs README.rdoc in fcrepo_admin-0.3.4
- old
+ new
@@ -44,15 +44,54 @@
//= require bootstrap-tab
* Customize catalog search results (optional)
- If you would like catalog search results items to link to the object admin view
+ If you would like catalog search results items to link to the fcrepo_admin object show view
instead of the catalog show view, create app/helpers/blacklight_helper.rb with this content:
module BlacklightHelper
include Blacklight::BlacklightHelperBehavior # Default Blacklight behaviors
- include FcrepoAdmin::BlacklightHelperBehavior # fcrepo_admin overrides
+ include FcrepoAdmin::Helpers::BlacklightHelperBehavior # fcrepo_admin overrides
+ end
+
+* Add audit trail support (optional)
+
+ To enable access to the Fedora audit trail data through the fcrepo_admin UI, add your ActiveFedora models:
+
+ include ActiveFedora::Auditable
+
+=== Overriding fcrepo_admin behaviors
+
+* Object view helpers
+
+ Create app/helpers/fcrepo_admin/objects_helper.rb with this content:
+
+ module FcrepoAdmin::ObjectsHelper
+ include FcrepoAdmin::Helpers::ObjectsHelperBehavior
+ # override and/or add methods here
+ end
+
+ In particular you may want to override #object_title.
+
+* Controllers
+
+ To override/extend the objects controller, create app/controllers/fcrepo_admin/objects_controller.rb:
+
+ module FcrepoAdmin
+ class ObjectsController < ApplicationController
+ include FcrepoAdmin::Controller::ObjectsControllerBehavior
+ # add your customizations
+ end
+ end
+
+ To override/extend the datastreams controller, create app/controllers/fcrepo_admin/datastreams_controller.rb:
+
+ module FcrepoAdmin
+ class DatastreamsController < ApplicationController
+ include FcrepoAdmin::Controller::DatastreamsControllerBehavior
+ # add your customizations
+ end
end
=== License
See the LICENSE file in the root directory of the project for copyright and license information.