Skip to content

Commit

Permalink
Merge pull request #142 from nens/StevenHosper/issue141
Browse files Browse the repository at this point in the history
[BROSTAR]: groundLevelPosition should not be required  (templates fixes)
  • Loading branch information
StevenHosper authored Nov 7, 2024
2 parents 48f3e53 + ee39735 commit e3be0d1
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## 0.58 (unreleased)


- Nothing changed yet.
- Improve templates


## 0.57 (2024-11-07)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<ns:initialFunction codeSpace="urn:bro:gmw:InitialFunction">{{ sourcedocs_data.initialFunction }}</ns:initialFunction>
<ns:numberOfMonitoringTubes>{{ sourcedocs_data.numberOfMonitoringTubes }}</ns:numberOfMonitoringTubes>
<ns:groundLevelStable>{{ sourcedocs_data.groundLevelStable }}</ns:groundLevelStable>
{% if sourcedocs_data.wellStability %}
{% if sourcedocs_data.groundLevelStable == "nee" %}
<ns:wellStability codeSpace="urn:bro:gmw:WellStability">{{ sourcedocs_data.wellStability }}</ns:wellStability>
{% endif %}
<ns:owner>{{ sourcedocs_data.owner }}</ns:owner>
Expand Down
4 changes: 3 additions & 1 deletion api/bro_upload/templates/registration_GMW_GroundLevel.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@
<ns:eventDate>
<ns1:date>{{ sourcedocs_data.eventDate }}</ns1:date>
</ns:eventDate>
<ns:wellStability codeSpace="urn:bro:gmw:WellStability">{{ sourcedocs_data.wellStability }}</ns:wellStability>
<ns:groundLevelStable>{{ sourcedocs_data.groundLevelStable }}</ns:groundLevelStable>
{% if sourcedocs_data.groundLevelStable == "nee" %}
<ns:wellStability codeSpace="urn:bro:gmw:WellStability">{{ sourcedocs_data.wellStability }}</ns:wellStability>
{% endif %}
<ns:groundLevelPosition uom="m">{{ sourcedocs_data.groundLevelPosition }}</ns:groundLevelPosition>
<ns:groundLevelPositioningMethod codeSpace="urn:bro:gmw:GroundLevelPositioningMethod">{{ sourcedocs_data.groundLevelPositioningMethod }}</ns:groundLevelPositioningMethod>
</ns:GMW_GroundLevel>
Expand Down
3 changes: 3 additions & 0 deletions api/bro_upload/templates/registration_GMW_Lengthening.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
<ns:monitoringTube>
<ns:tubeNumber>{{ monitoringtube.tubeNumber }}</ns:tubeNumber>
<ns:variableDiameter>{{ monitoringtube.variableDiameter }}</ns:variableDiameter>
{% if monitoringtube.tubeTopDiameter %}
<ns:tubeTopDiameter uom="mm">{{ monitoringtube.tubeTopDiameter }}</ns:tubeTopDiameter>
{% endif %}
<ns:tubeTopPosition uom="m">{{ monitoringtube.tubeTopPosition }}</ns:tubeTopPosition>
<ns:tubeTopPositioningMethod codeSpace="urn:bro:gmw:TubeTopPositioningMethod">{{ monitoringtube.tubeTopPositioningMethod }}</ns:tubeTopPositioningMethod>
<ns:tubeMaterial codeSpace="urn:bro:gmw:TubeMaterial">{{ monitoringtube.tubeMaterial }}</ns:tubeMaterial>
Expand Down
2 changes: 1 addition & 1 deletion api/bro_upload/templates/replace_GMW_Construction.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<ns:initialFunction codeSpace="urn:bro:gmw:InitialFunction">{{ sourcedocs_data.initialFunction }}</ns:initialFunction>
<ns:numberOfMonitoringTubes>{{ sourcedocs_data.numberOfMonitoringTubes }}</ns:numberOfMonitoringTubes>
<ns:groundLevelStable>{{ sourcedocs_data.groundLevelStable }}</ns:groundLevelStable>
{% if sourcedocs_data.wellStability %}
{% if sourcedocs_data.groundLevelStable == "nee" %}
<ns:wellStability codeSpace="urn:bro:gmw:WellStability">{{ sourcedocs_data.wellStability }}</ns:wellStability>
{% endif %}
<ns:owner>{{ sourcedocs_data.owner }}</ns:owner>
Expand Down
2 changes: 1 addition & 1 deletion api/bro_upload/templates/replace_GMW_GroundLevel.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<ns1:date>{{ sourcedocs_data.eventDate }}</ns1:date>
</ns:eventDate>
<ns:groundLevelStable>{{ sourcedocs_data.groundLevelStable }}</ns:groundLevelStable>
{% if sourcedocs_data.wellStability %}
{% if sourcedocs_data.groundLevelStable == "nee" %}
<ns:wellStability codeSpace="urn:bro:gmw:WellStability">{{ sourcedocs_data.wellStability }}</ns:wellStability>
{% endif %}
<ns:groundLevelPosition uom="m">{{ sourcedocs_data.groundLevelPosition }}</ns:groundLevelPosition>
Expand Down
3 changes: 3 additions & 0 deletions api/bro_upload/templates/replace_GMW_Lengthening.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
<ns:monitoringTube>
<ns:tubeNumber>{{ monitoringtube.tubeNumber }}</ns:tubeNumber>
<ns:variableDiameter>{{ monitoringtube.variableDiameter }}</ns:variableDiameter>
{% if monitoringtube.tubeTopDiameter %}
<ns:tubeTopDiameter uom="mm">{{ monitoringtube.tubeTopDiameter }}</ns:tubeTopDiameter>
{% endif %}
<ns:tubeTopPosition uom="m">{{ monitoringtube.tubeTopPosition }}</ns:tubeTopPosition>
<ns:tubeTopPositioningMethod codeSpace="urn:bro:gmw:TubeTopPositioningMethod">{{ monitoringtube.tubeTopPositioningMethod }}</ns:tubeTopPositioningMethod>
<ns:tubeMaterial codeSpace="urn:bro:gmw:TubeMaterial">{{ monitoringtube.tubeMaterial }}</ns:tubeMaterial>
Expand Down
1 change: 1 addition & 0 deletions api/tests/xml_strings/GMW_Lenghtening_XML.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<ns:monitoringTube>
<ns:tubeNumber>2</ns:tubeNumber>
<ns:variableDiameter>nee</ns:variableDiameter>
<ns:tubeTopPosition uom="m">1.700</ns:tubeTopPosition>
<ns:tubeTopPositioningMethod codeSpace="urn:bro:gmw:TubeTopPositioningMethod">onbekend</ns:tubeTopPositioningMethod>
<ns:tubeMaterial codeSpace="urn:bro:gmw:TubeMaterial">pvc</ns:tubeMaterial>
Expand Down

0 comments on commit e3be0d1

Please sign in to comment.