Skip to content

Commit

Permalink
change divs to headers
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Oliveros committed Feb 1, 2024
1 parent dc28432 commit 5938bf8
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
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
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def writeHtml(hMetaInfo)
# metadataInfo - metadata identifier {identifier}
unless hMetaInfo[:metadataIdentifier].empty?
@html.div do
@html.div('Metadata Identifier', {'id' => 'metadataInfo-identifier', 'class' => 'h3'})
@html.h3('Metadata Identifier', {'id' => 'metadataInfo-identifier', 'class' => 'h3'})
@html.div(:class => 'block') do
identifierClass.writeHtml(hMetaInfo[:metadataIdentifier])
end
Expand All @@ -60,7 +60,7 @@ def writeHtml(hMetaInfo)
# metadataInfo - parent metadata {citation}
unless hMetaInfo[:parentMetadata].empty?
@html.div do
@html.div('Parent Metadata', {'id' => 'metadataInfo-parent', 'class' => 'h3'})
@html.h3('Parent Metadata', {'id' => 'metadataInfo-parent', 'class' => 'h3'})
@html.div(:class => 'block') do
citationClass.writeHtml(hMetaInfo[:parentMetadata])
end
Expand All @@ -70,7 +70,7 @@ def writeHtml(hMetaInfo)
# metadataInfo - metadata locales
unless hMetaInfo[:defaultMetadataLocale].empty? && hMetaInfo[:otherMetadataLocales].empty?
@html.div do
@html.div('Metadata Locales', {'id' => 'metadataInfo-locale', 'class' => 'h3'})
@html.h3('Metadata Locales', {'id' => 'metadataInfo-locale', 'class' => 'h3'})
@html.div(:class => 'block') do

# default metadata locales {locale}
Expand Down Expand Up @@ -100,7 +100,7 @@ def writeHtml(hMetaInfo)
# metadataInfo - contacts [] {responsibility}
unless hMetaInfo[:metadataContacts].empty?
@html.div do
@html.div('Metadata Contacts', {'id' => 'metadataInfo-contacts', 'class' => 'h3'})
@html.h3('Metadata Contacts', {'id' => 'metadataInfo-contacts', 'class' => 'h3'})
@html.div(:class => 'block') do
hMetaInfo[:metadataContacts].each do |hResponsibility|
@html.div do
Expand All @@ -117,7 +117,7 @@ def writeHtml(hMetaInfo)
# metadataInfo - dates [] {date}
unless hMetaInfo[:metadataDates].empty?
@html.div do
@html.div('Metadata Dates', {'id' => 'metadataInfo-dates', 'class' => 'h3'})
@html.h3('Metadata Dates', {'id' => 'metadataInfo-dates', 'class' => 'h3'})
@html.div(:class => 'block') do
hMetaInfo[:metadataDates].each do |hDate|
@html.em('Date: ')
Expand All @@ -131,7 +131,7 @@ def writeHtml(hMetaInfo)
# metadataInfo - linkages [] {onlineResource}
unless hMetaInfo[:metadataLinkages].empty?
@html.div do
@html.div('Metadata Online Resource', {'id' => 'metadataInfo-links', 'class' => 'h3'})
@html.h3('Metadata Online Resource', {'id' => 'metadataInfo-links', 'class' => 'h3'})
@html.div(:class => 'block') do
hMetaInfo[:metadataLinkages].each do |hOnline|
@html.div do
Expand All @@ -148,7 +148,7 @@ def writeHtml(hMetaInfo)
# metadataInfo - constraints [] {constraint}
unless hMetaInfo[:metadataConstraints].empty?
@html.div do
@html.div('Metadata Constraints', {'id' => 'metadataInfo-constraint', 'class' => 'h3'})
@html.h3('Metadata Constraints', {'id' => 'metadataInfo-constraint', 'class' => 'h3'})
@html.div(:class => 'block') do
hMetaInfo[:metadataConstraints].each do |hConstraint|
@html.div do
Expand All @@ -165,7 +165,7 @@ def writeHtml(hMetaInfo)
# metadataInfo - maintenance {maintenance}
unless hMetaInfo[:metadataMaintenance].empty?
@html.div do
@html.div('Metadata Maintenance', {'id' => 'metadataInfo-maintenance', 'class' => 'h3'})
@html.h3('Metadata Maintenance', {'id' => 'metadataInfo-maintenance', 'class' => 'h3'})
@html.div(:class => 'block') do
maintClass.writeHtml(hMetaInfo[:metadataMaintenance])
end
Expand All @@ -175,7 +175,7 @@ def writeHtml(hMetaInfo)
# metadataInfo - alternate metadata references [] {citation}
unless hMetaInfo[:alternateMetadataReferences].empty?
@html.div do
@html.div('Alternate Metadata Citations', {'id' => 'metadataInfo-alternate', 'class' => 'h3'})
@html.h3('Alternate Metadata Citations', {'id' => 'metadataInfo-alternate', 'class' => 'h3'})
@html.div(:class => 'block') do
hMetaInfo[:alternateMetadataReferences].each do |hCitation|
@html.div do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def writeHtml(hResource)
# resource - citation {citation}
unless hResource[:citation].empty?
@html.div do
@html.div('Citation', {'id' => 'resourceInfo-citation', 'class' => 'h3'})
@html.h3('Citation', {'id' => 'resourceInfo-citation', 'class' => 'h3'})
@html.div(:class => 'block') do
citationClass.writeHtml(hResource[:citation])
end
Expand All @@ -86,7 +86,7 @@ def writeHtml(hResource)
# resource - abstract
unless hResource[:abstract].nil? && hResource[:shortAbstract].nil?
@html.div do
@html.div('Abstract', {'id' => 'resourceInfo-abstract', 'class' => 'h3'})
@html.h3('Abstract', {'id' => 'resourceInfo-abstract', 'class' => 'h3'})
@html.div(:class => 'block') do

