Skip to content

Commit 5a56e3e

Browse files
jwaspinJ-Oliveroschris-macdermaidjoliveros
authored
Feature/acquisition (#382)
* Handle nil and empty * Handle nil & empty * New Generator newRangeElementDescription * close out function * fix reader to recognize rangeElement key from mdJson file (#317) * fix key retrieval for Html_RangeElementDescription writer class (#318) * fix key retrieval for Html_RangeElementDescription writer class * fix br in rangeElement * fix rangeElementDescription class for iso-3 (#321) * add contact - external identifiers * Fix Simple HTML and mdJson hash objects rangeElements -> rangeElement * Fix misplaced br tag * make changes based on feedback found in release v2.18.5 branch (#325) * make changes based on feedback found in release v2.18.5 branch * Fix evaluationMethod in mdJson * remove extra argument * Revert Changes * Reorder and Add derivedElementReport * Add Report Fields type standaloneQualityReportDetails * Change dateTime to array * Revert * Add standaloneQualityReportDetails * Add derivedElementReport * add posacc w hori and vert tags. fix key retrieval from qualityMeasure (#327) * New GitHub Test Action (#328) This merge is not intended to have the tests passing yet, just adding the test action workflow file. * Bugfix/unit tests (#329) * Update Internal Object * Fix Data Quality Order * Fix Data Quality Order * Fixing Legal Constraint Order * Fix Allocation Order * Fix Funding Order * Fix Data Quality Order * Update Data Quality Object * And standaloneQualityReportDetails to mdJson Reader * Fix Order * Fix Standalone Quality Report * Update Version for mdJson-schemas * Add Quality Result File to Coverage Result * Update Gemfile.lock * Update nokogiri * Rename standaloneQualityReport.rb Need to fix naming case. * Fix File Name * Fix Typo * Fix Internal Object resultContent --> resultContentDescription and { } not [ ] * Completed Feature: Coverage Result (#330) * Add Quality Result File to Coverage Result * add resultFile to coverageResult in mdJson reader (#331) * add resultFile to coverageResult in mdJson reader * remove pp lib * revert files * generate resourceFormat file and add to CR. fix metadata object in resultFile * fix internal metadata obj in resultFile * fix qualityResultFile class and reference * revert files * fix relative import * remove writer changes * Remove module_resourceFormat * Injection/md json writer cr (#332) * rename to qualityResultFile * add format and QualityResultFile classes to coverageResult in writer * revert files * add qualityResultFile * Fixed Names fileName was repeated in place of fileDescription and fileType. * Fix Result Content resultContent -> resultContentDescription Uses coverageDescription * Change nil? to empty? --------- Co-authored-by: Johnathan Aspinwall <[email protected]> * Injection/html writer cr (#336) * add qualityMeasure to mdJson reader * fix qualityMeasure key * add resultFile class to dataQualityReport html writer * Fix Quality Measure Identifier needs to be built not directly assigned. * Improve Quality Measure Name and description will only be populated if they exist. --------- Co-authored-by: Jonathan Oliveros <[email protected]> * Injection/simple html writer cr (#335) * add dataQualityReport and resultFile classes * fix file format comment * reference resultFile class * change details to div * change details to div in dataQualityReport * change module to simple_html. Add nil or empty to citation within identifier. * add simple_html test * Add Coverage Result New class_qualityResultFile for iso19115-3 writer. * Fix Data Quality Report Fixed the order. Fixed quality measure. * Fix Quality Measure * Fix Quality Measure * Fix Evaluation Method * New Conformance Result ISO 19115-3 Writer --------- Co-authored-by: J-Oliveros <[email protected]> Co-authored-by: Jonathan Oliveros <[email protected]> * Increment Minor Version * Update Version * Revert Changes * Revert Changes * Revert Changes * Revert Changes * Remove nil Check Including the check for nil can actually cause errors. If there is an error then the problem is somewhere else. * Remove nil Check Should not check for nil, if it is nil then there's a problem with the reader. * Revert Changes * change divs to headers (#337) * change divs to headers * fix key within qualityMeasure. change to header tags * Update mdCodes Version * Update Gemfile.lock * Fix Data Quality fgdc reader needed some refactoring. Added/fixed checks for nil/empty. * Fix name -> nameOfMeasure * Increment Patch Version * Fix FGDC Reader quantitativeResult was being set to the qualityMeasure and using the qualityMeasure object. Fixed to use the correct object and location. * Fix Data Quality (#342) * Increment Patch Version * Simple HTML Enhancements (#339) * add geographicExtent to simple_html writer (#338) * add geographicExtent to simple_html writer * Fix Data Quality Fixed checks for nil and empty. Fixed tags. Fixed structures. * Fix Data Quality * Remove bodyScript and other js * Fix Typo referenceDocument -> referenceDocuments --------- Co-authored-by: Johnathan Aspinwall <[email protected]> * add bookmark span tags to headers (#340) Co-authored-by: Johnathan Aspinwall <[email protected]> * Increment Patch Version * Increment Minor Version --------- Co-authored-by: J-Oliveros <[email protected]> * Bugfixes for Simple HTML (#343) * change divs to headers (#337) * change divs to headers * fix key within qualityMeasure. change to header tags * Simple HTML Enhancements (#339) * add geographicExtent to simple_html writer (#338) * add geographicExtent to simple_html writer * Fix Data Quality Fixed checks for nil and empty. Fixed tags. Fixed structures. * Fix Data Quality * Remove bodyScript and other js * Fix Typo referenceDocument -> referenceDocuments --------- Co-authored-by: Johnathan Aspinwall <[email protected]> * add bookmark span tags to headers (#340) Co-authored-by: Johnathan Aspinwall <[email protected]> * Increment Patch Version * Increment Minor Version --------- Co-authored-by: J-Oliveros <[email protected]> --------- Co-authored-by: J-Oliveros <[email protected]> * Increment Patch Version * Fix Data Quality * Increment Patch Version * Feature/simple html (#345) * add geographicExtent to simple_html writer (#338) * add geographicExtent to simple_html writer * Fix Data Quality Fixed checks for nil and empty. Fixed tags. Fixed structures. * Fix Data Quality * Remove bodyScript and other js * Fix Typo referenceDocument -> referenceDocuments --------- Co-authored-by: Johnathan Aspinwall <[email protected]> * add bookmark span tags to headers (#340) Co-authored-by: Johnathan Aspinwall <[email protected]> * Increment Patch Version * Increment Minor Version * Bugfixes for Simple HTML (#343) * change divs to headers (#337) * change divs to headers * fix key within qualityMeasure. change to header tags * Simple HTML Enhancements (#339) * add geographicExtent to simple_html writer (#338) * add geographicExtent to simple_html writer * Fix Data Quality Fixed checks for nil and empty. Fixed tags. Fixed structures. * Fix Data Quality * Remove bodyScript and other js * Fix Typo referenceDocument -> referenceDocuments --------- Co-authored-by: Johnathan Aspinwall <[email protected]> * add bookmark span tags to headers (#340) Co-authored-by: Johnathan Aspinwall <[email protected]> * Increment Patch Version * Increment Minor Version --------- Co-authored-by: J-Oliveros <[email protected]> --------- Co-authored-by: J-Oliveros <[email protected]> * Increment Patch Version * Fix Data Quality * Increment Patch Version * simple_html output formatting (#344) --------- Co-authored-by: J-Oliveros <[email protected]> * Update mdJson-schemas version mdJson-schemas -> 2.8.3 * Increment Patch Version * Feature/fgdc reader lineage process (#347) * add references to process * redirect citation to processSteps * revert to lineageCitation * Fix newLineage Order dataSources after processSteps * Moving Methodology to Process Steps * Restore hResourceInfo Variable * Commented Keyword - Method Required Warning * Upgrade adiwg-mdjson_schemas adiwg-mdjson_schemas -> 2.9.0 * Update Gemfile.lock * commented out mdJson reader minor version test * Refactor lineage module and process module. Updated tests. * Add comment about test being disabled. * Add comment to explain why code is disabled --------- Co-authored-by: Johnathan Aspinwall <[email protected]> * Update adiwg-mdtranslator gem dependencies * Update adiwg-mdcodes gem dependency to version 2.9.1 * Disable test_mdJson_reader_schema_version_future_minor method * Update mdtranslator version to 2.19.0-beta.6 * Update adiwg-mdcodes gem dependency to version 2.9.1 * Fix data quality report type Remove DQ_ prefix. * Update mdtranslator version to 2.19.0-beta.7 * Update adiwg-mdjson_schemas and adiwg-mdcodes gem dependencies * Update adiwg-mdjson_schemas and adiwg-mdcodes gem dependencies * Update 19115-3 test data (#334) * Update 19115-3 test data * Update 19115-3 test data * Update 19115-3 test data * Update 19115-3 test data * Update 19115-3 test data * Update 19115-3 test data * Update 19115-3 test data * upate attributeGroup * update 19115_3_citation.xml * update 19115_3_constraintCommon.xml * update 19115_3_constraintCommon.xml and 19115_3_citation.xml * update 19115_3_dataIdentification.xml * update 19115_3_leProcessStep.xml * update 19115_3_maintenance.xml * update 19115_3_mdBand.xml * Update 19115-3 test data * Update 19115-3 test data * Update 19115-3 test data * Update 19115-3 test data * Update 19115-3 test data * Update 19115-3 test data * Update 19115-3 test data * Update 19115-3 test data * Update remoteSchema URL in class_mdMetadata.rb * Add fix for 19115-3 writer in class_rangeElementDescription and class_sampleDimension * fix unit definition identifiers in test cases * fix attributeGroup test data * Refactor algorithm element to LE_Processing in 19115_3_leProcessStep.xml and 19115_3_processing.xml * Refactor algorithm element to LE_Processing in 19115_3_processing.xml * Remove underscore from id's in iso19115-3 writer tests * Update organization external identifier namespace from ORCID to ROR Remove duplicate external contact identifier in iso19115-3 writer * Update to ROR on feature xml and proper capitalization of multiPoint * Removed partyIdentifier duplicate in expected organization output * Remove duplicate partyIdentifier in expected constraintCommon xml * Fix Spacing * Fix spacing and remove duplicate partyIdentifier in expected constraintCommon xml --------- Co-authored-by: Johnathan Aspinwall <[email protected]> Co-authored-by: Jonathan Oliveros <[email protected]> * Fix version comparison bug in mdJson_reader.rb (#356) * Fix version comparison bug in mdJson_reader.rb * Fix version comparison logic * Update adiwg-mdtranslator version to 2.20.0-beta.0 * add Acquisition class. Fix internal obj * Boilerplate for acq classes. Add logic to handle acq-pass * add acq-event class * fix internal object variable reference * Fix closing out conditional * Release Version 2.20.0 (#346) * change divs to headers (#337) * change divs to headers * fix key within qualityMeasure. change to header tags * Simple HTML Enhancements (#339) * add geographicExtent to simple_html writer (#338) * add geographicExtent to simple_html writer * Fix Data Quality Fixed checks for nil and empty. Fixed tags. Fixed structures. * Fix Data Quality * Remove bodyScript and other js * Fix Typo referenceDocument -> referenceDocuments --------- Co-authored-by: Johnathan Aspinwall <[email protected]> * add bookmark span tags to headers (#340) Co-authored-by: Johnathan Aspinwall <[email protected]> * Increment Patch Version * Increment Minor Version --------- Co-authored-by: J-Oliveros <[email protected]> * Feature/simple html (#345) * add geographicExtent to simple_html writer (#338) * add geographicExtent to simple_html writer * Fix Data Quality Fixed checks for nil and empty. Fixed tags. Fixed structures. * Fix Data Quality * Remove bodyScript and other js * Fix Typo referenceDocument -> referenceDocuments --------- Co-authored-by: Johnathan Aspinwall <[email protected]> * add bookmark span tags to headers (#340) Co-authored-by: Johnathan Aspinwall <[email protected]> * Increment Patch Version * Increment Minor Version * Bugfixes for Simple HTML (#343) * change divs to headers (#337) * change divs to headers * fix key within qualityMeasure. change to header tags * Simple HTML Enhancements (#339) * add geographicExtent to simple_html writer (#338) * add geographicExtent to simple_html writer * Fix Data Quality Fixed checks for nil and empty. Fixed tags. Fixed structures. * Fix Data Quality * Remove bodyScript and other js * Fix Typo referenceDocument -> referenceDocuments --------- Co-authored-by: Johnathan Aspinwall <[email protected]> * add bookmark span tags to headers (#340) Co-authored-by: Johnathan Aspinwall <[email protected]> * Increment Patch Version * Increment Minor Version --------- Co-authored-by: J-Oliveros <[email protected]> --------- Co-authored-by: J-Oliveros <[email protected]> * Increment Patch Version * Fix Data Quality * Increment Patch Version * simple_html output formatting (#344) --------- Co-authored-by: J-Oliveros <[email protected]> * Feature/fgdc reader lineage process (#347) * add references to process * redirect citation to processSteps * revert to lineageCitation * Fix newLineage Order dataSources after processSteps * Moving Methodology to Process Steps * Restore hResourceInfo Variable * Commented Keyword - Method Required Warning * Upgrade adiwg-mdjson_schemas adiwg-mdjson_schemas -> 2.9.0 * Update Gemfile.lock * commented out mdJson reader minor version test * Refactor lineage module and process module. Updated tests. * Add comment about test being disabled. * Add comment to explain why code is disabled --------- Co-authored-by: Johnathan Aspinwall <[email protected]> * Update 19115-3 test data (#334) * Update 19115-3 test data * Update 19115-3 test data * Update 19115-3 test data * Update 19115-3 test data * Update 19115-3 test data * Update 19115-3 test data * Update 19115-3 test data * upate attributeGroup * update 19115_3_citation.xml * update 19115_3_constraintCommon.xml * update 19115_3_constraintCommon.xml and 19115_3_citation.xml * update 19115_3_dataIdentification.xml * update 19115_3_leProcessStep.xml * update 19115_3_maintenance.xml * update 19115_3_mdBand.xml * Update 19115-3 test data * Update 19115-3 test data * Update 19115-3 test data * Update 19115-3 test data * Update 19115-3 test data * Update 19115-3 test data * Update 19115-3 test data * Update 19115-3 test data * Update remoteSchema URL in class_mdMetadata.rb * Add fix for 19115-3 writer in class_rangeElementDescription and class_sampleDimension * fix unit definition identifiers in test cases * fix attributeGroup test data * Refactor algorithm element to LE_Processing in 19115_3_leProcessStep.xml and 19115_3_processing.xml * Refactor algorithm element to LE_Processing in 19115_3_processing.xml * Remove underscore from id's in iso19115-3 writer tests * Update organization external identifier namespace from ORCID to ROR Remove duplicate external contact identifier in iso19115-3 writer * Update to ROR on feature xml and proper capitalization of multiPoint * Removed partyIdentifier duplicate in expected organization output * Remove duplicate partyIdentifier in expected constraintCommon xml * Fix Spacing * Fix spacing and remove duplicate partyIdentifier in expected constraintCommon xml --------- Co-authored-by: Johnathan Aspinwall <[email protected]> Co-authored-by: Jonathan Oliveros <[email protected]> * Fix version comparison bug in mdJson_reader.rb (#356) * Fix version comparison bug in mdJson_reader.rb * Fix version comparison logic * Update adiwg-mdtranslator version to 2.20.0-beta.0 * Update adiwg-mdtranslator version to 2.19.0-beta.8 --------- Co-authored-by: J-Oliveros <[email protected]> Co-authored-by: Chris MacDermaid <[email protected]> Co-authored-by: Jonathan Oliveros <[email protected]> * Update adiwg-mdjson_schemas and adiwg-mdcodes gem dependencies * add acquisition key to metadata internal object * Add outContext * chore: Update adiwg-mdjson_schemas and adiwg-mdcodes gem dependencies to latest pre-beta versions * chore: Update adiwg-mdjson_schemas and adiwg-mdcodes gem dependencies to latest pre-beta versions * Refactor dataQuality report structure * chore: Update adiwg-mdjson_schemas and adiwg-mdcodes gem dependencies to latest pre-beta versions * Update adiwg-mdcodes gem dependency to version 2.9.3.pre.beta.3 * Update adiwg-mdjson_schemas gem dependency to version 2.9.2.pre.beta.19 * Update mdtranslator version to 2.19.0-beta.9 * Update adiwg-mdtranslator version to 2.19.0.pre.beta.9 * Fix data quality report type * Update adiwg-mdtranslator version to 2.19.0.pre.beta.10 * add acquisition to metadata hash objects * Update adiwg-mdtranslator version to 2.20.0.pre.beta.1 * fix/mdJson-reader-requirement (#359) * Update AcqRequirement class to handle acq-requirement * fix reference to hAcqRequirement * Rename to reference the Requirement class. add handlers to Requirement and RequestedDate * Fix/md json reader event (#362) * update internal object. Add handler for event * Rename and reference Event class. Rename file. * Fix/md json reader instrument (#363) * Add internal object. Handle instrumentationEventList. * Add internal object. handle instrumentationEvent * Add internal object. Add handler to for revision. * update internal object. Add handler to instrument * Add handlers for instrument, instrumentationEvent, instrumentationEventList, Revision. Rename module_instrument file. Update internal objects to fix typos * Fix evaluationMethodType in class_dataQualityReport.rb * Update adiwg-mdtranslator version to 2.20.0-beta.0 * Update adiwg-mdtranslator version to 2.20.0-beta.1 * Update adiwg-mdjson_schemas and adiwg-mdcodes gem dependencies to latest versions * Update adiwg-mdtranslator version to 2.19.0.pre.beta.11 * Add acquisition class to writer. Add reference to class in metadata. * Fix/md json reader pass (#364) * Add handler to Pass * Rename Pass file. Update references to Pass class. Add handler for Pass. * uncomment necessary code * fix/mdJson-reader-platform (#361) * Update interal object. Add logic to handle platform class * fix key name * Rename Platform class and file. Updated references to class. * Update adiwg-mdtranslator and adiwg-mdjson_schemas gem dependencies to latest versions * Fix evaluationMethodType in class_dataQualityReport.rb * Add Requirement and RequestedDate classes to mdJson writer. * Fix data quality report type * Update adiwg-mdtranslator version to 2.19.0.pre.beta.13 * fix class name for requestedDate * Add Objective class to writer * Add Platform class to mdJson writer * Add instrument class to writer. * Add instrumentationEventList, instrumentationEvent, Revision classes to mdJson writer * Fix/mdjson-reader-platform (#371) * Update interal object. Add logic to handle platform class * fix key name * Rename Platform class and file. Updated references to class. * Update to handle platform without errors. * Fix iteration of array of responsible parties. * fix iteration of arrays for instrument and instrumentationEventList * Update AcqPlan class to handle acq-plan (#358) * Update AcqPlan class to handle acq-plan * Rename class * add reference to Plan class and reference correct class name * Change to validate status and planType using mdCodes. fix array iteration for planOperations and satisfiedRequirements. * remove puts --------- Co-authored-by: Johnathan Aspinwall <[email protected]> * Add acquisition class to writer. Add reference to class in metadata. (#368) Co-authored-by: Johnathan Aspinwall <[email protected]> * Add Event class to writer. (#369) * Add acquisition class to writer. Add reference to class in metadata. * Add Event class to writer. * fix key for relatedSensor for access to internal object. --------- Co-authored-by: Johnathan Aspinwall <[email protected]> * fix/mdJson-reader-environment (#366) * Update AcqEnvironment class to handle acq-environment. Update internal object to contain all fields * Rename file and reference to environment class * Add operation class. remove acq- prefix to relative require and class in acquisition (#376) * fix/mdJson-reader-objective (#367) * Update AcqObjective class to handl acq-objective * Reference Identifier class for use * Rename class and file. Change references to new name. * add relation to codelist found in mdCodes for objectiveType. Update class to handle all fields. * fixes to objective, platform, event and requirement classes * remove puts * remove puts * fix keys to internal objects. Remove puts * fix keys in Plan class. * fix Instrument identifier class * Update adiwg-mdtranslator and adiwg-mdjson_schemas gem dependencies to latest versions * uncomment Platform class in acquisition * fix appending result of sponsor to array. fix outContext for error handling. * fix Objective class and add Pass class to writer * Add Plan class and fix requirement class in writer. * fix identifier key in requirement class for reader * fix keys for Event class writer. * uncomment Pass class from acquisition. Minor clarification fixes. * Add Environment class for use in acquisition writer. * Fix Environment class for use in Acquisition * fix environment key for acquisition class. * remove puts * Update adiwg-mdtranslator and adiwg-mdjson_schemas gem dependencies to latest versions * Update adiwg-mdtranslator and adiwg-mdjson_schemas gem dependencies to latest versions * Fix data quality report type * Fix data quality report type * Update adiwg-mdtranslator gem dependency to version 2.19.0.pre.beta.15 * chore: Update adiwg-mdtranslator gem dependency to version 2.19.0.pre.beta.15 * Update adiwg-mdtranslator gem dependency to version 2.19.0.pre.beta.16 * Update module files to include 'name' attribute * Update adiwg-mdtranslator gem dependency to version 2.19.0.pre.beta.17 * Fix data quality report summary display * Refactor data quality report type display * Update adiwg-mdtranslator gem dependency to version 2.19.0.pre.beta.18 * Refactor mdJson_onlineResource module to include 'protocol' attribute * Refactor mdJson_resourceInfo module to include 'credit' attribute * Update adiwg-mdtranslator gem dependency to version 2.19.0.pre.beta.18 * Refactor data quality report type display * Fix test cases. internal object and changes for bugfixes to mdJson read/write errors related to acquisition. * chore: Update versions mdJson-schemas to v2.9.3-beta.3 mdCodes to v2.9.4-beta.4 * chore: Increment beta version * Update mdJson-schemas gem version. Change ordering of acquisition in mdJson_hash_object and metadata test case. * Revert Data Quality Report Types * Refactor sbJson_citation.rb 1. If the user provided Other Cit Details, then use that 2. If Other Cit Details is null, then provide a basic citation of: author1, author2, ..., Citation Title * Refactor data quality report type display and add system identifier support * Refactor data quality report logic handling * fix handling of parties within requirement class. Fix datetime strings in internal hash testing object. * Refactor data quality reports * Fix acquistion to include operation. Update instrumentation event and event list to their respective citation formats. Fix operation class in test cases and mdJson writer. * Update adiwg-mdjson_schemas gem version to 2.10.0.pre.beta.1 * Fix typo in MdJsonHashWriter class * Refactor data quality reports * chore: Update adiwg-mdtranslator gem dependency to version 2.19.0.pre.beta.21 * Refactor data quality reports * chore: Update adiwg-mdtranslator gem dependency to version 2.19.0.pre.beta.22 * Refactor XML date format in test data files * Refactor data identification to handle distribution liability statements * Feature/acquisition html writer (#381) * Add acquisiton class to body. Create Acquisition class. * Add operation and plan classes to html writer. * Add objective and requirement classes to html writer. * Add event class to html writer. Fix objective class. * Add pass class to html writer. fix event class typos and requires * Add instrument and platform classes. * Add environment, instrumentationEvent, instrumentationEventList, requestedDate classes. fix platform class. * Add Revision class. fix html_requirement file name. * Fixes to requestedDate, requirement, acquisition, and plan. fix key to retrieve acquisition array. * Bugfixes to html writer for acquisitions section * fix revision datetime in revision class for mdJson reader * HTML formatting to fit standard of rest of page * Add acquisition button to sidebar within body * chore: Update adiwg-mdtranslator gem dependency to version 2.9.4.pre.beta.4 * Refactor module_acq-operation.rb file * chore: Update adiwg-mdtranslator gem dependency to version 2.19.0.pre.beta.25 * chore: Update adiwg-mdtranslator gem dependency to version 2.10.0 * chore: Update adiwg-mdtranslator gem dependency to version 2.10.0 * chore: Update adiwg-mdtranslator gem dependency to version 2.21.0.pre.beta.0 * Update adiwg-mdtranslator gem dependency to version 2.19.0 * Update mdMetadata to include MI_AcquisitionInformation class. Add several classes to support Acquisition. * Add plan, operation, requirement, requestedDate classes to iso19115-3 writer. Update acquisitions class to include plan * Fix outermost tags for several classes. Add event, operation and pass classes to iso 19115-3 writer. * Update acquisition tag in mdMetadata. Add MI_EnvironmentalRecord class to iso19115-3 writer. Fixes to operation and instrument classes. * Fixes made to conform to iso19115-3 standard * Feature/acquisition simple html writer (#385) * Add acquisiton class to body. Create Acquisition class. * Add operation and plan classes to html writer. * Add objective and requirement classes to html writer. * Add event class to html writer. Fix objective class. * Add pass class to html writer. fix event class typos and requires * Add instrument and platform classes. * Add environment, instrumentationEvent, instrumentationEventList, requestedDate classes. fix platform class. * Add Revision class. fix html_requirement file name. * Fixes to requestedDate, requirement, acquisition, and plan. fix key to retrieve acquisition array. * Bugfixes to html writer for acquisitions section * fix revision datetime in revision class for mdJson reader * HTML formatting to fit standard of rest of page * Add acquisition button to sidebar within body * Add acquisition class. Update body class to include acquisition class. * Add remaining classes used for acquisition. * fix access to acquisition within metadata * Add 'Attribute Accuracy Explanation' text in the evaluation method name field for data quality. * Refactor data quality reports to handle multiple results and different report types * Fix altmax to use maximumAltitude * Refactor Positional Accuracy Reports * fix: Unit test for maximum altitude * Refactor unit test for positional accuracy * feat: Add metadata extension section for taxonomy info. * feat: Set conditional for metadata extension taxonomy. * feat: Remove metadata extension for taxonomy information * Fix: Replaced div with h5 as needed * fix: Citation Other Details * Refactor class_timePeriod.rb for improved date handling * chore: Add note to move object out of function * chore: Refactor unit tests to match modifications to dateTime in timePeriod * chore: Update mdtranslator version to 2.19.0-beta.31 * chore: Update adiwg-mdtranslator version to 2.19.0.pre.beta.31 * chore: Update adiwg-mdtranslator dependencies to version 2.10.1 * Feature: Update mdtranslator to version 2.21.0-beta.1 and add dictionaryId support * Remove redundant HTML details section for data quality in mdtranslator * Refactor: Remove unused remoteSchema assignment and taxonomy metadata extension * Fix: Remove duplicate dataQuality mapping in mdJson_metadata * Fix: Remove redundant span elements in HTML body sections * Fix: Remove redundant line break in HTML body section * Fix: Remove redundant line break in HTML body section * Fix: Remove redundant dataQuality initialization in mdJson_metadata test * Fix: Initialize dictionaryId to nil in newDataDictionary method --------- Co-authored-by: Jonathan Oliveros <[email protected]> Co-authored-by: J-Oliveros <[email protected]> Co-authored-by: Chris MacDermaid <[email protected]> Co-authored-by: joliveros <[email protected]>
1 parent 40246b0 commit 5a56e3e

File tree

79 files changed

+6395
-10
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+6395
-10
lines changed

lib/adiwg/mdtranslator/internal/internal_metadata_obj.rb

+46-7
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ def newMetadata
143143
associatedResources: [],
144144
additionalDocuments: [],
145145
funding: [],
146-
dataQuality: []
146+
dataQuality: [],
147+
acquisitions: []
147148
}
148149
end
149150

@@ -158,6 +159,7 @@ def newSchema
158159
# acquisition ----------------------------
159160
def newAcquisition
160161
{
162+
scope: {},
161163
plans: [],
162164
requirements: [],
163165
objectives: [],
@@ -175,19 +177,23 @@ def newEnvironment
175177
averageAirTemperature: nil,
176178
maxRelativeHumidity: nil,
177179
maxAltitude: nil,
178-
meteorologicalConditions: nil
180+
meteorologicalConditions: nil,
181+
solarAzimuth: nil,
182+
solarElevation: nil
183+
179184
}
180185
end
181186

182187
def newEvent
183188
{
184189
eventId: nil,
190+
identifier: {},
185191
trigger: nil,
186192
context: nil,
187193
sequence: nil,
188194
dateTime: nil,
189195
expectedObjectives: [],
190-
relatedPass: nil,
196+
relatedPass: {},
191197
relatedSensors: []
192198
}
193199
end
@@ -199,7 +205,29 @@ def newInstrument
199205
identifier: {},
200206
instrumentType: nil,
201207
description: nil,
202-
mountedOn: nil
208+
mountedOn: {},
209+
histories: [],
210+
hostId: {}
211+
}
212+
end
213+
214+
def newInstrumentationEvent
215+
{
216+
citations: [],
217+
description: nil,
218+
extent: {},
219+
eventType: nil,
220+
revisionHistories: [],
221+
}
222+
end
223+
224+
def newInstrumentationEventList
225+
{
226+
citation: {},
227+
description: nil,
228+
locale: {},
229+
constraints: [],
230+
instrumentationEvents: []
203231
}
204232
end
205233

