dina 3.3.2.0 → 3.3.4.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ef96574d56d3dbd98b058142a54fd04fb271d8b904fdaca7e2e8a53ee6e6fdd
4
- data.tar.gz: 2e47a3d6dd1ebdc8e0c577e5145b844cf1f09852616a1d81f13274ac703dfd0f
3
+ metadata.gz: 20bd3e6463a23ad5a3409cfacfc2b5a26378acab88d8f2326e4251134a45099b
4
+ data.tar.gz: a8649b54ea6c29d3784ad494ac90b0c9332b504b4fb17d403ba07d2a6f9e97e8
5
5
  SHA512:
6
- metadata.gz: c597b3b2909a1f6503f0a6f51625a82eb637686c4c663b1b579ace1ea874e4dcb696540f9028eb7dd50261b069e7e87021fe48275a774ebc093f5f5521973bf2
7
- data.tar.gz: f9b0bb4f37cb4ac04c6a62845d0eaa3c96dd69ea2b5096b2ece6c4da9c717c49df379d7a794dad78095c85d1123fcad8ca80400c24ebb7336faa6873d1477959
6
+ metadata.gz: f53c778ab6e081ee6ba961385531e73c1644c6671ba14901fcf8b358ca94d0b61e2eb84f57a85250f12ab914e9321c65ff94f870e3f150eba978e26ce7cf3014
7
+ data.tar.gz: 3557c8f33b7077c91546f4f4e8e5374f90967c884a6a93131210d6c9652cef75262f564cca316fac30334174952d28c6a626c7ef882f923ab82e7308a16520d3
@@ -7,6 +7,11 @@ module Dina
7
7
  property :code, type: :string
8
8
  property :multilingualDescription, type: :multilingual_description
9
9
  property :siteGeom, type: :geospatial
10
+ property :dwcCountry, type: :string
11
+ property :dwcCountryCode, type: :string
12
+ property :dwcStateProvince, type: :string
13
+ property :geographicPlaceNameSource, type: :string
14
+ property :geographicPlaceNameSourceDetail, type: :hash, default: {}
10
15
  property :createdBy, type: :string
11
16
  property :createdOn, type: :time
12
17
 
@@ -22,5 +27,14 @@ module Dina
22
27
  "site"
23
28
  end
24
29
 
30
+ private
31
+
32
+ def on_before_save
33
+ if self.geographicPlaceNameSource.nil?
34
+ self.geographicPlaceNameSourceDetail = nil
35
+ end
36
+ super
37
+ end
38
+
25
39
  end
26
40
  end
@@ -12,8 +12,9 @@ module Dina
12
12
  property :fileIdentifier, type: :string
13
13
  property :bucket, type: :string
14
14
  property :acCaption, type: :string
15
- property :acDigitizationDate, type: :string
15
+ property :acDigitizationDate, type: :string, default: Time.now.iso8601.to_s
16
16
  property :xmpMetadataDate, type: :time
17
+ property :filename, type: :string
17
18
  property :originalFilename, type: :string
18
19
  property :fileExtension, type: :string
19
20
  property :acHashFunction, type: :string, default: "SHA-1"
@@ -27,7 +28,9 @@ module Dina
27
28
  property :managedAttributes, type: :hash
28
29
  property :acTags, type: :array
29
30
  property :orientation, type: :integer
31
+ property :isExternalResource, type: :boolean, default: false
30
32
  property :resourceExternalURL, type: :string
33
+ property :sourceSet, type: :string
31
34
 
32
35
  has_one :acMetadataCreator, class_name: "Person"
33
36
  has_one :dcCreator, class_name: "Person"
data/lib/dina/version.rb CHANGED
@@ -3,7 +3,7 @@ module Dina
3
3
 
4
4
  MAJOR = 3
5
5
  MINOR = 3
6
- PATCH = 2
6
+ PATCH = 4
7
7
  BUILD = 0
8
8
 
9
9
  def self.version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dina
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.2.0
4
+ version: 3.3.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David P. Shorthouse
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2026-03-17 00:00:00.000000000 Z
12
+ date: 2026-04-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_api_client