Skip to content

Commit

Permalink
Fix: Replaced div with h5 as needed
Browse files Browse the repository at this point in the history
  • Loading branch information
jwaspin committed Jun 27, 2024
1 parent 6fc43b5 commit de2706f
Show file tree
Hide file tree
Showing 17 changed files with 46 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def writeHtml(hAllocation)
# allocation - online resource [] {onlineResource}
hAllocation[: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 Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def writeCoverageResult(coverageResult)
# ResultContentDescription
unless result[:resultContentDescription].empty?
@html.div do
@html.div('Result Content Description', {'class' => 'h5'})
@html.h5('Result Content Description', {'class' => 'h5'})
@html.div(:class => 'block') do
coverageInfoClass.writeHtml(result[:resultContentDescription])
end
Expand All @@ -272,7 +272,7 @@ def writeCoverageResult(coverageResult)
# ResourceFormat
unless result[:resourceFormat].empty?
@html.div do
@html.div('Resource Format', {'class' => 'h5'})
@html.h5('Resource Format', {'class' => 'h5'})
@html.div(:class => 'block') do
formatClass.writeHtml(result[:resourceFormat])
end
Expand All @@ -282,7 +282,7 @@ def writeCoverageResult(coverageResult)
# ResultFile
unless result[:resultFile].empty?
@html.div do
@html.div('Result File', {'class' => 'h5'})
@html.h5('Result File', {'class' => 'h5'})
@html.div(:class => 'block') do
resultFileClass.writeHtml(result[:resultFile])
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def writeHtml(hExtent)
# geographic extent - identifier {identifier}
unless hExtent[:identifier].empty?
@html.div do
@html.div('Identifier', 'class' => 'h5')
@html.h5('Identifier', 'class' => 'h5')
@html.div(:class => 'block') do
identifierClass.writeHtml(hExtent[:identifier])
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def writeHtml(hLineage)
# lineage - scope
unless hLineage[:resourceScope].empty?
@html.div do
@html.div('Scope', {'class' => 'h5'})
@html.h5('Scope', {'class' => 'h5'})
@html.div(:class => 'block') do
scopeClass.writeHtml(hLineage[:resourceScope])
end
Expand All @@ -51,7 +51,7 @@ def writeHtml(hLineage)
# lineage - citation
hLineage[:lineageCitation].each do |hCitation|
@html.div do
@html.div('Citation', {'class' => 'h5'})
@html.h5('Citation', {'class' => 'h5'})
@html.div(:class => 'block') do
citationClass.writeHtml(hCitation)
end
Expand All @@ -61,7 +61,7 @@ def writeHtml(hLineage)
# lineage - data sources
hLineage[:dataSources].each do |hsource|
@html.div do
@html.div('Data Source', {'class' => 'h5'})
@html.h5('Data Source', {'class' => 'h5'})
@html.div(:class => 'block') do
sourceClass.writeHtml(hsource)
end
Expand All @@ -71,7 +71,7 @@ def writeHtml(hLineage)
# lineage - process steps
hLineage[:processSteps].each do |hStep|
@html.div do
@html.div('Process Step', {'class' => 'h5'})
@html.h5('Process Step', {'class' => 'h5'})
@html.div(:class => 'block') do
stepClass.writeHtml(hStep)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ def writeHtml(hMaint)
# maintenance - scopes [] {scope}
unless hMaint[:scopes].empty?
@html.div do
@html.div('Maintenance Scopes', {'class' => 'h5'})
@html.h5('Maintenance Scopes', {'class' => 'h5'})
@html.div(:class => 'block') do
hMaint[:scopes].each do |hScope|
@html.div do
@html.div(hScope[:scopeCode], 'class' => 'h5')
@html.h5(hScope[:scopeCode], 'class' => 'h5')
@html.div(:class => 'block') do
scopeClass.writeHtml(hScope)
end
Expand All @@ -64,11 +64,11 @@ def writeHtml(hMaint)
# maintenance - contacts [] {responsibility}
unless hMaint[:contacts].empty?
@html.div do
@html.div('Maintenance Contacts', {'class' => 'h5'})
@html.h5('Maintenance Contacts', {'class' => 'h5'})
@html.div(:class => 'block') do
hMaint[:contacts].each do |hContact|
@html.div do
@html.div(hContact[:roleName], 'class' => 'h5')
@html.h5(hContact[:roleName], 'class' => 'h5')
@html.div(:class => 'block') do
responsibilityClass.writeHtml(hContact)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def writeHtml(hMedium)
# medium - specification {citation}
unless hMedium[:mediumSpecification].empty?
@html.div do
@html.div('Medium Specification', {'class' => 'h5'})
@html.h5('Medium Specification', {'class' => 'h5'})
@html.div(:class => 'block') do
citationClass.writeHtml(hMedium[:mediumSpecification])
end
Expand Down Expand Up @@ -74,7 +74,7 @@ def writeHtml(hMedium)
# medium - identifier {identifier}
unless hMedium[:identifier].empty?
@html.div do
@html.div('Identifier for the Medium', {'class' => 'h5'})
@html.h5('Identifier for the Medium', {'class' => 'h5'})
@html.div(:class => 'block') do
identifierClass.writeHtml(hMedium[:identifier])
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def writeHtml(hMetaInfo)
# default metadata locales {locale}
unless hMetaInfo[:defaultMetadataLocale].empty?
@html.div do
@html.div('Default Locale', {'class' => 'h5'})
@html.h5('Default Locale', {'class' => 'h5'})
@html.div(:class => 'block') do
localeClass.writeHtml(hMetaInfo[:defaultMetadataLocale])
end
Expand All @@ -86,7 +86,7 @@ def writeHtml(hMetaInfo)
# other metadata locales [] {locale}
hMetaInfo[:otherMetadataLocales].each do |hLocale|
@html.div do
@html.div('Other Locale', {'class' => 'h5'})
@html.h5('Other Locale', {'class' => 'h5'})
@html.div(:class => 'block') do
localeClass.writeHtml(hLocale)
end
Expand All @@ -104,7 +104,7 @@ def writeHtml(hMetaInfo)
@html.div(:class => 'block') do
hMetaInfo[:metadataContacts].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 Expand Up @@ -179,7 +179,7 @@ def writeHtml(hMetaInfo)
@html.div(:class => 'block') do
hMetaInfo[:alternateMetadataReferences].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)
@html.br
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def writeHtml(hRelease)
@html.div(:class => 'block') do
hRelease[:addressee].each do |hAddressee|
@html.div do
@html.div(hAddressee[:roleName], 'class' => 'h5')
@html.h5(hAddressee[:roleName], 'class' => 'h5')
@html.div(:class => 'block') do
responsibilityClass.writeHtml(hAddressee)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def writeHtml(hResource)
hResource[:graphicOverviews].each do |hGraphic|
counter += 1
@html.div do
@html.div('Overview '+counter.to_s, 'class' => 'h5')
@html.h5('Overview '+counter.to_s, 'class' => 'h5')
@html.div(:class => 'block') do
graphicClass.writeHtml(hGraphic)
end
Expand All @@ -173,7 +173,7 @@ def writeHtml(hResource)
# contacts - responsibility
hResource[:pointOfContacts].each do |hContact|
@html.div do
@html.div(hContact[:roleName], 'class' => 'h5')
@html.h5(hContact[:roleName], 'class' => 'h5')
@html.div(:class => 'block') do
responsibilityClass.writeHtml(hContact)
end
Expand All @@ -183,7 +183,7 @@ def writeHtml(hResource)
# contacts - credits
unless hResource[:credits].empty?
@html.div do
@html.div('Other Credits', 'class' => 'h5')
@html.h5('Other Credits', 'class' => 'h5')
@html.div(:class => 'block') do
hResource[:credits].each do |credit|
@html.em('Credit: ')
Expand Down Expand Up @@ -216,7 +216,7 @@ def writeHtml(hResource)
unless hResource[:temporalResolutions].empty?
hResource[:temporalResolutions].each do |hResolution|
@html.div do
@html.div('Resolution', 'class' => 'h5')
@html.h5('Resolution', 'class' => 'h5')
@html.div(:class => 'block') do
durationClass.writeHtml(hResolution)
end
Expand Down Expand Up @@ -347,7 +347,7 @@ def writeHtml(hResource)
hResource[:taxonomy].each do |hTaxonomy|
counter += 1
@html.div do
@html.div('Taxonomic Structure '+counter.to_s, 'class' => 'h5')
@html.h5('Taxonomic Structure '+counter.to_s, 'class' => 'h5')
@html.div(:class => 'block') do
taxonomyClass.writeHtml(hTaxonomy)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def writeHtml(hResponsibility)
hResponsibility[:parties].each do |hParty|
hContact = Html_Document.getContact(hParty[:contactId])
@html.div do
@html.div(hContact[:name], 'class' => 'h5')
@html.h5(hContact[:name], 'class' => 'h5')
@html.div(:class => 'block') do