@@ -240,14 +268,15 @@ def newPlan
240268
def newOperation
241269
{
242270
operationId: nil,
271+
description: nil,
243272
citation: {},
244273
identifier: {},
245274
status: nil,
246275
operationType: nil,
247276
objectives: [],
248-
parentOperations: nil,
277+
parentOperation: {},
249278
childOperations: [],
250-
plan: nil,
279+
plan: {},
251280
platforms: [],
252281
significantEvents: []
253282
}
@@ -267,14 +296,23 @@ def newRequirement
267296
}
268297
end
269298

299+
def newRevision
300+
{
301+
description: nil,
302+
responsibleParty: {},
303+
dateInfo: []
304+
}
305+
end
306+
270307
def newPlatform
271308
{
272309
platformId: nil,
273310
citation: {},
274311
identifier: {},
275312
description: nil,
276313
sponsors: [],
277-
instruments: []
314+
instruments: [],
315+
history: []
278316
}
279317
end
280318

@@ -541,6 +579,7 @@ def newImageDescription
541579
# data dictionary ------------------------
542580
def newDataDictionary
543581
{
582+
dictionaryId: nil,
544583
description: nil,
545584
subjects: [],
546585
citation: {},
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
require_relative 'module_scope'
2+
require_relative 'module_objective'
3+
require_relative 'module_requirement'
4+
require_relative 'module_platform'
5+
require_relative 'module_instrument'
6+
require_relative 'module_operation'
7+
require_relative 'module_pass'
8+
require_relative 'module_event'
9+
require_relative 'module_environment'
10+
require_relative 'module_plan'
11+
12+
module ADIWG
13+
module Mdtranslator
14+
module Readers
15+
module MdJson
16+
17+
module Acquisition
18+
19+
def self.unpack(hAcquisition, responseObj, inContext = nil)
20+
21+
@MessagePath = ADIWG::Mdtranslator::Readers::MdJson::MdJson
22+
23+
outContext = 'acquisition'
24+
outContext = inContext + ' > ' + outContext unless inContext.nil?
25+
26+
# instance classes needed in script
27+
intMetadataClass = InternalMetadata.new
28+
intAcquisition = intMetadataClass.newAcquisition
29+
30+
if hAcquisition.has_key?('scope')
31+
unless hAcquisition['scope'].empty?
32+
hReturn = Scope.unpack(hAcquisition['scope'], responseObj, outContext)
33+
unless hReturn.nil?
34+
intAcquisition[:scope] = hReturn
35+
end
36+
end
37+
end
38+
39+
if hAcquisition.has_key?('plan')
40+
aItems = hAcquisition['plan']
41+
aItems.each do |item|
42+
hReturn = Plan.unpack(item, responseObj, outContext)
43+
unless hReturn.nil?
44+
intAcquisition[:plans] << hReturn
45+
end
46+
end
47+
end
48+
49+
if hAcquisition.has_key?('requirement')
50+
aItems = hAcquisition['requirement']
51+
aItems.each do |item|
52+
hReturn = Requirement.unpack(item, responseObj, outContext)
53+
unless hReturn.nil?
54+
intAcquisition[:requirements] << hReturn
55+
end
56+
end
57+
end
58+
59+
if hAcquisition.has_key?('objective')
60+
aItems = hAcquisition['objective']
61+
aItems.each do |item|
62+
hReturn = Objective.unpack(item, responseObj, outContext)
63+
unless hReturn.nil?
64+
intAcquisition[:objectives] << hReturn
65+
end
66+
end
67+
end
68+
69+
if hAcquisition.has_key?('platform')
70+
aItems = hAcquisition['platform']
71+
aItems.each do |item|
72+
hReturn = Platform.unpack(item, responseObj, outContext)
73+
unless hReturn.nil?
74+
intAcquisition[:platforms] << hReturn
75+
end
76+
end
77+
end
78+
79+
if hAcquisition.has_key?('instrument')
80+
aItems = hAcquisition['instrument']
81+
aItems.each do |item|
82+
hReturn = Instrument.unpack(item, responseObj, outContext)
83+
unless hReturn.nil?
84+
intAcquisition[:instruments] << hReturn
85+
end
86+
end
87+
end
88+
89+
if hAcquisition.has_key?('operation')
90+
aItems = hAcquisition['operation']
91+
aItems.each do |item|
92+
hReturn = Operation.unpack(item, responseObj, outContext)
93+
unless hReturn.nil?
94+
intAcquisition[:operations] << hReturn
95+
end
96+
end
97+
end
98+
99+
if hAcquisition.has_key?('event')
100+
aItems = hAcquisition['event']
101+
aItems.each do |item|
102+
hReturn = Event.unpack(item, responseObj, outContext)
103+
unless hReturn.nil?
104+
intAcquisition[:events] << hReturn
105+
end
106+
end
107+
end
108+
109+
if hAcquisition.has_key?('pass')
110+
aItems = hAcquisition['pass']
111+
aItems.each do |item|
112+
hReturn = Pass.unpack(item, responseObj, outContext)
113+
unless hReturn.nil?
114+
intAcquisition[:passes] << hReturn
115+
end
116+
end
117+
end
118+
119+
if hAcquisition.has_key?('environment')
120+
intAcquisition[:environment] = Environment.unpack(hAcquisition['environment'], responseObj, outContext)
121+
end
122+
123+
return intAcquisition
124+
125+
end
126+
127+
end
128+
129+
end
130+
end
131+
end
132+
end
133+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
module ADIWG
2+
module Mdtranslator
3+
module Readers
4+
module MdJson
5+
6+
module Environment
7+
def self.unpack(hEnvironment, responseObj, inContext = nil)
8+
9+
intMetadataClass = InternalMetadata.new
10+
intEnvironment = intMetadataClass.newEnvironment
11+
12+
outContext = 'environment'
13+
outContext = inContext + ' > ' + outContext unless inContext.nil?
14+
15+
if hEnvironment.has_key?('averageAirTemperature')
16+
intEnvironment[:averageAirTemperature] = hEnvironment['averageAirTemperature']
17+
end
18+
19+
if hEnvironment.has_key?('maxRelativeHumidity')
20+
intEnvironment[:maxRelativeHumidity] = hEnvironment['maxRelativeHumidity']
21+
end
22+
23+
if hEnvironment.has_key?('maxAltitude')
24+
intEnvironment[:maxAltitude] = hEnvironment['maxAltitude']
25+
end
26+
27+
if hEnvironment.has_key?('meteorologicalConditions')
28+
intEnvironment[:meteorologicalConditions] = hEnvironment['meteorologicalConditions']
29+
end
30+
31+
if hEnvironment.has_key?('solarAzimuth')
32+
intEnvironment[:solarAzimuth] = hEnvironment['solarAzimuth']
33+
end
34+
35+
if hEnvironment.has_key?('solarElevation')
36+
intEnvironment[:solarElevation] = hEnvironment['solarElevation']
37+
end
38+
39+
intEnvironment
40+
41+
end
42+
end
43+
44+
end
45+
end
46+
end
47+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
require_relative 'module_identifier'
2+
require_relative 'module_dateTime'
3+
require_relative 'module_objective'
4+
require_relative 'module_pass'
5+
require_relative 'module_instrument'
6+
7+
module ADIWG
8+
module Mdtranslator
9+
module Readers
10+
module MdJson
11+
12+
module Event
13+
def self.unpack(hEvent, responseObj, inContext = nil)
14+
@MessagePath = ADIWG::Mdtranslator::Readers::MdJson::MdJson
15+
16+
intMetadataClass = InternalMetadata.new
17+
intEvent = intMetadataClass.newEvent
18+
19+
outContext = 'Event'
20+
outContext = inContext + ' > ' + outContext unless inContext.nil?
21+
22+
if hEvent.has_key?('eventId')
23+
intEvent[:eventId] = hEvent['eventId']
24+
else
25+
@MessagePath.issueWarning(40, responseObj, outContext)
26+
end
27+
28+
if hEvent.has_key?('identifier')
29+
intEvent[:identifier] = Identifier.unpack(hEvent['identifier'], responseObj, outContext)
30+
else
31+
@MessagePath.issueWarning(40, responseObj, outContext)
32+
end
33+
34+
if hEvent.has_key?('trigger')
35+
intEvent[:trigger] = hEvent['trigger']
36+
else
37+
@MessagePath.issueWarning(40, responseObj, outContext)
38+
end
39+
40+
if hEvent.has_key?('context')
41+
intEvent[:context] = hEvent['context']
42+
else
43+
@MessagePath.issueWarning(40, responseObj, outContext)
44+
end
45+
46+
if hEvent.has_key?('sequence')
47+
intEvent[:sequence] = hEvent['sequence']
48+
else
49+
@MessagePath.issueWarning(40, responseObj, outContext,)
50+
end
51+
52+
if hEvent.has_key?('time')
53+
intEvent[:time] = DateTime.unpack(hEvent['time'], responseObj, outContext)
54+
else
55+
@MessagePath.issueWarning(40, responseObj, outContext)
56+
end
57+
58+
if hEvent.has_key?('expectedObjective')
59+
hEvent['expectedObjective'].each do |item|
60+
hReturn = Objective.unpack(item, responseObj, outContext)
61+
unless hReturn.nil?
62+
intEvent[:expectedObjectives] << hReturn
63+
end
64+
end
65+
end
66+
67+
if hEvent.has_key?('relatedPass')
68+
intEvent[:relatedPass] = Pass.unpack(hEvent['relatedPass'], responseObj, outContext)
69+
end
70+
71+
if hEvent.has_key?('relatedSensor')
72+
hEvent['relatedSensor'].each do |item|
73+
hReturn = Instrument.unpack(item, responseObj, outContext)
74+
unless hReturn.nil?
75+
intEvent[:relatedSensors] << hReturn
76+
end
77+
end
78+
end
79+
80+
intEvent
81+
82+
end
83+
end
84+
85+
end
86+
end
87+
end
88+
end

0 commit comments

Comments
 (0)