fcrepo_admin 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +0 -2
- data/HISTORY.rdoc +4 -0
- data/README.rdoc +21 -2
- data/fcrepo_admin.gemspec +4 -3
- data/lib/fcrepo_admin/version.rb +1 -1
- metadata +24 -8
data/Gemfile
CHANGED
data/HISTORY.rdoc
CHANGED
data/README.rdoc
CHANGED
@@ -9,7 +9,7 @@ Versions earlier than 1.0 may change API and/or UI without notice or regard for
|
|
9
9
|
|
10
10
|
=== Requirements
|
11
11
|
|
12
|
-
fcrepo_admin is designed for installation on hydra-head 6.0.
|
12
|
+
fcrepo_admin is designed for installation on hydra-head 6.0 or higher (requires active-fedora 6.1 or higher).
|
13
13
|
See https://github.com/projecthydra/hydra-head/wiki/Installation-Prerequisites.
|
14
14
|
|
15
15
|
=== Installation
|
@@ -62,7 +62,7 @@ See https://github.com/projecthydra/hydra-head/wiki/Installation-Prerequisites.
|
|
62
62
|
|
63
63
|
=== Overriding fcrepo_admin behaviors
|
64
64
|
|
65
|
-
* Object
|
65
|
+
* Object views
|
66
66
|
|
67
67
|
Create app/helpers/fcrepo_admin/objects_helper.rb with this content:
|
68
68
|
|
@@ -73,6 +73,25 @@ See https://github.com/projecthydra/hydra-head/wiki/Installation-Prerequisites.
|
|
73
73
|
|
74
74
|
In particular you may want to override #object_title.
|
75
75
|
|
76
|
+
The contents of the object context navigation menu can be customized by overriding #object_context_nav_items.
|
77
|
+
It should return an array of [label, path] items suitable for use by link_to_unless_current:
|
78
|
+
|
79
|
+
<%= link_to_unless_current label, path %>
|
80
|
+
|
81
|
+
* Datastream views
|
82
|
+
|
83
|
+
The contents of the datastream context navigation menu can be customized by overriding #datastream_context_nav_items.
|
84
|
+
Create app/helpers/fcrepo_admin/datastreams_helper.rb with this content:
|
85
|
+
|
86
|
+
module FcrepoAdmin::DatastreamsHelper
|
87
|
+
include FcrepoAdmin::Helpers::DatastreamsHelperBehavior
|
88
|
+
# override and/or add methods here
|
89
|
+
end
|
90
|
+
|
91
|
+
datastream_context_nav_items should return an array of [label, path] items suitable for use by link_to_unless_current:
|
92
|
+
|
93
|
+
<%= link_to_unless_current label, path %>
|
94
|
+
|
76
95
|
* Controllers
|
77
96
|
|
78
97
|
To override/extend the objects controller, create app/controllers/fcrepo_admin/objects_controller.rb:
|
data/fcrepo_admin.gemspec
CHANGED
@@ -24,12 +24,13 @@ Gem::Specification.new do |s|
|
|
24
24
|
|
25
25
|
s.require_paths = ["lib"]
|
26
26
|
|
27
|
-
s.add_dependency "hydra-head", "6.0
|
27
|
+
s.add_dependency "hydra-head", "~> 6.0"
|
28
|
+
s.add_dependency "active-fedora", "~> 6.1"
|
28
29
|
s.add_dependency "blacklight"
|
29
30
|
s.add_dependency "rails", "~> 3.2"
|
30
31
|
s.add_dependency "mime-types", '~> 1.19'
|
32
|
+
s.add_dependency "devise"
|
31
33
|
|
32
|
-
s.add_development_dependency "devise"
|
33
34
|
s.add_development_dependency "rspec"
|
34
35
|
s.add_development_dependency "rspec-rails"
|
35
36
|
s.add_development_dependency "capybara"
|
@@ -39,4 +40,4 @@ Gem::Specification.new do |s|
|
|
39
40
|
s.add_development_dependency "jquery-rails"
|
40
41
|
s.add_development_dependency "sass-rails"
|
41
42
|
s.add_development_dependency "bootstrap-sass"
|
42
|
-
end
|
43
|
+
end
|
data/lib/fcrepo_admin/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fcrepo_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -12,24 +12,40 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2013-04-
|
15
|
+
date: 2013-04-30 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: hydra-head
|
19
19
|
requirement: !ruby/object:Gem::Requirement
|
20
20
|
none: false
|
21
21
|
requirements:
|
22
|
-
- -
|
22
|
+
- - ~>
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version: 6.0
|
24
|
+
version: '6.0'
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
27
|
version_requirements: !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
|
-
- -
|
30
|
+
- - ~>
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 6.0
|
32
|
+
version: '6.0'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: active-fedora
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
none: false
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '6.1'
|
41
|
+
type: :runtime
|
42
|
+
prerelease: false
|
43
|
+
version_requirements: !ruby/object:Gem::Requirement
|
44
|
+
none: false
|
45
|
+
requirements:
|
46
|
+
- - ~>
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '6.1'
|
33
49
|
- !ruby/object:Gem::Dependency
|
34
50
|
name: blacklight
|
35
51
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,7 +102,7 @@ dependencies:
|
|
86
102
|
- - ! '>='
|
87
103
|
- !ruby/object:Gem::Version
|
88
104
|
version: '0'
|
89
|
-
type: :
|
105
|
+
type: :runtime
|
90
106
|
prerelease: false
|
91
107
|
version_requirements: !ruby/object:Gem::Requirement
|
92
108
|
none: false
|
@@ -381,7 +397,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
381
397
|
version: '0'
|
382
398
|
segments:
|
383
399
|
- 0
|
384
|
-
hash:
|
400
|
+
hash: 1199982375924244814
|
385
401
|
requirements: []
|
386
402
|
rubyforge_project:
|
387
403
|
rubygems_version: 1.8.25
|