ddr-core 1.14.0 → 1.16.0
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2696f109287b267f5ef5792291f3096aa9f61cdd9e08164ab64286c276c783b1
|
4
|
+
data.tar.gz: 17c0fcc4f2b555fc22279390afac20f48bfb6c12e48bca8ab61b58e2b1cf3f02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e54d34b7d5175bbb53b2e9408650f7ddcdaa79967a2426d1db9b12647e228c8c63543039e2eb476e1cbd397b5cf9a4acdfc79606658e856032d13c879cfd6deb
|
7
|
+
data.tar.gz: e17c400895abb5cfc29a9160a9df89520714ff9a35652bcc2d54a7b6d43a986447f55ce64dc19efc94354c56c0be137a3416d0d8cad41fdae2628253e61d77ee
|
@@ -202,29 +202,6 @@ module Ddr
|
|
202
202
|
resource.finding_aid
|
203
203
|
end
|
204
204
|
|
205
|
-
def intermediate_type
|
206
|
-
if has_intermediate_file?
|
207
|
-
resource.intermediate_type
|
208
|
-
end
|
209
|
-
end
|
210
|
-
|
211
|
-
def intermediate_path
|
212
|
-
if has_intermediate_file?
|
213
|
-
resource.intermediate_path
|
214
|
-
end
|
215
|
-
end
|
216
|
-
|
217
|
-
def intermediate_extension
|
218
|
-
if has_intermediate_file?
|
219
|
-
extensions = Ddr.preferred_file_extensions
|
220
|
-
if extensions.include? intermediate_type
|
221
|
-
extensions[intermediate_type]
|
222
|
-
else
|
223
|
-
intermediate_extension_default
|
224
|
-
end
|
225
|
-
end
|
226
|
-
end
|
227
|
-
|
228
205
|
def captionable?
|
229
206
|
resource.captionable?
|
230
207
|
end
|
@@ -345,10 +322,6 @@ module Ddr
|
|
345
322
|
structure['default'] || structure.values.first
|
346
323
|
end
|
347
324
|
|
348
|
-
def intermediate_extension_default
|
349
|
-
resource.intermediate_file.default_file_extension
|
350
|
-
end
|
351
|
-
|
352
325
|
def caption_extension_default
|
353
326
|
resource.caption.default_file_extension
|
354
327
|
end
|
data/app/models/ddr/component.rb
CHANGED
@@ -6,7 +6,6 @@ module Ddr
|
|
6
6
|
include HasContent
|
7
7
|
include HasDerivedImage
|
8
8
|
include HasExtractedText
|
9
|
-
include HasIntermediateFile
|
10
9
|
include HasMultiresImage
|
11
10
|
include HasParent
|
12
11
|
include Streamable
|
@@ -14,6 +13,7 @@ module Ddr
|
|
14
13
|
alias_method :item_id, :parent_id
|
15
14
|
alias_method :item, :parent
|
16
15
|
|
16
|
+
attribute :intermediate_file, Ddr::File.optional
|
17
17
|
attribute :target_id, Valkyrie::Types::ID.optional
|
18
18
|
|
19
19
|
self.parent_class = Ddr::Item
|
data/config/aux/contact.yml
CHANGED
@@ -1,87 +1,95 @@
|
|
1
1
|
- slug: dvs
|
2
2
|
name: Data and Visualization Services
|
3
3
|
short_name: null
|
4
|
-
url:
|
5
|
-
phone: 919-660-
|
4
|
+
url: https://library.duke.edu/data/
|
5
|
+
phone: 919-660-5870
|
6
6
|
email: askdata@duke.edu
|
7
7
|
ask: null
|
8
8
|
|
9
9
|
- slug: libraries
|
10
10
|
name: Duke University Libraries
|
11
11
|
short_name: null
|
12
|
-
url:
|
13
|
-
phone: 919-660-
|
12
|
+
url: https://library.duke.edu
|
13
|
+
phone: 919-660-5870
|
14
14
|
email: askref@duke.edu
|
15
|
-
ask:
|
15
|
+
ask: https://library.duke.edu/research/ask
|
16
16
|
|
17
17
|
- slug: divinity
|
18
18
|
name: Divinity School Library
|
19
19
|
short_name: null
|
20
|
-
url:
|
21
|
-
phone: 919-660-
|
20
|
+
url: https://library.divinity.duke.edu/
|
21
|
+
phone: 919-660-3450
|
22
22
|
email: divlib@duke.edu
|
23
|
-
ask:
|
23
|
+
ask: https://library.divinity.duke.edu/ask-us
|
24
24
|
|
25
25
|
- slug: uarchives
|
26
26
|
name: Duke University Archives
|
27
27
|
short_name: University Archives
|
28
|
-
url:
|
28
|
+
url: https://library.duke.edu/rubenstein/uarchives/
|
29
29
|
phone: 919-660-5822
|
30
|
-
email:
|
31
|
-
ask:
|
30
|
+
email: askrl@duke.edu
|
31
|
+
ask: https://library.duke.edu/rubenstein/ask
|
32
32
|
|
33
33
|
- slug: humanrights
|
34
34
|
name: Human Rights Archive
|
35
|
-
short_name:
|
36
|
-
url:
|
35
|
+
short_name: Human Rights Archive
|
36
|
+
url: https://library.duke.edu/rubenstein/human-rights/
|
37
37
|
phone: 919-660-5822
|
38
|
-
email:
|
39
|
-
ask:
|
38
|
+
email: askrl@duke.edu
|
39
|
+
ask: https://library.duke.edu/rubenstein/ask
|
40
40
|
|
41
41
|
- slug: hom
|
42
42
|
name: History of Medicine Collections
|
43
43
|
short_name: null
|
44
|
-
url:
|
44
|
+
url: https://library.duke.edu/rubenstein/history-of-medicine/
|
45
45
|
phone: 919-684-8549
|
46
|
-
email:
|
47
|
-
ask:
|
46
|
+
email: askrl@duke.edu
|
47
|
+
ask: https://library.duke.edu/rubenstein/ask
|
48
48
|
|
49
49
|
- slug: franklin
|
50
50
|
name: John Hope Franklin Research Center
|
51
51
|
short_name: Franklin Research Center
|
52
|
-
url:
|
52
|
+
url: https://library.duke.edu/rubenstein/franklin/
|
53
53
|
phone: 919-660-5922
|
54
|
-
email:
|
55
|
-
ask:
|
54
|
+
email: askrl@duke.edu
|
55
|
+
ask: https://library.duke.edu/rubenstein/ask
|
56
56
|
|
57
57
|
- slug: docarts
|
58
58
|
name: Archive of Documentary Arts
|
59
59
|
short_name: null
|
60
|
-
url:
|
60
|
+
url: https://library.duke.edu/rubenstein/documentaryarts/
|
61
61
|
phone: 919-660-5822
|
62
|
-
email:
|
63
|
-
ask:
|
62
|
+
email: askrl@duke.edu
|
63
|
+
ask: https://library.duke.edu/rubenstein/ask
|
64
64
|
|
65
65
|
- slug: bingham
|
66
66
|
name: Sallie Bingham Center for Women's History & Culture
|
67
67
|
short_name: Bingham Center
|
68
|
-
url:
|
68
|
+
url: https://library.duke.edu/rubenstein/bingham/
|
69
69
|
phone: 919-660-5967
|
70
|
-
email:
|
71
|
-
ask:
|
70
|
+
email: askrl@duke.edu
|
71
|
+
ask: https://library.duke.edu/rubenstein/ask
|
72
72
|
|
73
73
|
- slug: hartman
|
74
74
|
name: John W. Hartman Center for Sales, Advertising & Marketing History
|
75
75
|
short_name: Hartman Center
|
76
|
-
url:
|
76
|
+
url: https://library.duke.edu/rubenstein/hartman/
|
77
77
|
phone: 919-660-5827
|
78
|
-
email:
|
79
|
-
ask:
|
78
|
+
email: askrl@duke.edu
|
79
|
+
ask: https://library.duke.edu/rubenstein/ask
|
80
80
|
|
81
81
|
- slug: rubenstein
|
82
82
|
name: David M. Rubenstein Rare Book & Manuscript Library
|
83
83
|
short_name: Rubenstein Library
|
84
|
-
url:
|
84
|
+
url: https://library.duke.edu/rubenstein/
|
85
|
+
phone: 919-660-5822
|
86
|
+
email: askrl@duke.edu
|
87
|
+
ask: https://library.duke.edu/rubenstein/ask
|
88
|
+
|
89
|
+
- slug: economists
|
90
|
+
name: Economists' Papers Archive
|
91
|
+
short_name: null
|
92
|
+
url: https://library.duke.edu/rubenstein/economists
|
85
93
|
phone: 919-660-5822
|
86
|
-
email:
|
87
|
-
ask:
|
94
|
+
email: askrl@duke.edu
|
95
|
+
ask: https://library.duke.edu/rubenstein/ask
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ddr-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jim Coble
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2022-
|
14
|
+
date: 2022-10-03 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activeresource
|
@@ -315,7 +315,6 @@ files:
|
|
315
315
|
- app/models/concerns/ddr/has_content.rb
|
316
316
|
- app/models/concerns/ddr/has_derived_image.rb
|
317
317
|
- app/models/concerns/ddr/has_extracted_text.rb
|
318
|
-
- app/models/concerns/ddr/has_intermediate_file.rb
|
319
318
|
- app/models/concerns/ddr/has_multires_image.rb
|
320
319
|
- app/models/concerns/ddr/has_parent.rb
|
321
320
|
- app/models/concerns/ddr/has_struct_metadata.rb
|
@@ -451,7 +450,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
451
450
|
- !ruby/object:Gem::Version
|
452
451
|
version: '0'
|
453
452
|
requirements: []
|
454
|
-
rubygems_version: 3.3.
|
453
|
+
rubygems_version: 3.3.22
|
455
454
|
signing_key:
|
456
455
|
specification_version: 4
|
457
456
|
summary: Models used in the Duke Digital Repository
|
@@ -1,25 +0,0 @@
|
|
1
|
-
module Ddr
|
2
|
-
module HasIntermediateFile
|
3
|
-
extend ActiveSupport::Concern
|
4
|
-
|
5
|
-
included do
|
6
|
-
attribute :intermediate_file, Ddr::File.optional
|
7
|
-
end
|
8
|
-
|
9
|
-
def intermediate_type
|
10
|
-
intermediate_file&.media_type
|
11
|
-
end
|
12
|
-
|
13
|
-
# This method is used in dul-hydra 'ComponentsController'
|
14
|
-
def intermediate_extension
|
15
|
-
if filename = intermediate_file&.original_filename
|
16
|
-
::File.extname(filename)
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
def intermediate_path
|
21
|
-
intermediate_file&.file&.disk_path
|
22
|
-
end
|
23
|
-
|
24
|
-
end
|
25
|
-
end
|