# party - contact ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def writeHtml(hRepresentation)
# spatial Representation - grid {gridRepresentation}
unless hRepresentation[:gridRepresentation].empty?
@html.div do
@html.div('Grid Representation ', 'class' => 'h5')
@html.h5('Grid Representation ', 'class' => 'h5')
@html.div(:class => 'block') do
gridClass.writeHtml(hRepresentation[:gridRepresentation])
end
Expand All @@ -41,7 +41,7 @@ def writeHtml(hRepresentation)
# spatial Representation - vector {vectorRepresentation}
unless hRepresentation[:vectorRepresentation].empty?
@html.div do
@html.div('Vector Representation ', 'class' => 'h5')
@html.h5('Vector Representation ', 'class' => 'h5')
@html.div(:class => 'block') do
vectorClass.writeHtml(hRepresentation[:vectorRepresentation])
end
Expand All @@ -51,7 +51,7 @@ def writeHtml(hRepresentation)
# spatial Representation - georectified {georectifiedRepresentation}
unless hRepresentation[:georectifiedRepresentation].empty?
@html.div do
@html.div('Georectified Representation ', 'class' => 'h5')
@html.h5('Georectified Representation ', 'class' => 'h5')
@html.div(:class => 'block') do
georectifiedClass.writeHtml(hRepresentation[:georectifiedRepresentation])
end
Expand All @@ -61,7 +61,7 @@ def writeHtml(hRepresentation)
# spatial Representation - georeferenceable {georeferenceableRepresentation}
unless hRepresentation[:georeferenceableRepresentation].empty?
@html.div do
@html.div('Georeferenceable Representation ', 'class' => 'h5')
@html.h5('Georeferenceable Representation ', 'class' => 'h5')
@html.div(:class => 'block') do
georeferenceableClass.writeHtml(hRepresentation[:georeferenceableRepresentation])
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def writeHtml(hTaxonomy)
@html.div(:class => 'block') do
hTaxonomy[:observers].each do |hObserver|
@html.div do
@html.div(hObserver[:roleName], 'class' => 'h5')
@html.h5(hObserver[:roleName], 'class' => 'h5')
@html.div(:class => 'block') do
responsibilityClass.writeHtml(hObserver)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def writeHtml(hInstant)
# time instant - identifier {identifier}
unless hInstant[:identifier].empty?
@html.div do
@html.div('Identifier', 'class' => 'h5')
@html.h5('Identifier', 'class' => 'h5')
@html.div(:class => 'block') do
identifierClass.writeHtml(hInstant[:identifier])
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def writeHtml(hPeriod)
# time period - start geologic age {geologic age}
unless hPeriod[:startGeologicAge].empty?
@html.div do
@html.div('Starting Geologic Age', 'class' => 'h5')
@html.h5('Starting Geologic Age', 'class' => 'h5')
@html.div(:class => 'block') do
geoAgeClass.writeHtml(hPeriod[:startGeologicAge])
end
Expand All @@ -80,7 +80,7 @@ def writeHtml(hPeriod)
# time period - end geologic age {geologic age}
unless hPeriod[:endGeologicAge].empty?
@html.div do
@html.div('Ending Geologic Age', 'class' => 'h5')
@html.h5('Ending Geologic Age', 'class' => 'h5')
@html.div(:class => 'block') do
geoAgeClass.writeHtml(hPeriod[:endGeologicAge])
end
Expand All @@ -90,7 +90,7 @@ def writeHtml(hPeriod)
# time period - identifier {identifier}
unless hPeriod[:identifier].empty?
@html.div do
@html.div('Identifier', 'class' => 'h5')
@html.h5('Identifier', 'class' => 'h5')
@html.div(:class => 'block') do
identifierClass.writeHtml(hPeriod[:identifier])
end
Expand All @@ -100,7 +100,7 @@ def writeHtml(hPeriod)
# time period - time interval
unless hPeriod[:timeInterval].empty?
@html.div do
@html.div('Time Interval', 'class' => 'h5')
@html.h5('Time Interval', 'class' => 'h5')
@html.div(:class => 'block') do
intervalClass.writeHtml(hPeriod[:timeInterval])
end
Expand All @@ -110,7 +110,7 @@ def writeHtml(hPeriod)
# time period - duration
unless hPeriod[:duration].empty?
@html.div do
@html.div('Duration', 'class' => 'h5')
@html.h5('Duration', 'class' => 'h5')
@html.div(:class => 'block') do
durationClass.writeHtml(hPeriod[:duration])
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def writeHtml(hOption)
# transfer options - transfer frequency {duration}
unless hOption[:transferFrequency].empty?
@html.div do
@html.div('Transfer Frequency', 'class' => 'h5')
@html.h5('Transfer Frequency', 'class' => 'h5')
@html.div(:class => 'block') do
durationClass.writeHtml(hOption[:transferFrequency])
end
Expand All @@ -78,7 +78,7 @@ def writeHtml(hOption)
# transfer options - distribution formats [] {format}
hOption[:distributionFormats].each do |hFormat|
@html.div do
@html.div('Distribution Format Option', 'class' => 'h5')
@html.h5('Distribution Format Option', 'class' => 'h5')
@html.div(:class => 'block') do
formatClass.writeHtml(hFormat)
end
Expand Down
Loading

0 comments on commit de2706f

Please sign in to comment.