dina 0.5.0.0 → 0.5.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dina/models/base_model.rb +6 -0
- data/lib/dina/models/object_store/object_store.rb +1 -1
- data/lib/dina/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38d9beaf0e0b3193f1fb555df9915df0ec6de3dbeae45c066c536e0a2509ede5
|
4
|
+
data.tar.gz: '0963571341f6fc59cef4c7b8403f271eac7cf275e123bee258fdefd4beb6051f'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da34d372945da32fb37edeb09b6fa796e1a48bc832d098973c2386a2dc8870d92c8663b6b21c580b6f94fa0b0b5ca30f1cfc30a5af8f36e26741ad65a2c82754
|
7
|
+
data.tar.gz: b7aa54b8030c827919f270eed92f8dff3f2f23078d6c32d7dd180a22b37ff082da22ade4a850a2a5fb8a3afd87c6e6b5e96559b831fd91244591abad630aaab3
|
@@ -23,6 +23,12 @@ module Dina
|
|
23
23
|
self.where("group.groupName": group).page(page).per(per)
|
24
24
|
end
|
25
25
|
|
26
|
+
def initialize(params = {})
|
27
|
+
symbolized_params = params.transform_keys(&:to_sym)
|
28
|
+
params["id"] = SecureRandom.uuid if !symbolized_params[:id]
|
29
|
+
super
|
30
|
+
end
|
31
|
+
|
26
32
|
def english_description
|
27
33
|
if self.respond_to?(:multilingualDescription)
|
28
34
|
multilingualDescription[:descriptions].select{|o| o[:lang] == "en"}.first[:desc]
|
@@ -20,7 +20,7 @@ module Dina
|
|
20
20
|
property :acHashValue, type: :string
|
21
21
|
property :xmpRightsUsageTerms, type: :string, default: "Government of Canada Usage Term"
|
22
22
|
property :xmpRightsWebStatement, type: :string, default: "https://open.canada.ca/en/open-government-licence-canada"
|
23
|
-
property :dcRights, type: :string, default: "©
|
23
|
+
property :dcRights, type: :string, default: "© His Majesty The King in Right of Canada, as represented by the Minister of Agriculture and Agri-Food | © Sa Majesté le Roi du chef du Canada, représentée par le ministre de l’Agriculture et de l’Agroalimentaire"
|
24
24
|
property :xmpRightsOwner, type: :string, default: "Government of Canada"
|
25
25
|
property :publiclyReleasable, type: :boolean, default: true
|
26
26
|
property :notPubliclyReleasableReason, type: :string
|
data/lib/dina/version.rb
CHANGED