cul_scv_hydra 0.19.2 → 0.19.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/concept.rb +23 -0
- data/app/models/concerns/cul/scv/hydra/models/common.rb +2 -1
- data/app/models/generic_aggregator.rb +2 -2
- data/lib/cul_scv_hydra/solrizer/scv_mods_fieldable.rb +0 -3
- data/lib/cul_scv_hydra/version.rb +1 -1
- data/lib/cul_scv_hydra/version.rb~ +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2cd56b62d5f6c7390a56993cb09744b640b612a
|
4
|
+
data.tar.gz: 37b4066a7c3f64a1258b4b5621d5fc8cdadb8caa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d642ddb0bd78e209ad2f16b252af0bafd0ee531233f2cfa8fa4535535f6bb32412a7e88c892051e9d570fc40571d071aa1b55946bfa0a55071daa9abce84f7ae
|
7
|
+
data.tar.gz: 8eec4fc5fb8d0ddde3a6e9543b86324e54a7f9ecd64627339754d024c0f44393694ca03e9f73c6b2c4937fe63f3f1f5cd23fee0145896d87193a38f5fe04b3a7
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require "active-fedora"
|
2
|
+
require "active_fedora_finders"
|
3
|
+
class Concept < GenericAggregator
|
4
|
+
include ::ActiveFedora::FinderMethods::RepositoryMethods
|
5
|
+
include ::ActiveFedora::DatastreamCollections
|
6
|
+
include ::Hydra::ModelMethods
|
7
|
+
include Cul::Scv::Hydra::Models::Common
|
8
|
+
|
9
|
+
has_and_belongs_to_many :containers, :property=>:cul_member_of, :class_name=>'ActiveFedora::Base'
|
10
|
+
|
11
|
+
def route_as
|
12
|
+
"concept"
|
13
|
+
end
|
14
|
+
|
15
|
+
def index_type_label
|
16
|
+
"CONCEPT"
|
17
|
+
end
|
18
|
+
|
19
|
+
def to_solr(solr_doc = Hash.new, opts={})
|
20
|
+
solr_doc = super(solr_doc, opts)
|
21
|
+
solr_doc
|
22
|
+
end
|
23
|
+
end
|
@@ -9,6 +9,7 @@ module Cul::Scv::Hydra::Models::Common
|
|
9
9
|
has_metadata :name => "DC", :type=>Cul::Scv::Hydra::Datastreams::DCMetadata, :versionable => true
|
10
10
|
has_metadata :name => "descMetadata", :type=>Cul::Scv::Hydra::Datastreams::ModsDocument, :versionable => true
|
11
11
|
has_metadata :name => "rightsMetadata", :type=>::Hydra::Datastream::RightsMetadata, :versionable => true
|
12
|
+
has_many :publishers, :property => :publisher, :class_name=>'ActiveFedora::Base'
|
12
13
|
end
|
13
14
|
|
14
15
|
module ClassMethods
|
@@ -73,7 +74,7 @@ module Cul::Scv::Hydra::Models::Common
|
|
73
74
|
has_desc
|
74
75
|
end
|
75
76
|
|
76
|
-
# set the index type label and any RI-based fields
|
77
|
+
# set the index type label and any RI-based fields
|
77
78
|
def set_size_labels(solr_doc={})
|
78
79
|
solr_doc["index_type_label_ssi"] = [self.index_type_label]
|
79
80
|
end
|
@@ -36,7 +36,7 @@ class GenericAggregator < ::ActiveFedora::Base
|
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
|
-
# set the index type label and any RI-based fields
|
39
|
+
# set the index type label and any RI-based fields
|
40
40
|
# overridde
|
41
41
|
def set_size_labels(solr_doc={})
|
42
42
|
count = Cul::Scv::Hydra::RisearchMembers.get_direct_member_count(pid)
|
@@ -49,4 +49,4 @@ class GenericAggregator < ::ActiveFedora::Base
|
|
49
49
|
solr_doc
|
50
50
|
end
|
51
51
|
|
52
|
-
end
|
52
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cul_scv_hydra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.19.
|
4
|
+
version: 0.19.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benjamin Armintor
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-11-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: blacklight
|
@@ -59,14 +59,14 @@ dependencies:
|
|
59
59
|
requirements:
|
60
60
|
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: 7.0
|
62
|
+
version: '7.0'
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 7.0
|
69
|
+
version: '7.0'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: active_fedora_finders
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
@@ -231,6 +231,7 @@ files:
|
|
231
231
|
- app/controllers/concerns/cul/scv/hydra/resolver.rb
|
232
232
|
- app/controllers/concerns/cul/scv/hydra/thumbnails.rb
|
233
233
|
- app/models/bag_aggregator.rb
|
234
|
+
- app/models/concept.rb
|
234
235
|
- app/models/concerns/cul/scv/hydra/models.rb
|
235
236
|
- app/models/concerns/cul/scv/hydra/models/aggregator.rb
|
236
237
|
- app/models/concerns/cul/scv/hydra/models/common.rb
|