Skip to content

Commit

Permalink
change divs to headers (#337)
Browse files Browse the repository at this point in the history
* change divs to headers

* fix key within qualityMeasure. change to header tags
  • Loading branch information
J-Oliveros authored Feb 1, 2024
1 parent dc28432 commit 894515e
Show file tree
Hide file tree
Showing 49 changed files with 156 additions and 156 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ def writeQualityMeasure(qualityMeasure)
end

# Names
unless qualityMeasure[:name].empty?
unless qualityMeasure[:nameOfMeasure].empty?
@html.em('Names: ')
@html.text!(qualityMeasure[:name].join('; '))
@html.text!(qualityMeasure[:nameOfMeasure].join('; '))
@html.br
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def writeHtml(hAddDoc)
# additional documentation - citation [] {citation}
hAddDoc[:citation].each do |hCitation|
@html.div do
@html.div(hCitation[:title], {'class' => 'h5'})
@html.h5(hCitation[:title], {'class' => 'h5'})
@html.div(:class => 'block') do
citationClass.writeHtml(hCitation)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def writeHtml(hAlgorithm)
# algorithm - citation {citation}
unless hAlgorithm[:citation].empty?
@html.div do
@html.div('Algorithm citation', {'class' => 'h5'})
@html.h5('Algorithm citation', {'class' => 'h5'})
@html.div(:class => 'block') do
citationClass.writeHtml(hAlgorithm[:citation])
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def writeHtml(hAllocation)
# allocation - responsible parties [] {responsibleParty}
hAllocation[:responsibleParties].each do |hResponsibility|
@html.div do
@html.div(hResponsibility[:roleName], 'class' => 'h5')
@html.h5(hResponsibility[:roleName], 'class' => 'h5')
@html.div(:class => 'block') do
responsibilityClass.writeHtml(hResponsibility)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def writeHtml(hResource)
# associated resource - resource citation {citation}
unless hResource[:resourceCitation].empty?
@html.div do
@html.div('Resource citation', {'class' => 'h5'})
@html.h5('Resource citation', {'class' => 'h5'})
@html.div(:class => 'block') do
citationClass.writeHtml(hResource[:resourceCitation])
end
Expand All @@ -57,7 +57,7 @@ def writeHtml(hResource)
# associated resource - metadata citation
unless hResource[:metadataCitation].empty?
@html.div do
@html.div('Metadata citation', {'class' => 'h5'})
@html.h5('Metadata citation', {'class' => 'h5'})
@html.div(:class => 'block') do
citationClass.writeHtml(hResource[:metadataCitation])
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def writeHtml(hAttribute)
# attribute - attribute identifiers [] {identifier}
hAttribute[:attributeIdentifiers].each do |hIdentifier|
@html.div do
@html.div('Identifier', 'class' => 'h5')
@html.h5('Identifier', 'class' => 'h5')
@html.div(:class => 'block') do
identifierClass.writeHtml(hIdentifier)
end
Expand Down Expand Up @@ -121,7 +121,7 @@ def writeHtml(hAttribute)
# attribute - range element description
hAttribute[:rangeElementDescription].each do |red|
@html.div do
@html.div('Range Element Description', 'class' => 'h5')
@html.h5('Range Element Description', 'class' => 'h5')
@html.div(:class => 'block') do
rangeElementDescriptionClass.writeHtml(red)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def writeHtml(hGroup)
hGroup[:attributes].each do |hAttribute|
@html.div do
counter += 1
@html.div('Attribute '+counter.to_s, {'class' => 'h5'})
@html.h5('Attribute '+counter.to_s, {'class' => 'h5'})
@html.div(:class => 'block') do
attributeClass.writeHtml(hAttribute)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def writeHtml(hCitation)
# citation - responsibilities [] {responsibility}
hCitation[:responsibleParties].each do |hResponsibility|
@html.div do
@html.div(hResponsibility[:roleName], 'class' => 'h5')
@html.h5(hResponsibility[:roleName], 'class' => 'h5')
@html.div(:class => 'block') do
responsibilityClass.writeHtml(hResponsibility)
end
Expand All @@ -78,7 +78,7 @@ def writeHtml(hCitation)
# citation - identifier []
hCitation[:identifiers].each do |hIdentifier|
@html.div do
@html.div('Identifier', 'class' => 'h5')
@html.h5('Identifier', 'class' => 'h5')
@html.div(:class => 'block') do
identifierClass.writeHtml(hIdentifier)
end
Expand All @@ -88,7 +88,7 @@ def writeHtml(hCitation)
# citation - series
unless hCitation[:series].empty?
@html.div do
@html.div('Publication Series', {'class' => 'h5'})
@html.h5('Publication Series', {'class' => 'h5'})
@html.div(:class => 'block') do

hSeries = hCitation[:series]
Expand Down Expand Up @@ -121,7 +121,7 @@ def writeHtml(hCitation)
# citation - online resource []
hCitation[:onlineResources].each do |hOnline|
@html.div do
@html.div('Online Resource', {'class' => 'h5'})
@html.h5('Online Resource', {'class' => 'h5'})
@html.div(:class => 'block') do
onlineClass.writeHtml(hOnline)
end
Expand All @@ -131,7 +131,7 @@ def writeHtml(hCitation)
# citation - browse graphic []
hCitation[:browseGraphics].each do |hGraphic|
@html.div do
@html.div('Graphic Overview', {'class' => 'h5'})
@html.h5('Graphic Overview', {'class' => 'h5'})
@html.div(:class => 'block') do
graphicClass.writeHtml(hGraphic)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def writeHtml(hClassD)
aClassItems = hClassD[:classedDataItems]
aClassItems.each do |hClassItem|
@html.div do
@html.div(hClassItem[:className], {'class'=>'h5'})
@html.h5(hClassItem[:className], {'class'=>'h5'})
@html.div(:class=>'block') do
htmlClassItem.writeHtml(hClassItem)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def writeHtml(hConstraint)
# constraint - scope {scope}
unless hConstraint[:scope].empty?
@html.div do
@html.div('Scope', {'class' => 'h5'})
@html.h5('Scope', {'class' => 'h5'})
@html.div(:class => 'block') do
scopeClass.writeHtml(hConstraint[:scope])
end
Expand All @@ -62,7 +62,7 @@ def writeHtml(hConstraint)
# constraint - graphic [] {graphic}
hConstraint[:graphic].each do |hGraphic|
@html.div do
@html.div('Graphic', {'class' => 'h5'})
@html.h5('Graphic', {'class' => 'h5'})
@html.div(:class => 'block') do
graphicClass.writeHtml(hGraphic)
end
Expand All @@ -72,7 +72,7 @@ def writeHtml(hConstraint)
# constraint - reference [] {citation}
hConstraint[:reference].each do |hReference|
@html.div do
@html.div('Reference', {'class' => 'h5'})
@html.h5('Reference', {'class' => 'h5'})
@html.div(:class => 'block') do
citationClass.writeHtml(hReference)
end
Expand All @@ -82,7 +82,7 @@ def writeHtml(hConstraint)
# constraint - releasability {releasability}
unless hConstraint[:releasability].empty?
@html.div do
@html.div('Releasability', {'class' => 'h5'})
@html.h5('Releasability', {'class' => 'h5'})
@html.div(:class => 'block') do
releasabilityClass.writeHtml(hConstraint[:releasability])
end
Expand All @@ -92,7 +92,7 @@ def writeHtml(hConstraint)
# constraint - responsibility [] {responsibility}
hConstraint[:responsibleParty].each do |hResponsibility|
@html.div do
@html.div(hResponsibility[:roleName], {'class' => 'h5'})
@html.h5(hResponsibility[:roleName], {'class' => 'h5'})
@html.div(:class => 'block') do
responsibilityClass.writeHtml(hResponsibility)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def writeHtml(hContact)
graphicClass = Html_Graphic.new(@html)

@html.div do
@html.div(hContact[:name], {'id' => 'CID_' + hContact[:contactId], 'class' => 'h3'})
@html.h3(hContact[:name], {'id' => 'CID_' + hContact[:contactId], 'class' => 'h3'})
@html.div(:class => 'block') do

# contact - contact ID
Expand Down Expand Up @@ -70,7 +70,7 @@ def writeHtml(hContact)
# contact - address
hContact[:addresses].each do |hAddress|
@html.div do
@html.div('Address', {'class' => 'h5'})
@html.h5('Address', {'class' => 'h5'})
@html.div(:class => 'block') do

# address - delivery points
Expand Down Expand Up @@ -119,7 +119,7 @@ def writeHtml(hContact)
# contact - phones
hContact[:phones].each do |hPhone|
@html.div do
@html.div('Phone', {'class' => 'h5'})
@html.h5('Phone', {'class' => 'h5'})
@html.div(:class => 'block') do

# phone - name
Expand Down Expand Up @@ -159,7 +159,7 @@ def writeHtml(hContact)
# contact - online resource []
hContact[:onlineResources].each do |hOnline|
@html.div do
@html.div('Online Resource', {'class' => 'h5'})
@html.h5('Online Resource', {'class' => 'h5'})
@html.div(:class => 'block') do
onlineClass.writeHtml(hOnline)
end
Expand All @@ -169,7 +169,7 @@ def writeHtml(hContact)
# contact - logos []
hContact[:logos].each do |hLogo|
@html.div do
@html.div('Logo Graphic', {'class' => 'h5'})
@html.h5('Logo Graphic', {'class' => 'h5'})
@html.div(:class => 'block') do
graphicClass.writeHtml(hLogo)
end
Expand All @@ -194,7 +194,7 @@ def writeHtml(hContact)
if hContact.key?(:externalIdentifier) && !hContact[:externalIdentifier].empty?
hContact[:externalIdentifier].each do |identifier|
@html.div do
@html.div("External Identifier", {'class' => 'h5'})
@html.h5("External Identifier", {'class' => 'h5'})
@html.div(:class => 'block') do
@html.em('Identifier: ')
@html.text!(identifier[:identifier])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def writeHtml(hCoverage)
# coverage - process level code
unless hCoverage[:processingLevelCode].empty?
@html.div do
@html.div('Processing Level Code', {'class' => 'h5'})
@html.h5('Processing Level Code', {'class' => 'h5'})
@html.div(:class => 'block') do
identifierClass.writeHtml(hCoverage[:processingLevelCode])
end
Expand All @@ -55,7 +55,7 @@ def writeHtml(hCoverage)
# coverage - attribute group [] {attributeGroup}
hCoverage[:attributeGroups].each do |hAttGroup|
@html.div do
@html.div('Attribute Group', {'class' => 'h5'})
@html.h5('Attribute Group', {'class' => 'h5'})
@html.div(:class => 'block') do
attGroupClass.writeHtml(hAttGroup)
end
Expand All @@ -65,7 +65,7 @@ def writeHtml(hCoverage)
# coverage - image description {imageInfo}
unless hCoverage[:imageDescription].empty?
@html.div do
@html.div('Image Description', {'class' => 'h5'})
@html.h5('Image Description', {'class' => 'h5'})
@html.div(:class => 'block') do
imageClass.writeHtml(hCoverage[:imageDescription])
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def writeHtml(hDictionary)
# dictionary - domains [] {domain}
unless hDictionary[:domains].empty?
@html.div do
@html.div('Domains', {'class' => 'h5'})
@html.h5('Domains', {'class' => 'h5'})
@html.div(:class => 'block') do
domainClass.writeHtml(hDictionary[:domains])
end
Expand All @@ -61,7 +61,7 @@ def writeHtml(hDictionary)
# dictionary - entities [] {entity}
unless hDictionary[:entities].empty?
@html.div do
@html.div('Entities', {'class' => 'h5'})
@html.h5('Entities', {'class' => 'h5'})
@html.div(:class => 'block') do
entityClass.writeHtml(hDictionary[:entities])
end
Expand All @@ -71,7 +71,7 @@ def writeHtml(hDictionary)
# dictionary - citation {citation}
unless hDictionary[:citation].empty?
@html.div do
@html.div('Citation', {'class' => 'h5'})
@html.h5('Citation', {'class' => 'h5'})
@html.div(:class => 'block') do
citationClass.writeHtml(hDictionary[:citation])
end
Expand All @@ -81,7 +81,7 @@ def writeHtml(hDictionary)
# dictionary - locales {locale}
hDictionary[:locales].each do |hLocale|
@html.div do
@html.div('Locale', {'class' => 'h5'})
@html.h5('Locale', {'class' => 'h5'})
@html.div(:class => 'block') do
localeClass.writeHtml(hLocale)
end
Expand All @@ -91,7 +91,7 @@ def writeHtml(hDictionary)
# dictionary - responsible party {responsibility}
unless hDictionary[:responsibleParty].empty?
@html.div do
@html.div(hDictionary[:responsibleParty][:roleName], {'class' => 'h5'})
@html.h5(hDictionary[:responsibleParty][:roleName], {'class' => 'h5'})
@html.div(:class => 'block') do
responsibilityClass.writeHtml(hDictionary[:responsibleParty])
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def writeHtml(hDataQuality)
unless hDataQuality[:scope].empty?
@html.div(class: 'block') do
@html.div do
@html.div('Scope', {'class' => 'h5'})
@html.h5('Scope', {'class' => 'h5'})
@html.div(class: 'block') do
scopeClass.writeHtml(hDataQuality[:scope])
end
Expand All @@ -35,7 +35,7 @@ def writeHtml(hDataQuality)

@html.div(class: 'block') do
@html.div do
@html.div('Standalone Quality Report', {'class' => 'h5'})
@html.h5('Standalone Quality Report', {'class' => 'h5'})
unless report[:abstract].nil?
@html.div(class: 'block') do
@html.em('Abstract:')
Expand All @@ -45,7 +45,7 @@ def writeHtml(hDataQuality)

unless report[:reportReference].nil?
@html.div do
@html.div('Report Reference', {'class' => 'h5'})
@html.h5('Report Reference', {'class' => 'h5'})
@html.div(class: 'block') do
citationClass.writeHtml(report[:reportReference])
end
Expand All @@ -60,11 +60,11 @@ def writeHtml(hDataQuality)
unless hDataQuality[:report].empty?
@html.div(class: 'block') do
@html.div do
@html.div('Reports', {'class' => 'h4'})
@html.h4('Reports', {'class' => 'h4'})
hDataQuality[:report].each do |report|
@html.div(class: 'block') do
@html.div do
@html.div('Report', {'class' => 'h5'})
@html.h5('Report', {'class' => 'h5'})
dataQualityReportClass.writeHtml(report)
end
end
Expand Down
Loading

0 comments on commit 894515e

Please sign in to comment.