Skip to content

Commit

Permalink
[BROSTAR]: groundLevelPosition should not be required (templates fixes)
Browse files Browse the repository at this point in the history
Fixes #141
  • Loading branch information
StevenHosper committed Nov 7, 2024
1 parent 48f3e53 commit 953bef3
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 4 deletions.
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
5 changes: 5 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,11 @@
<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>
{% else %}
<ns:tubeTopDiameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" uom="mm" xsi:nil="true"/>
{% 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
5 changes: 5 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,11 @@
<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>
{% else %}
<ns:tubeTopDiameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" uom="mm" xsi:nil="true"/>
{% 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

0 comments on commit 953bef3

Please sign in to comment.