Skip to content

Commit

Permalink
Merge branch 'main' into json-import-with-existing-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
Lehats committed Dec 19, 2024
2 parents 5cc6361 + c60f50e commit 65fb4a4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Changed
- Removed attachments from csv import.
- Updated recommended csv headers for borehole import to camel case e.g. `OriginalName` (snake case e.g. `original_name` is still supported for all properties except for custom identifiers).
- Changed order of `Top Bedrock (fresh)` and `Top Bedrock (weathered)` fields in borehole form.

### Fixed

Expand Down
8 changes: 6 additions & 2 deletions src/client/docs/import.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ Die zu importierenden Daten müssen gemäss obigen Anforderungen im CSV-Format v
| RestrictionId | ID (Codeliste) | Nein | Beschränkung |
| RestrictionUntil | Datum | Nein | Ablaufdatum der Beschränkung |
| NationalInterest | True/False | Nein | Nationales Interesse |
| LocationX | Dezimalzahl | Ja | Koordinate Ost LV95 |
| LocationY | Dezimalzahl | Ja | Koordinate Nord LV95 |
| LocationX | Dezimalzahl | Ja | Koordinate Ost in LV95 oder LV03 |
| LocationY | Dezimalzahl | Ja | Koordinate Nord in LV95 oder LV03 |
| LocationPrecisionId | ID (Codeliste) | Nein | +/- Koordinaten [m] |
| ElevationZ | Dezimalzahl | Nein | Terrainhöhe [m ü.M.] |
| ElevationPrecisionId | ID (Codeliste) | Nein | +/- Terrainhöhe [m] |
Expand All @@ -78,6 +78,10 @@ Die zu importierenden Daten müssen gemäss obigen Anforderungen im CSV-Format v
| ChronostratigraphyTopBedrockId| ID (Codeliste) | Nein | Chronostratigraphie Top Fels |
| LithostratigraphyTopBedrockId | ID (Codeliste) | Nein | Lithostratigraphie Top Fels |

### Koordinaten

Koordinaten können in LV95 oder LV03 importiert werden, das räumliche Bezugssystem wird aus den Koordinaten erkannt und abgespeichert.

## Validierung

### CSV-Import: Fehlende Werte
Expand Down
20 changes: 10 additions & 10 deletions src/client/src/pages/detail/form/borehole/boreholeForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,29 +140,29 @@ export const BoreholeForm = forwardRef(({ borehole, editingEnabled, onSubmit }:
</FormContainer>
<FormContainer direction="row">
<FormInput
fieldName={"topBedrockFreshMd"}
label={"top_bedrock_fresh_md"}
value={borehole?.topBedrockFreshMd || ""}
fieldName={"topBedrockWeatheredMd"}
label={"top_bedrock_weathered_md"}
value={borehole?.topBedrockWeatheredMd || ""}
withThousandSeparator={true}
readonly={!editingEnabled}
/>
<FormInputDisplayOnly
label={"top_bedrock_fresh_tvd"}
value={topBedrockFreshTVD}
label={"top_bedrock_weathered_tvd"}
value={topBedrockWeatheredTVD}
withThousandSeparator={true}
/>
</FormContainer>
<FormContainer direction="row">
<FormInput
fieldName={"topBedrockWeatheredMd"}
label={"top_bedrock_weathered_md"}
value={borehole?.topBedrockWeatheredMd || ""}
fieldName={"topBedrockFreshMd"}
label={"top_bedrock_fresh_md"}
value={borehole?.topBedrockFreshMd || ""}
withThousandSeparator={true}
readonly={!editingEnabled}
/>
<FormInputDisplayOnly
label={"top_bedrock_weathered_tvd"}
value={topBedrockWeatheredTVD}
label={"top_bedrock_fresh_tvd"}
value={topBedrockFreshTVD}
withThousandSeparator={true}
/>
</FormContainer>
Expand Down

0 comments on commit 65fb4a4

Please sign in to comment.