adiwg-mdtranslator 2.19.0.pre.beta.28 → 2.19.0.pre.beta.29

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c2b29afcfa119d88b586c681a8ff17a71bbe9ee920cfe3ea5811c6929024818d
4
- data.tar.gz: b4eb9f1b0b86db2738dffd5362ed05a8ada2a7e6c7bbb5f6a201894b80260694
3
+ metadata.gz: c46eec2a287472b918b6fd3bf6adab38b374f1f34bae1eaeea82171ccdea6865
4
+ data.tar.gz: 36a0c56320659c2fc054b7f52c275b70a0882f64058202e2e46e058c81d20961
5
5
  SHA512:
6
- metadata.gz: 8bbdb26949180a83c535c1b4794857f6e8b6858e57163a63674f5eb8541ce1e7d61355f136bb542563c96664cddd354de52958ae5a39b0ddf79c4d80d1799fa6
7
- data.tar.gz: 74ea9e985ebd466c2ef8b8fa1feeadc1d97ca709f39f3ef4335bc0a5348b97f10106141b3f353475219f40c62fd8d8218a49c59ed2a9aaf9ba7505831d14434e
6
+ metadata.gz: 40f0d779700fe4240cbd8ceb510b5b9982b303359a0c16dfe73fa925d494db9027bf5e952061082e4f7ed36f1ceecbbb31da1675684ffddbed6745b9f77e2adb
7
+ data.tar.gz: 43634f675e34eea2b56b09106919e62390f9997cc121906ad6d45c8e8b5f3966595845d3a7a024ab1abd732156524da42162e987257ea840e43d0d55ae331c24
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- adiwg-mdtranslator (2.19.0.pre.beta.28)
4
+ adiwg-mdtranslator (2.19.0.pre.beta.29)
5
5
  adiwg-mdcodes (= 2.10.0)
6
6
  adiwg-mdjson_schemas (= 2.9.5)
7
7
  builder (~> 3.2)
@@ -109,7 +109,7 @@
109
109
  module ADIWG
110
110
  module Mdtranslator
111
111
  # current mdtranslator version
112
- VERSION = "2.19.0-beta.28"
112
+ VERSION = "2.19.0-beta.29"
113
113
  end
114
114
  end
115
115
 
@@ -293,26 +293,29 @@ module ADIWG
293
293
  @xml.tag!('mdb:referenceSystemInfo')
294
294
  end
295
295
 
296
- # metadata information - metadata extension info
297
- # add biological profile to all metadata records
298
- intBio = intMetadataClass.newMetadataExtension
299
- intBio[:name] = 'Taxonomy System'
300
- intBio[:shortName] = 'TaxonSys'
301
- intBio[:definition] = 'Documentation of taxonomic sources, procedures, and treatments'
302
- intBio[:obligation] = 'optional'
303
- intBio[:dataType] = 'class'
304
- intBio[:maxOccurrence] = '1'
305
- intBio[:parentEntities] << 'MD_Identification'
306
- intBio[:rule] = 'New Metadata section as a class to MD_Identification'
307
- intBio[:rationales] << 'The set of data elements contained within this class element ' +
308
- 'represents an attempt to provide better documentation of ' +
309
- 'taxonomic sources, procedures, and treatments.'
310
- intBio[:sourceOrganization] = 'National Biological Information Infrastructure'
311
- intBio[:sourceURI] = 'https://www2.usgs.gov/core_science_systems/Access/p1111-1.html'
312
- intBio[:sourceRole] = 'author'
313
-
314
- @xml.tag!('gmd:metadataExtensionInfo') do
315
- extensionClass.writeXML(intBio)
296
+ taxonomyArray = hResInfo[:taxonomy]
297
+ unless taxonomyArray.empty?
298
+ # metadata information - metadata extension info
299
+ # add biological profile to all metadata records
300
+ intBio = intMetadataClass.newMetadataExtension
301
+ intBio[:name] = 'Taxonomy System'
302
+ intBio[:shortName] = 'TaxonSys'
303
+ intBio[:definition] = 'Documentation of taxonomic sources, procedures, and treatments'
304
+ intBio[:obligation] = 'optional'
305
+ intBio[:dataType] = 'class'
306
+ intBio[:maxOccurrence] = '1'
307
+ intBio[:parentEntities] << 'MD_Identification'
308
+ intBio[:rule] = 'New Metadata section as a class to MD_Identification'
309
+ intBio[:rationales] << 'The set of data elements contained within this class element ' +
310
+ 'represents an attempt to provide better documentation of ' +
311
+ 'taxonomic sources, procedures, and treatments.'
312
+ intBio[:sourceOrganization] = 'National Biological Information Infrastructure'
313
+ intBio[:sourceURI] = 'https://www2.usgs.gov/core_science_systems/Access/p1111-1.html'
314
+ intBio[:sourceRole] = 'author'
315
+
316
+ @xml.tag!('gmd:metadataExtensionInfo') do
317
+ extensionClass.writeXML(intBio)
318
+ end
316
319
  end
317
320
 
318
321
  # ###################### Begin Data Identification #####################
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adiwg-mdtranslator
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.19.0.pre.beta.28
4
+ version: 2.19.0.pre.beta.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stan Smith
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-06-25 00:00:00.000000000 Z
12
+ date: 2024-06-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler