David Price

Minor cleanup to remove h2 when no content in section

...@@ -88,35 +88,79 @@ WHERE { ...@@ -88,35 +88,79 @@ WHERE {
88 88
89 89
90 90
91 - <hr /> 91 +
92 - <h2>General Well Test Information</h2> 92 +
93 + <ui:if ui:condition="{# ASK WHERE {
94 + ?report a ep-report:ProductionReport .
95 + ?wellTestReport ep-core:partOf ?report .
96 + ?wellTestReport a ep-report:WellTestReport .
97 + ?wellTestReport ep-report:reportOn ?wellTest .
98 + ?wellTest a ep-activity:WellTest .
99 + ?wellTest ep-core:hasPart ?injectionWellTest .
100 + ?injectionWellTest a ep-prodact:InjectionWellTest . } }">
101 + <hr />
102 + <h2>General Well Test Information</h2>
103 +
104 + </ui:if>
105 +
106 +
93 107
94 <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellTest" /> 108 <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellTest" />
95 - <hr /> 109 +
96 110
97 111
98 - <h2>Well Injection Test Information</h2> 112 + <ui:if ui:condition="{# ASK WHERE {
113 + ?report a ep-report:ProductionReport .
114 + ?wellTestReport ep-core:partOf ?report .
115 + ?wellTestReport a ep-report:WellTestReport .
116 + ?wellTestReport ep-report:reportOn ?wellTest .
117 + ?wellTest a ep-activity:WellTest .
118 + ?wellTest ep-core:hasPart ?injectionWellTest .
119 + ?injectionWellTest a ep-prodact:InjectionWellTest . } }">
120 +
121 + <h2>Well Injection Test Information</h2>
122 + <hr />
123 + </ui:if>
124 +
125 +
99 126
100 127
101 <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellInjectionTest" /> 128 <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellInjectionTest" />
102 <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellInjectionTestResults" /> 129 <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellInjectionTestResults" />
103 130
104 131
132 +
133 + <ui:if ui:condition="{# ASK WHERE {
134 + ?report a ep-report:ProductionReport .
135 + ?wellTestReport ep-core:partOf ?report .
136 + ?wellTestReport a ep-report:WellTestReport . } }">
105 <h2>Well Fluid Level Test Information</h2> 137 <h2>Well Fluid Level Test Information</h2>
106 - 138 + </ui:if>
107 139
140 +
141 +<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellFluidLevelTest" />
108 142
109 143
144 + <ui:if ui:condition="{# ASK WHERE {
145 + ?report a ep-report:ProductionReport .
146 + ?wellTestReport ep-core:partOf ?report .
147 + ?wellTestReport a ep-report:WellTestReport .
148 + ?wellTestReport ep-report:reportOn ?wellTest .
149 + ?wellTest a ep-activity:WellTest .
150 + ?wellTest ep-core:hasPart ?wellTestPart .
151 + ?wellTestPart a ep-activity:ProductionWellTest .
152 + } }">
153 +
154 + <h2>Well Production Test Information</h2>
155 + <hr />
156 + </ui:if>
110 157
111 -<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellFluidLevelTest" />
112 -
113 - <h2>Well Production Test Information</h2>
114 158
115 <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellProductionTest" /> 159 <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellProductionTest" />
116 160
117 <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellProductionTestResults" /> 161 <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellProductionTestResults" />
118 162
119 - <ui:if ui:condition="{# ASK WHERE { 163 + <ui:if ui:condition="{# ASK WHERE {
120 ?report a ep-report:ProductionReport . 164 ?report a ep-report:ProductionReport .
121 ?fluidSampleReport ep-core:partOf ?report . 165 ?fluidSampleReport ep-core:partOf ?report .
122 ?fluidSampleReport a ep-report:FluidSampleReport . } }"> 166 ?fluidSampleReport a ep-report:FluidSampleReport . } }">
...@@ -124,13 +168,8 @@ WHERE { ...@@ -124,13 +168,8 @@ WHERE {
124 </ui:if> 168 </ui:if>
125 169
126 170
127 -
128 <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:FluidSamples" /> 171 <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:FluidSamples" />
129 172
130 <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:FluidSampleAnalysisResults" /> 173 <dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:FluidSampleAnalysisResults" />
131 174
132 -
133 -
134 -
135 -
136 </ui:group> 175 </ui:group>
...\ No newline at end of file ...\ No newline at end of file
......