dor-services 5.3.2 → 5.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dor/datastreams/embargo_metadata_ds.rb +5 -5
- data/lib/dor/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99003e225249632e5f2b5b9f6b348b2c87b76cb0
|
4
|
+
data.tar.gz: d2dae28f99fc6abb664d29e2da81890659a389c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f0494d138e820da853e5f4b2d47dc9ddebc4496a42b9fd6a17247b333806cc2ddabd54ec911065e498188e3959089d6529a8e3f9e1b174508d03ee9028bb01c
|
7
|
+
data.tar.gz: 8c83276ec9d2355a436d6cad201cbcbd59ce1244b43d9190e085628937ad1af637d0871ff9515da2c29162ab8e3d4f5d36921cb7352f002aed02798dc662c949
|
@@ -32,8 +32,8 @@ class EmbargoMetadataDS < ActiveFedora::OmDatastream
|
|
32
32
|
#::Solrizer.insert_field(solr_doc, field_name, value, *index_types)
|
33
33
|
rd1 = release_date
|
34
34
|
rd20 = twenty_pct_release_date
|
35
|
-
::Solrizer.insert_field(solr_doc, 'embargo_release', rd1.utc.strftime('%FT%TZ'), :dateable) unless rd1.
|
36
|
-
::Solrizer.insert_field(solr_doc, 'twenty_pct_visibility_release', rd20.utc.strftime('%FT%TZ'), :dateable) unless rd20.
|
35
|
+
::Solrizer.insert_field(solr_doc, 'embargo_release', rd1.utc.strftime('%FT%TZ'), :dateable) unless rd1.blank?
|
36
|
+
::Solrizer.insert_field(solr_doc, 'twenty_pct_visibility_release', rd20.utc.strftime('%FT%TZ'), :dateable) unless rd20.blank?
|
37
37
|
solr_doc
|
38
38
|
end
|
39
39
|
|
@@ -54,10 +54,10 @@ class EmbargoMetadataDS < ActiveFedora::OmDatastream
|
|
54
54
|
term_values(:status).first
|
55
55
|
end
|
56
56
|
|
57
|
-
# Sets the release date.
|
58
|
-
# @param [Time] rd
|
57
|
+
# Sets the release date. Does NOT convert to beginning-of-day.
|
58
|
+
# @param [Time] rd the release date object
|
59
59
|
def release_date=(rd = Time.now.utc)
|
60
|
-
update_values([:release_date] => rd.
|
60
|
+
update_values([:release_date] => rd.utc.xmlschema)
|
61
61
|
self.content = ng_xml.to_s
|
62
62
|
end
|
63
63
|
|
data/lib/dor/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dor-services
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.3.
|
4
|
+
version: 5.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Klein
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2016-
|
17
|
+
date: 2016-02-03 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: active-fedora
|