Skip to content

Commit

Permalink
Refactor: Remove unused remoteSchema assignment and taxonomy metadata…
Browse files Browse the repository at this point in the history
… extension
  • Loading branch information
jwaspin committed Feb 11, 2025
1 parent a4b2607 commit 779ad4f
Showing 1 changed file with 0 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ def writeXML(intObj)
# set to 'remoteSchema' before publishing
localSchema = 'C:\Users\StanSmith\Projects\ISO\19115\-3\mdt\1.0\mdt.xsd'
remoteSchema = 'https://schemas.isotc211.org/19115/-3/mdt/2.0/mdt.xsd'
remoteSchema = 'https://schemas.isotc211.org/19115/-3/mdt/2.0/mdt.xsd'

# MD_Metadata
@xml.tag!('mdb:MD_Metadata',
Expand Down Expand Up @@ -322,31 +321,6 @@ def writeXML(intObj)
end
end

taxonomyArray = hResInfo[:taxonomy]
unless taxonomyArray.empty?
# metadata information - metadata extension info
# add biological profile to all metadata records
intBio = intMetadataClass.newMetadataExtension
intBio[:name] = 'Taxonomy System'
intBio[:shortName] = 'TaxonSys'
intBio[:definition] = 'Documentation of taxonomic sources, procedures, and treatments'
intBio[:obligation] = 'optional'
intBio[:dataType] = 'class'
intBio[:maxOccurrence] = '1'
intBio[:parentEntities] << 'MD_Identification'
intBio[:rule] = 'New Metadata section as a class to MD_Identification'
intBio[:rationales] << 'The set of data elements contained within this class element ' +
'represents an attempt to provide better documentation of ' +
'taxonomic sources, procedures, and treatments.'
intBio[:sourceOrganization] = 'National Biological Information Infrastructure'
intBio[:sourceURI] = 'https://www2.usgs.gov/core_science_systems/Access/p1111-1.html'
intBio[:sourceRole] = 'author'

@xml.tag!('gmd:metadataExtensionInfo') do
extensionClass.writeXML(intBio)
end
end

# ###################### Begin Data Identification #####################

# metadata information - data identification info - required
Expand Down

0 comments on commit 779ad4f

Please sign in to comment.