adiwg-mdtranslator 1.1.0 → 1.1.1

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
  SHA1:
3
- metadata.gz: 1c9190f59cb06120337f450218450d6fd3768ae8
4
- data.tar.gz: 0697e17ef822693beec73ed375f46f8327b1a2fb
3
+ metadata.gz: 1813b83d6f06fc269f456df155da5a49c0112c29
4
+ data.tar.gz: 906191f4ca3c3e77999c0e8c6862adeab1869eb3
5
5
  SHA512:
6
- metadata.gz: 06dee876009cdae0ec4271d91b5e8d92471486ca00e5953bc20367532536fb1dd0f939247c8a2682438531a5ec273f8c33467947a342bd36fac5ec7b7f453aca
7
- data.tar.gz: b68e266cf5606a7ed236b24bd94c0d485b3a585e49c5d767f0019f4b93de5693927c573d4475d347636e63ca5a5b65b9b964acef8533e4c7b90f4a96a460ec52
6
+ metadata.gz: c9fbf80823eb3c40554a4f558134efe194bec90c6e4a6ed4d73a78752aec1e721cf79027fd412942db399c1d80583790cccb85ab83ae2334db774270c41df79d
7
+ data.tar.gz: 144975542009eaa78cc12520a30a81a7a189871b3de16630aa07c46820aad5474695bf067f85312355a8d667c07c0c11ee6312129163dbdc2bdf01f7448389eb
@@ -42,7 +42,7 @@
42
42
  module ADIWG
43
43
  module Mdtranslator
44
44
  # current mdtranslator version
45
- VERSION = "1.1.0"
45
+ VERSION = "1.1.1"
46
46
  end
47
47
  end
48
48
 
@@ -39,6 +39,7 @@ module ADIWG
39
39
 
40
40
  # make sections of the internal data store more accessible
41
41
  hMetadata = intObj[:metadata]
42
+ hMetaInfo = hMetadata[:metadataInfo]
42
43
  aDataDict = intObj[:dataDictionary]
43
44
  aDistributor = intObj[:metadata][:distributorInfo]
44
45
  aAssRes = intObj[:metadata][:associatedResources]
@@ -127,11 +128,14 @@ module ADIWG
127
128
 
128
129
  # metadata information section
129
130
  @html.h2('Metadata Information', 'id'=>'metadataInfo')
130
- @html.section(:class=>'block') do
131
- htmlMetaInfo.writeHtml(hMetadata[:metadataInfo])
131
+ if !hMetaInfo.empty?
132
+ @html.section(:class=>'block') do
133
+ htmlMetaInfo.writeHtml(hMetaInfo)
134
+ end
132
135
  end
133
136
  @html.hr
134
137
 
138
+
135
139
  # resource information section
136
140
  @html.h2('Resource Information', 'id'=>'resourceInfo')
137
141
  @html.section(:class=>'block') do
@@ -28,16 +28,22 @@ module ADIWG
28
28
  htmlResMaint = $HtmlNS::MdHtmlResourceMaintenance.new(@html)
29
29
 
30
30
  # metadata identifier
31
- @html.details do
32
- @html.summary('Metadata Identifier', {'id'=>'metadata-identifier', 'class'=>'h3'})
33
- @html.section(:class=>'block') do
34
- @html.em('Identifier:')
35
- @html.text!(hMetaInfo[:metadataId][:identifier])
36
- @html.br
31
+ id = hMetaInfo[:metadataId][:identifier]
32
+ if id
33
+ @html.details do
34
+ @html.summary('Metadata Identifier', {'id'=>'metadata-identifier', 'class'=>'h3'})
35
+ @html.section(:class=>'block') do
36
+ @html.em('Identifier:')
37
+ @html.text!(id)
38
+ @html.br
37
39
 
38
- @html.em('Identifier type:')
39
- @html.text!(hMetaInfo[:metadataId][:identifierType])
40
- @html.br
40
+ type = hMetaInfo[:metadataId][:identifierType]
41
+ if type
42
+ @html.em('Identifier type:')
43
+ @html.text!(type)
44
+ @html.br
45
+ end
46
+ end
41
47
  end
42
48
  end
43
49
 
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: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stan Smith