# short abstract
Expand Down Expand Up @@ -115,7 +115,7 @@ def writeHtml(hResource)
# resource - purpose
unless hResource[:purpose].nil? && hResource[:resourceUsages].empty?
@html.div do
@html.div('Purpose, Usage, and Limitations', {'id' => 'resourceInfo-purpose', 'class' => 'h3'})
@html.h3('Purpose, Usage, and Limitations', {'id' => 'resourceInfo-purpose', 'class' => 'h3'})
@html.div(:class => 'block') do

# purpose
Expand Down Expand Up @@ -148,7 +148,7 @@ def writeHtml(hResource)
# resource - graphic overview [] {graphicOverview}
unless hResource[:graphicOverviews].empty?
@html.div do
@html.div('Graphic Overviews', {'id' => 'resourceInfo-overview', 'class' => 'h3'})
@html.h3('Graphic Overviews', {'id' => 'resourceInfo-overview', 'class' => 'h3'})
@html.div(:class => 'block') do
counter = 0
hResource[:graphicOverviews].each do |hGraphic|
Expand All @@ -167,7 +167,7 @@ def writeHtml(hResource)
# resource - point of contact [] {responsibility}
unless hResource[:pointOfContacts].empty? && hResource[:credits].empty?
@html.div do
@html.div('Resource Contacts', {'id' => 'resourceInfo-contacts', 'class' => 'h3'})
@html.h3('Resource Contacts', {'id' => 'resourceInfo-contacts', 'class' => 'h3'})
@html.div(:class => 'block') do

# contacts - responsibility
Expand Down Expand Up @@ -201,7 +201,7 @@ def writeHtml(hResource)
# resource - temporal information
unless hResource[:timePeriod].empty? && hResource[:temporalResolutions].empty?
@html.div do
@html.div('Temporal Information', {'id' => 'resourceInfo-temporal', 'class' => 'h3'})
@html.h3('Temporal Information', {'id' => 'resourceInfo-temporal', 'class' => 'h3'})
@html.div(:class => 'block') do

# time period {timePeriod}
Expand Down Expand Up @@ -234,7 +234,7 @@ def writeHtml(hResource)
hResource[:spatialRepresentations].empty?
hResource[:spatialResolutions].empty?
@html.div do
@html.div('Spatial Information', {'id' => 'resourceInfo-spatial', 'class' => 'h3'})
@html.h3('Spatial Information', {'id' => 'resourceInfo-spatial', 'class' => 'h3'})
@html.div(:class => 'block') do

