David Price

Minor cleanup to remove h2 when no content in section

...@@ -88,29 +88,73 @@ WHERE { ...@@ -88,29 +88,73 @@ WHERE {
88 88
89 89
90 90
91 +
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 . } }">
91 <hr /> 101 <hr />
92 <h2>General Well Test Information</h2> 102 <h2>General Well Test Information</h2>
93 103
104 + </ui:if>
105 +
106 +
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 />
96 109
97 110
111 +
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 +
98 <h2>Well Injection Test Information</h2> 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
105 - <h2>Well Fluid Level Test Information</h2>
106 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 . } }">
137 + <h2>Well Fluid Level Test Information</h2>
138 + </ui:if>
107 139
108 140
141 +<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellFluidLevelTest" />
109 142
110 143
111 -<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellFluidLevelTest" /> 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 + } }">
112 153
113 <h2>Well Production Test Information</h2> 154 <h2>Well Production Test Information</h2>
155 + <hr />
156 + </ui:if>
157 +
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
...@@ -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
......