research_metadata 1.1.0 → 1.1.1
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/CHANGELOG.md +4 -0
- data/lib/research_metadata/transformer/publication.rb +1 -2
- data/lib/research_metadata/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: fbded9e6113dd7fd6dc255aa1c25ea2416bfdb28
|
|
4
|
+
data.tar.gz: 10bf7dd33e69292fec26cf21ea7e703b7636bb65
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 332bb9638377160743902b235bfaed545c4dc6859390126de0f51127359846e74520b4a2ac06b56c1349b87d77ce8c54cff84219e2a9ccfc9410ed2e987c93d2
|
|
7
|
+
data.tar.gz: 70d0065f2037d220d4d60b2e0af380e6bfeb4564ef4975a12d8d54a7935b7f7df563bdcfbb900f00e53db2f0dbb67a6f99322d2a9eecda5fa7066f56bc4c77b6
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
4
4
|
|
|
5
5
|
## Unreleased
|
|
6
6
|
|
|
7
|
+
## 1.1.1 2017-04-25
|
|
8
|
+
### Fixed
|
|
9
|
+
- Transformer - publication (and subclasses) - enable unpublished works.
|
|
10
|
+
|
|
7
11
|
## 1.1.0 2017-03-31
|
|
8
12
|
### Added
|
|
9
13
|
- Transformer - thesis (Doctoral/Master's).
|
|
@@ -26,7 +26,6 @@ module ResearchMetadata
|
|
|
26
26
|
def transform(id: nil, uuid: nil, doi: nil)
|
|
27
27
|
@publication = extract uuid: uuid, id: id
|
|
28
28
|
return nil if !@publication
|
|
29
|
-
return nil if !publication_year
|
|
30
29
|
person_o = person
|
|
31
30
|
file_o = file
|
|
32
31
|
resource = ::Datacite::Mapping::Resource.new(
|
|
@@ -165,7 +164,7 @@ module ResearchMetadata
|
|
|
165
164
|
|
|
166
165
|
def publication_year
|
|
167
166
|
@publication.statuses.each do |i|
|
|
168
|
-
if i.stage === 'Published'
|
|
167
|
+
if i.stage === 'Published' || i.stage === 'Unpublished'
|
|
169
168
|
return i.date.year
|
|
170
169
|
end
|
|
171
170
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: research_metadata
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adrian Albin-Clark
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-04-
|
|
11
|
+
date: 2017-04-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: puree
|