David Price

Minor cleanup to remove h2 when no content in section

......@@ -88,35 +88,79 @@ WHERE {
<hr />
<h2>General Well Test Information</h2>
<ui:if ui:condition="{# ASK WHERE {
?report a ep-report:ProductionReport .
?wellTestReport ep-core:partOf ?report .
?wellTestReport a ep-report:WellTestReport .
?wellTestReport ep-report:reportOn ?wellTest .
?wellTest a ep-activity:WellTest .
?wellTest ep-core:hasPart ?injectionWellTest .
?injectionWellTest a ep-prodact:InjectionWellTest . } }">
<hr />
<h2>General Well Test Information</h2>
</ui:if>
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellTest" />
<hr />
<h2>Well Injection Test Information</h2>
<ui:if ui:condition="{# ASK WHERE {
?report a ep-report:ProductionReport .
?wellTestReport ep-core:partOf ?report .
?wellTestReport a ep-report:WellTestReport .
?wellTestReport ep-report:reportOn ?wellTest .
?wellTest a ep-activity:WellTest .
?wellTest ep-core:hasPart ?injectionWellTest .
?injectionWellTest a ep-prodact:InjectionWellTest . } }">
<h2>Well Injection Test Information</h2>
<hr />
</ui:if>
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellInjectionTest" />
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellInjectionTestResults" />
<ui:if ui:condition="{# ASK WHERE {
?report a ep-report:ProductionReport .
?wellTestReport ep-core:partOf ?report .
?wellTestReport a ep-report:WellTestReport . } }">
<h2>Well Fluid Level Test Information</h2>
</ui:if>
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellFluidLevelTest" />
<ui:if ui:condition="{# ASK WHERE {
?report a ep-report:ProductionReport .
?wellTestReport ep-core:partOf ?report .
?wellTestReport a ep-report:WellTestReport .
?wellTestReport ep-report:reportOn ?wellTest .
?wellTest a ep-activity:WellTest .
?wellTest ep-core:hasPart ?wellTestPart .
?wellTestPart a ep-activity:ProductionWellTest .
} }">
<h2>Well Production Test Information</h2>
<hr />
</ui:if>
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellFluidLevelTest" />
<h2>Well Production Test Information</h2>
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellProductionTest" />
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellProductionTestResults" />
<ui:if ui:condition="{# ASK WHERE {
<ui:if ui:condition="{# ASK WHERE {
?report a ep-report:ProductionReport .
?fluidSampleReport ep-core:partOf ?report .
?fluidSampleReport a ep-report:FluidSampleReport . } }">
......@@ -124,13 +168,8 @@ WHERE {
</ui:if>
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:FluidSamples" />
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:FluidSampleAnalysisResults" />
</ui:group>
\ No newline at end of file
......