ddr-models 3.0.0.rc2 → 3.0.0.rc3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/ddr/index/fields.rb +1 -0
- data/lib/ddr/managers/technical_metadata_manager.rb +14 -4
- data/lib/ddr/models/files/fits_xml_file.rb +2 -0
- data/lib/ddr/models/version.rb +1 -1
- data/spec/index/fields_spec.rb +1 -0
- data/spec/managers/technical_metadata_manager_spec.rb +8 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03eb789b541de8dd89b08af2bc03b673af56b8e4
|
4
|
+
data.tar.gz: 5185c18c6e72389a97ed4edfb216e30c9ab94ae5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: daa97e2fb977deb31b675d503ce2d99584c1dc00caf59ea937dfe42ade38d9ec366356ac2cf5d4efc6a147284b134fbac1455cd20c5d87a7ce3c33a613e20adc
|
7
|
+
data.tar.gz: 74a7bc74d78f486bd1442e30dd0644f41b29a05fd5cbda4c638a9a3751f10dfc6dd09099532ae463078105240beb750e35e2c475756ae48e56ec1b4ac4e1c34e
|
data/lib/ddr/index/fields.rb
CHANGED
@@ -74,6 +74,7 @@ module Ddr::Index
|
|
74
74
|
TECHMD_IMAGE_HEIGHT = Field.new :techmd_image_height, :stored_searchable, type: :integer
|
75
75
|
TECHMD_IMAGE_WIDTH = Field.new :techmd_image_width, :stored_searchable, type: :integer
|
76
76
|
TECHMD_MEDIA_TYPE = Field.new :techmd_media_type, :symbol
|
77
|
+
TECHMD_MESSAGE = Field.new :techmd_message, :stored_searchable, type: :text
|
77
78
|
TECHMD_MODIFICATION_TIME = Field.new :techmd_modification_time, :stored_searchable, type: :date
|
78
79
|
TECHMD_PRONOM_IDENTIFIER = Field.new :techmd_pronom_identifier, :symbol
|
79
80
|
TECHMD_VALID = Field.new :techmd_valid, :symbol
|
@@ -5,10 +5,20 @@ module Ddr::Managers
|
|
5
5
|
|
6
6
|
delegate :content, :fits, to: :object
|
7
7
|
|
8
|
-
delegate :
|
9
|
-
:
|
10
|
-
:
|
11
|
-
:
|
8
|
+
delegate :color_space,
|
9
|
+
:created,
|
10
|
+
:creating_application,
|
11
|
+
:extent,
|
12
|
+
:format_label,
|
13
|
+
:format_version,
|
14
|
+
:image_height,
|
15
|
+
:image_width,
|
16
|
+
:media_type,
|
17
|
+
:message,
|
18
|
+
:modified,
|
19
|
+
:pronom_identifier,
|
20
|
+
:valid,
|
21
|
+
:well_formed,
|
12
22
|
to: :fits
|
13
23
|
|
14
24
|
alias_method :last_modified, :modified
|
@@ -28,6 +28,7 @@ module Ddr::Models
|
|
28
28
|
t.lastmodified
|
29
29
|
}
|
30
30
|
t.filestatus {
|
31
|
+
t.message
|
31
32
|
t.valid
|
32
33
|
t.well_formed(path: "well-formed")
|
33
34
|
}
|
@@ -53,6 +54,7 @@ module Ddr::Models
|
|
53
54
|
t.format_version proxy: [:identification, :identity, :version]
|
54
55
|
t.pronom_identifier proxy: [:identification, :identity, :pronom_identifier]
|
55
56
|
# filestatus
|
57
|
+
t.message proxy: [:filestatus, :message]
|
56
58
|
t.valid proxy: [:filestatus, :valid]
|
57
59
|
t.well_formed proxy: [:filestatus, :well_formed]
|
58
60
|
# fileinfo
|
data/lib/ddr/models/version.rb
CHANGED
data/spec/index/fields_spec.rb
CHANGED
@@ -43,11 +43,18 @@ module Ddr::Managers
|
|
43
43
|
its(:last_modified) { is_expected.to eq(["2015-06-08T21:22:35Z"]) }
|
44
44
|
its(:created) { is_expected.to eq(["2015:06:05 15:16:23-04:00"]) }
|
45
45
|
its(:pronom_identifier) { is_expected.to eq(["fmt/20"]) }
|
46
|
-
its(:creating_application) {
|
46
|
+
its(:creating_application) {
|
47
|
+
is_expected.to contain_exactly("Adobe Acrobat Pro 11.0.3 Paper Capture Plug-in/PREMIS Editorial Committee",
|
48
|
+
"Adobe Acrobat Pro 11.0.3 Paper Capture Plug-in/Acrobat PDFMaker 11 for Word")
|
49
|
+
}
|
47
50
|
its(:fits_version) { is_expected.to eq("0.8.5") }
|
48
51
|
its(:extent) { is_expected.to eq(["3786205"]) }
|
49
52
|
its(:file_size) { is_expected.to eq([3786205]) }
|
50
53
|
its(:media_type) { is_expected.to eq(["application/pdf"]) }
|
54
|
+
its(:message) {
|
55
|
+
is_expected.to contain_exactly("Invalid page tree node offset=390028",
|
56
|
+
"Outlines contain recursive references.")
|
57
|
+
}
|
51
58
|
|
52
59
|
describe "datetime fields" do
|
53
60
|
its(:creation_time) { is_expected.to contain_exactly(DateTime.parse("2015-06-05 15:16:23-04:00").to_time.utc) }
|