Skip to content

Commit

Permalink
update translations
Browse files Browse the repository at this point in the history
  • Loading branch information
jmaeng72 committed Oct 29, 2024
1 parent be47588 commit 5209bc5
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 7 deletions.
2 changes: 2 additions & 0 deletions umm-lib/resources/schema/dif10/UmmCommon_1.2.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,8 @@ technical contact
<xs:enumeration value="Parent Dataset"/>
<xs:enumeration value="Related Dataset"/>
<xs:enumeration value="Other"/>
<xs:enumeration value="IsPreviousVersionOf"/>
<xs:enumeration value="IsNewVersionOf"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="AssociatedDOITypeOtherEnum">
Expand Down
2 changes: 2 additions & 0 deletions umm-lib/resources/schema/echo10/MetadataCommon.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,8 @@
<xs:enumeration value="Parent Dataset"/>
<xs:enumeration value="Related Dataset"/>
<xs:enumeration value="Other"/>
<xs:enumeration value="IsPreviousVersionOf"/>
<xs:enumeration value="IsNewVersionOf"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
Expand Down
2 changes: 0 additions & 2 deletions umm-spec-lib/src/cmr/umm_spec/umm_to_xml_mappings/dif10.clj
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@
[cmr.umm-spec.umm-to-xml-mappings.dif10.spatial :as spatial]
[cmr.umm-spec.util :as u]))

;; TODO?
(def coll-progress-mapping
"Mapping from known collection progress values to values supported for DIF10 Dataset_Progress."
{"COMPLETE" "COMPLETE"
"ACTIVE" "IN WORK"
"PLANNED" "PLANNED"
"DEPRECATED" "COMPLETE"
"NOT PROVIDED" "NOT PROVIDED"
"PREPRINT" "PREPRINT"
"INREVIEW" "INREVIEW"
"SUPERSEDED" "SUPERSEDED"
Expand Down
1 change: 0 additions & 1 deletion umm-spec-lib/src/cmr/umm_spec/xml_to_umm_mappings/dif9.clj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
[cmr.umm-spec.versioning :as umm-spec-versioning]
[cmr.umm.dif.date-util :refer [parse-dif-end-date]]))

;; TODO
(def coll-progress-mapping
"Mapping from values supported for DIF9 Data_Set_Progress to UMM CollectionProgress."
{"COMPLETE" "COMPLETE"
Expand Down
5 changes: 4 additions & 1 deletion umm-spec-lib/src/cmr/umm_spec/xml_to_umm_mappings/echo10.clj
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
"ACTIVE" "ACTIVE"
"PLANNED" "PLANNED"
"DEPRECATED" "DEPRECATED"
"NOT APPLICABLE" "NOT APPLICABLE"})
"NOT APPLICABLE" "NOT APPLICABLE"
"PREPRINT" "PREPRINT"
"INREVIEW" "INREVIEW"
"SUPERSEDED" "SUPERSEDED"})

(defn fields-from-temporal-resolution
"Get the TemporalResolution and change the Value to number."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
[cmr.umm-spec.xml-to-umm-mappings.iso19115-2.tiling-system :as tiling]
[cmr.umm-spec.versioning :as umm-spec-versioning]))

;; TODO
;; TODO ISO doesn't have any mappings for inreview, preprint, and superseded in the docs, is that correct?
(def coll-progress-mapping
"Mapping from values supported for ISO19115 ProgressCode to UMM CollectionProgress."
{"COMPLETED" "COMPLETE"
Expand All @@ -41,7 +41,10 @@
"ONGOING" "ACTIVE"
"PLANNED" "PLANNED"
"UNDERDEVELOPMENT" "PLANNED"
"NOT APPLICABLE" "NOT APPLICABLE"})
"INREVIEW" "INREVIEW"
"SUPERSEDED" "SUPERSEDED"
"PREPRINT" "PREPRINT"
"NOT APPLICABLE" "NOT PROVIDED"})

(def md-data-id-base-xpath
"/gmi:MI_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@
"ONGOING" "ACTIVE"
"PLANNED" "PLANNED"
"UNDERDEVELOPMENT" "PLANNED"
"NOT APPLICABLE" "NOT APPLICABLE"})
"INREVIEW" "INREVIEW"
"SUPERSEDED" "SUPERSEDED"
"PREPRINT" "PREPRINT"
"NOT APPLICABLE" "NOT PROVIDED"})

(def md-identification-base-xpath
(str "/gmd:DS_Series/gmd:seriesMetadata/gmi:MI_Metadata"
Expand Down

0 comments on commit 5209bc5

Please sign in to comment.