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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 372040457992fc3bf6904552bebc868ea58bbf6e
4
- data.tar.gz: b3c8c77276595757a9d31afdda0d0e2575ba7961
3
+ metadata.gz: b2cd56b62d5f6c7390a56993cb09744b640b612a
4
+ data.tar.gz: 37b4066a7c3f64a1258b4b5621d5fc8cdadb8caa
5
5
  SHA512:
6
- metadata.gz: 6626b1d16b9bdb878a66206d605a0259a5cf228f49874bcb6ba2cec699ee5dd14491a40a918450e09bacc0a3961016af8901f9af0e237f34c04e5454b8629046
7
- data.tar.gz: 1aad0639cd8364a706a68c768f79abbbd294dd7a96fd77eac8666f1d8a25b8915ecc3e550520ada058404a057ec68008c22cba50d98ca70fad5e44385a2ade58
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
@@ -350,9 +350,6 @@ module Cul::Scv::Hydra::Solrizer
350
350
 
351
351
  end_date = start_date if end_date.blank?
352
352
 
353
- puts 'start_date: ' + start_date
354
- puts 'end_date: ' + end_date
355
-
356
353
  year_regex = /^(-?\d{1,4}).*/
357
354
 
358
355
  start_year_match = start_date.match(year_regex)
@@ -2,7 +2,7 @@
2
2
  module Cul
3
3
  module Scv
4
4
  module Hydra
5
- VERSION = '0.19.2'
5
+ VERSION = '0.19.3'
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.19.1'
5
+ VERSION = '0.19.2'
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.19.2
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-10-29 00:00:00.000000000 Z
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.2
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.2
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