cul_scv_hydra 0.21.6 → 0.21.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/generic_resource.rb +9 -8
- data/config/predicate_mappings.yml +1 -0
- data/lib/cul_scv_hydra/version.rb +1 -1
- data/lib/cul_scv_hydra/version.rb~ +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c8a5353976107acfa707e314ae1afe6698b0326
|
4
|
+
data.tar.gz: a4d19b5fe5534469e8a1e310faff6d676b0ecc72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d2a4d59be0b5fedbecf90119f5bb1bb48b8f4c9f730fe647ec5ff68ea5c763e07843616f7dc5cc6ac030c7023a262b73ececfe2ba9f9cdbfd74f17695414ee6
|
7
|
+
data.tar.gz: 8625b83c797cca591ac9b2f5bf789f82854ddfeec47771f7d3cac9230db57ec6225902210c65d679174b229021bf759a439ddb692a3b95d201ff73e4aa45de30
|
@@ -36,14 +36,6 @@ class GenericResource < ::ActiveFedora::Base
|
|
36
36
|
"FILE ASSET"
|
37
37
|
end
|
38
38
|
|
39
|
-
def to_solr(solr_doc = Hash.new, opts={})
|
40
|
-
super
|
41
|
-
unless solr_doc["extent_ssim"] || self.datastreams["content"].nil?
|
42
|
-
solr_doc["extent_ssim"] = [self.datastreams["content"].dsSize]
|
43
|
-
end
|
44
|
-
solr_doc
|
45
|
-
end
|
46
|
-
|
47
39
|
def thumbnail_info
|
48
40
|
thumb = relsint.relationships(datastreams['content'],:foaf_thumb).first
|
49
41
|
if thumb
|
@@ -56,6 +48,7 @@ class GenericResource < ::ActiveFedora::Base
|
|
56
48
|
|
57
49
|
def to_solr(solr_doc = Hash.new, opts={})
|
58
50
|
solr_doc = super
|
51
|
+
|
59
52
|
unless solr_doc["extent_ssim"] || self.datastreams["content"].nil?
|
60
53
|
if self.datastreams["content"].dsSize.to_i > 0
|
61
54
|
solr_doc["extent_ssim"] = [self.datastreams["content"].dsSize]
|
@@ -67,6 +60,7 @@ class GenericResource < ::ActiveFedora::Base
|
|
67
60
|
end
|
68
61
|
end
|
69
62
|
end
|
63
|
+
|
70
64
|
if self.zooming?
|
71
65
|
fz = rels_int.relationships(datastreams['content'], :foaf_zooming).first.object.to_s.split('/')[-1]
|
72
66
|
ds = datastreams[fz]
|
@@ -75,6 +69,13 @@ class GenericResource < ::ActiveFedora::Base
|
|
75
69
|
solr_doc['rft_id_ss'] = rft_id
|
76
70
|
end
|
77
71
|
end
|
72
|
+
|
73
|
+
solr_doc["fulltext_teim"] = []
|
74
|
+
unless self.datastreams["fulltext"].nil?
|
75
|
+
solr_doc["fulltext_teim"] << self.datastreams["fulltext"].content
|
76
|
+
solr_doc["fulltext_teim"] << solr_doc["title_display_ssm"] unless solr_doc["title_display_ssm"].nil? or solr_doc["title_display_ssm"].length == 0
|
77
|
+
end
|
78
|
+
|
78
79
|
solr_doc
|
79
80
|
end
|
80
81
|
|
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.21.
|
4
|
+
version: 0.21.7
|
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: 2015-02-
|
12
|
+
date: 2015-02-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: blacklight
|