hydra-core 6.4.0.rc1 → 6.4.0.rc2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73518753cc25d894192e9dbe23f98b551b6a2c10
|
4
|
+
data.tar.gz: c22d931800dfcdb715a71b1d0d98cb46048e9151
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37ec5db783c7e106a6f817002ae0149e15aad17a541719e89906a2a69c6f7cdae179a259e9045b83c6b49dc1e9ffbb7072e40c7b7cf4e1dc7c1a9cec0cda870f
|
7
|
+
data.tar.gz: 8d47af5e6dced0a0887652ccb926cfb955862bb3ddbadd696a3a9fe479497a3f7742ae475648ea4c667f2fdfa11a1b46847c3dbc4e366dde940f18d7469c6555
|
data/lib/hydra-head/version.rb
CHANGED
@@ -10,16 +10,15 @@
|
|
10
10
|
# RELS-EXT datastream -- Handled by ActiveFedora::Base & ActiveFedora::RelsExtDatastream
|
11
11
|
# optional datastreams (contentMetadata, technicalMetadata, provenanceMetadata, sourceMetadata)
|
12
12
|
#
|
13
|
-
# will move to lib/hydra/model/common_metadata_behavior in release 5.x
|
14
13
|
module Hydra::ModelMixins
|
15
14
|
module CommonMetadata
|
15
|
+
extend Deprecation
|
16
|
+
extend ActiveSupport::Concern
|
16
17
|
|
17
|
-
|
18
|
+
included do
|
18
19
|
# Uses the Hydra Rights Metadata Schema for tracking access permissions & copyright
|
19
|
-
|
20
|
-
|
21
|
-
# Ensure that objects assert the commonMetadata cModel
|
22
|
-
# klazz.relationships << :has_model => "info:fedora/hydra-cModel:commonMetadata"
|
20
|
+
has_metadata "rightsMetadata", type: Hydra::Datastream::RightsMetadata
|
21
|
+
Deprecation.warn(CommonMetadata, "Hydra::ModelMixins::CommonMetadata is deprecated and will be removed in hydra-head 7. Use Hydra::AccessControls::Permissions instead.", caller(1))
|
23
22
|
end
|
24
23
|
end
|
25
24
|
end
|
@@ -1,5 +1,8 @@
|
|
1
1
|
module Hydra::ModelMixins
|
2
2
|
module SolrDocumentExtension
|
3
|
+
extend Deprecation
|
4
|
+
self.deprecation_horizon = 'hydra-head 7.0.0'
|
5
|
+
|
3
6
|
def document_type display_type = CatalogController.blacklight_config.show.display_type
|
4
7
|
type = self.fetch(:medium_t, nil)
|
5
8
|
|
@@ -7,6 +10,7 @@ module Hydra::ModelMixins
|
|
7
10
|
|
8
11
|
type.first.to_s.gsub("info:fedora/afmodel:","").gsub("Hydrangea","").gsub(/^Generic/,"")
|
9
12
|
end
|
13
|
+
deprecation_deprecate :document_type
|
10
14
|
|
11
15
|
def get_person_from_role(role, opts={})
|
12
16
|
i = 0
|
@@ -18,9 +22,12 @@ module Hydra::ModelMixins
|
|
18
22
|
i += 1
|
19
23
|
end
|
20
24
|
end
|
25
|
+
deprecation_deprecate :get_person_from_role
|
26
|
+
|
21
27
|
def get_file_asset_count()
|
22
28
|
ActiveFedora::Base.count(:conditions=>"is_part_of_t:#{ActiveFedora::Base.quote_for_solr(id)}")
|
23
29
|
end
|
30
|
+
deprecation_deprecate :get_file_asset_count
|
24
31
|
end
|
25
32
|
end
|
26
33
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hydra-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.4.0.
|
4
|
+
version: 6.4.0.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Zumwalt, Bess Sadler, Julie Meloni, Naomi Dushay, Jessie Keck, John Scofield,
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-10-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -93,14 +93,14 @@ dependencies:
|
|
93
93
|
requirements:
|
94
94
|
- - '='
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 6.4.0.
|
96
|
+
version: 6.4.0.rc2
|
97
97
|
type: :runtime
|
98
98
|
prerelease: false
|
99
99
|
version_requirements: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - '='
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 6.4.0.
|
103
|
+
version: 6.4.0.rc2
|
104
104
|
- !ruby/object:Gem::Dependency
|
105
105
|
name: jettywrapper
|
106
106
|
requirement: !ruby/object:Gem::Requirement
|