README.rdoc in fcrepo_admin-0.3.4 vs README.rdoc in fcrepo_admin-0.3.5
- old
+ new
@@ -7,11 +7,11 @@
This project should be considered *experimental* and not ready for production deployment.
Versions earlier than 1.0 may change API and/or UI without notice or regard for backward compatibility.
=== Requirements
-fcrepo_admin is designed for installation on hydra-head 6.0.0 or higher.
+fcrepo_admin is designed for installation on hydra-head 6.0 or higher (requires active-fedora 6.1 or higher).
See https://github.com/projecthydra/hydra-head/wiki/Installation-Prerequisites.
=== Installation
(In the future, we hope to automate some of these tasks with a generator.)
@@ -60,19 +60,38 @@
include ActiveFedora::Auditable
=== Overriding fcrepo_admin behaviors
-* Object view helpers
+* Object views
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.
+
+ The contents of the object context navigation menu can be customized by overriding #object_context_nav_items.
+ It should return an array of [label, path] items suitable for use by link_to_unless_current:
+
+ <%= link_to_unless_current label, path %>
+
+* Datastream views
+
+ The contents of the datastream context navigation menu can be customized by overriding #datastream_context_nav_items.
+ Create app/helpers/fcrepo_admin/datastreams_helper.rb with this content:
+
+ module FcrepoAdmin::DatastreamsHelper
+ include FcrepoAdmin::Helpers::DatastreamsHelperBehavior
+ # override and/or add methods here
+ end
+
+ datastream_context_nav_items should return an array of [label, path] items suitable for use by link_to_unless_current:
+
+ <%= link_to_unless_current label, path %>
* Controllers
To override/extend the objects controller, create app/controllers/fcrepo_admin/objects_controller.rb: