Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge sbJson writer changes after second review session #96

Merged
merged 12 commits into from
Jun 12, 2017
Prev Previous commit
Next Next commit
Use citation.title as metadataRepository.title
  • Loading branch information
stansmith907 committed Jun 8, 2017
commit 7ca3de4544b626757e4ffd8daba93d83be64f837
1 change: 1 addition & 0 deletions lib/adiwg/mdtranslator/version.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# adiwg mdTranslator

# version 2 history
# 2.0.0rc10 2017-06-05 apply changes to sbJson writer after review
# 2.0.0rc9 2017-05-26 allow choice of which dictionary to translate
# ... fix bug when no dictionary is provided in mdJson
# ... add sbJson writer
Original file line number Diff line number Diff line change
@@ -17,8 +17,9 @@ def self.build(aRepositories)
aRepositories.each do |hRepo|
if hRepo[:repository] == 'data.gov'
repository[:repository] = hRepo[:repository]
repository[:title] = 'Data.gov'
repository[:title] = 'Data.gov' # default
unless hRepo[:citation].empty?
repository[:title] = hRepo[:citation][:title] unless hRepo[:citation][:title].nil?
unless hRepo[:citation][:identifiers].empty?
repository[:identifier] = hRepo[:citation][:identifiers][0][:identifier]
end