# representation type [] {spatialRepresentation}
Expand Down Expand Up @@ -312,7 +312,7 @@ def writeHtml(hResource)
# # resource - extent [] {extent}
# unless hResource[:extents].empty?
# @html.div do
# @html.div('Spatial, Temporal, and Vertical Extents', {'id' => 'resourceInfo-extent', 'class' => 'h3'})
# @html.h3('Spatial, Temporal, and Vertical Extents', {'id' => 'resourceInfo-extent', 'class' => 'h3'})
# @html.div(:class => 'block') do
# hResource[:extents].each do |hExtent|
# @html.div do
Expand All @@ -329,7 +329,7 @@ def writeHtml(hResource)
# resource - keywords [] {keyword}
unless hResource[:keywords].empty?
@html.div do
@html.div('Keywords', {'id' => 'resourceInfo-keyword', 'class' => 'h3'})
@html.h3('Keywords', {'id' => 'resourceInfo-keyword', 'class' => 'h3'})
@html.div(:class => 'block') do
hResource[:keywords].each do |hKeyword|
keywordClass.writeHtml(hKeyword)
Expand All @@ -341,7 +341,7 @@ def writeHtml(hResource)
# resource - taxonomy {taxonomy}
unless hResource[:taxonomy].empty?
@html.div do
@html.div('Taxonomy', {'id' => 'resourceInfo-taxonomy', 'class' => 'h3'})
@html.h3('Taxonomy', {'id' => 'resourceInfo-taxonomy', 'class' => 'h3'})
@html.div(:class => 'block') do
counter = 0
hResource[:taxonomy].each do |hTaxonomy|
Expand All @@ -360,7 +360,7 @@ def writeHtml(hResource)
# resource - constraints [] {constraint}
unless hResource[:constraints].empty?
@html.div do
@html.div('Constraints', {'id' => 'resourceInfo-constraint', 'class' => 'h3'})
@html.h3('Constraints', {'id' => 'resourceInfo-constraint', 'class' => 'h3'})
@html.div(:class => 'block') do
hResource[:constraints].each do |hConstraint|
@html.div do
Expand All @@ -377,7 +377,7 @@ def writeHtml(hResource)
# resource - coverage description [] {coverageInfo}
unless hResource[:coverageDescriptions].empty?
@html.div do
@html.div('Coverage Description', {'id' => 'resourceInfo-Coverage', 'class' => 'h3'})
@html.h3('Coverage Description', {'id' => 'resourceInfo-Coverage', 'class' => 'h3'})
@html.div(:class => 'block') do
hResource[:coverageDescriptions].each do |hCoverage|
@html.div do
Expand All @@ -394,7 +394,7 @@ def writeHtml(hResource)
# resource - locale
unless hResource[:defaultResourceLocale].empty? && hResource[:otherResourceLocales].empty?
@html.div do
@html.div('Resource Locales', {'id' => 'resourceInfo-locale', 'class' => 'h3'})
@html.h3('Resource Locales', {'id' => 'resourceInfo-locale', 'class' => 'h3'})
@html.div(:class => 'block') do

# default resource locales {locale}
Expand Down Expand Up @@ -424,7 +424,7 @@ def writeHtml(hResource)
# resource - formats [] {format}
unless hResource[:resourceFormats].empty?
@html.div do
@html.div('Resource Formats', {'id' => 'resourceInfo-format', 'class' => 'h3'})
@html.h3('Resource Formats', {'id' => 'resourceInfo-format', 'class' => 'h3'})
@html.div(:class => 'block') do
hResource[:resourceFormats].each do |hFormat|
@html.div do
Expand All @@ -443,7 +443,7 @@ def writeHtml(hResource)
hResource[:environmentDescription].nil? &&
hResource[:supplementalInfo].nil?
@html.div do
@html.div('Supplemental Information', {'id' => 'resourceInfo-supplemental', 'class' => 'h3'})
@html.h3('Supplemental Information', {'id' => 'resourceInfo-supplemental', 'class' => 'h3'})
@html.div(:class => 'block') do

# supplemental - maintenance [] {maintenance}
Expand Down

0 comments on commit 5938bf8

Please sign in to comment.