hydra-collections 4.0.0.rc2 → 4.0.0.rc3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Changelog.md +1 -0
- data/README.md +3 -3
- data/app/models/concerns/hydra/collection.rb +3 -1
- data/lib/hydra/collections/version.rb +1 -1
- data/spec/models/collection_spec.rb +4 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5d2a71acffe29263e44320f121df0faf11de76e6
|
|
4
|
+
data.tar.gz: a285a86fce42a077fd6dc60b488730e155bd615e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4c81e49458416d775d69d607b59d5dad6e5059d02d099db55e5afdd7348a4b41f1975b946f6ad9d30216ffcdbecb8af57a7c3ab5838690aaec87d0b52ec77186
|
|
7
|
+
data.tar.gz: 7aa8b7a1558767bdabb67030ab504f58886323ec245af3a865c9cb840563ac7debedf4995480abeda3dc3c5c110ad42aa2073c30e4d3efbe258ee041a165eff2
|
data/.gitignore
CHANGED
data/Changelog.md
CHANGED
data/README.md
CHANGED
|
@@ -158,11 +158,11 @@ In order to make modifications to the gem code and run the tests, clone the repo
|
|
|
158
158
|
|
|
159
159
|
```
|
|
160
160
|
$ bundle install
|
|
161
|
-
$
|
|
162
|
-
$ git submodule update
|
|
161
|
+
$ rake jetty:unzip
|
|
163
162
|
$ rake jetty:config
|
|
164
163
|
$ rake jetty:start
|
|
165
|
-
$ rake clean
|
|
164
|
+
$ rake engine_cart:clean
|
|
165
|
+
$ rake engine_cart:generate
|
|
166
166
|
$ rake spec
|
|
167
167
|
```
|
|
168
168
|
|
|
@@ -9,7 +9,9 @@ module Hydra
|
|
|
9
9
|
included do
|
|
10
10
|
has_and_belongs_to_many :members, predicate: ActiveFedora::RDF::Fcrepo::RelsExt.hasCollectionMember, class_name: "ActiveFedora::Base" , after_remove: :update_member
|
|
11
11
|
|
|
12
|
-
property :depositor, predicate: RDF::URI.new("http://id.loc.gov/vocabulary/relators/dpt"), multiple: false
|
|
12
|
+
property :depositor, predicate: ::RDF::URI.new("http://id.loc.gov/vocabulary/relators/dpt"), multiple: false do |index|
|
|
13
|
+
index.as :symbol, :stored_searchable
|
|
14
|
+
end
|
|
13
15
|
|
|
14
16
|
property :part_of, predicate: RDF::DC.isPartOf
|
|
15
17
|
property :contributor, predicate: RDF::DC.contributor do |index|
|
|
@@ -25,12 +25,14 @@ describe Collection, :type => :model do
|
|
|
25
25
|
let(:user) { @user }
|
|
26
26
|
|
|
27
27
|
describe "#to_solr" do
|
|
28
|
-
let(:collection) { Collection.new(title: "A good title") }
|
|
28
|
+
let(:collection) { Collection.new(title: "A good title", depositor: user.user_key) }
|
|
29
29
|
|
|
30
30
|
subject { collection.to_solr }
|
|
31
31
|
|
|
32
|
-
it "should have title" do
|
|
32
|
+
it "should have title and depositor information" do
|
|
33
33
|
expect(subject['title_tesim']).to eq ['A good title']
|
|
34
|
+
expect(subject['depositor_tesim']).to eq [user.user_key]
|
|
35
|
+
expect(subject['depositor_ssim']).to eq [user.user_key]
|
|
34
36
|
end
|
|
35
37
|
end
|
|
36
38
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hydra-collections
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.0.0.
|
|
4
|
+
version: 4.0.0.rc3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Carolyn Cole
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-01-
|
|
11
|
+
date: 2015-01-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: blacklight
|
|
@@ -186,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
186
186
|
version: 1.3.1
|
|
187
187
|
requirements: []
|
|
188
188
|
rubyforge_project:
|
|
189
|
-
rubygems_version: 2.
|
|
189
|
+
rubygems_version: 2.2.2
|
|
190
190
|
signing_key:
|
|
191
191
|
specification_version: 4
|
|
192
192
|
summary: A rails engine for managing Hydra Collections
|