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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9007c29b846febed8e9db69330bdd01ad4ff888e
4
- data.tar.gz: ecda81d35bcbac9b01e488079091648f5523ac0f
3
+ metadata.gz: 5c8a5353976107acfa707e314ae1afe6698b0326
4
+ data.tar.gz: a4d19b5fe5534469e8a1e310faff6d676b0ecc72
5
5
  SHA512:
6
- metadata.gz: 57fc6fb0bef9f0bf6143d696fb2b95c109db9961ef017f8ea003833db988b88524dcf17f7d42769d873f87fce4c997734e0441772b9ef8c61688e16ecf646169
7
- data.tar.gz: 796e3c83263621ce1a33c65cab31c9fcb8197c34997cd4488df54784c474c17d4b25e2e3e34ec9dd76d378be62b8a583c9fc9da19f0e0583d9f90d66005d2326
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
 
@@ -55,6 +55,7 @@
55
55
  :y_sampling: ySamplingFrequency
56
56
  :sampling_unit: samplingFrequencyUnit
57
57
  http://purl.org/dc/terms/:
58
+ :contributor: contributor
58
59
  :extent: extent
59
60
  :format: format
60
61
  :format_of: isFormatOf
@@ -2,7 +2,7 @@
2
2
  module Cul
3
3
  module Scv
4
4
  module Hydra
5
- VERSION = '0.21.6'
5
+ VERSION = '0.21.7'
6
6
  def self.version
7
7
  VERSION
8
8
  end
@@ -2,7 +2,7 @@
2
2
  module Cul
3
3
  module Scv
4
4
  module Hydra
5
- VERSION = '0.21.5'
5
+ VERSION = '0.21.6'
6
6
  def self.version
7
7
  VERSION
8
8
  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.21.6
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-14 00:00:00.000000000 Z
12
+ date: 2015-02-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: blacklight