|
195 | 195 | </g:set>
|
196 | 196 | <g:set var="recordedByField" value="${recordedByField.trim()}"/>
|
197 | 197 | ${fieldsMap.put(recordedByField, true)}
|
198 |
| - <g:set var="rawRecordedBy" value="${record.raw.occurrence[recordedByField]}"/> |
199 |
| - <g:set var="proRecordedBy" value="${record.processed.occurrence[recordedByField]}"/> |
200 |
| - <g:if test="${record.processed.occurrence[recordedByField] && record.raw.occurrence[recordedByField] && record.processed.occurrence[recordedByField] == record.raw.occurrence[recordedByField]}"> |
201 |
| - <g:each status="i" in="${proRecordedBy}" var="proRB"> |
202 |
| - ${i + 1}. ${proRB} |
| 198 | + <g:if test="${record.processed.occurrence[recordedByField]}"> |
| 199 | + <g:each status="i" in="${record.processed.occurrence[recordedByField]}" var="proRB"> |
| 200 | + <g:if test="${record.processed.occurrence[recordedByField].size() > 1}"> |
| 201 | + ${i + 1}. |
| 202 | + </g:if> |
| 203 | + ${proRB} |
203 | 204 | </g:each>
|
| 205 | + <br/><span class="originalValue"><g:message code="recordcore.span05" default="Supplied as"/> "${record.raw.occurrence[recordedByField]}"</span> |
204 | 206 | </g:if>
|
205 |
| - <g:elseif test="${record.processed.occurrence[recordedByField] && record.raw.occurrence[recordedByField]}"> |
206 |
| - <g:each status="i" in="${proRecordedBy}" var="proRB"> |
207 |
| - ${i + 1}. ${proRB} |
208 |
| - </g:each> |
209 |
| - <g:if test="${proRecordedBy != rawRecordedBy}"> |
210 |
| - <br/><span class="originalValue"><g:message code="recordcore.span05" default="Supplied as"/> "${rawRecordedBy}"</span> |
211 |
| - </g:if> |
212 |
| - </g:elseif> |
213 |
| - <g:elseif test="${record.processed.occurrence[recordedByField]}"> |
214 |
| - <g:each status="i" in="${proRecordedBy}" var="proRB"> |
215 |
| - ${i + 1}. ${proRB} |
216 |
| - </g:each> |
217 |
| - </g:elseif> |
218 | 207 | <g:elseif test="${record.raw.occurrence[recordedByField]}">
|
219 |
| - ${rawRecordedBy} |
| 208 | + ${record.raw.occurrence[recordedByField]} |
220 | 209 | </g:elseif>
|
221 | 210 | </alatag:occurrenceTableRow>
|
222 | 211 | <!-- ALA user id -->
|
|
253 | 242 | <g:if test="${record.processed.identification.typeStatus}">
|
254 | 243 | <span style="text-transform: capitalize;">
|
255 | 244 | <g:each status="i" in="${record.processed.identification.typeStatus}" var="typeStatus">
|
256 |
| - ${i + 1}. ${typeStatus} |
| 245 | + <g:if test="${record.processed.identification.typeStatus.size() > 1}"> |
| 246 | + ${i + 1}. |
| 247 | + </g:if> |
| 248 | + ${typeStatus} |
257 | 249 | </g:each>
|
258 | 250 | </span>
|
| 251 | + <br/><span class="originalValue"><g:message code="recordcore.st.01" default="Supplied as"/> "${record.raw.identification.typeStatus}"</span> |
259 | 252 | </g:if>
|
260 | 253 | <g:else>
|
261 |
| - <g:each status="i" in="${record.raw.identification.typeStatus}" var="typeStatus"> |
262 |
| - ${i + 1}. ${typeStatus} |
263 |
| - </g:each> |
| 254 | + ${record.raw.identification.typeStatus} |
264 | 255 | </g:else>
|
265 |
| - <g:if test="${record.processed.identification.typeStatus && record.raw.identification.typeStatus && (record.processed.identification.typeStatus.toLowerCase() != record.raw.identification.typeStatus.toLowerCase())}"> |
266 |
| - <br/><span class="originalValue"><g:message code="recordcore.st.01" default="Supplied as"/> "${record.raw.identification.typeStatus}"</span> |
267 |
| - </g:if> |
| 256 | + |
268 | 257 | </alatag:occurrenceTableRow>
|
269 | 258 | <!-- Identification Qualifier -->
|
270 | 259 | <alatag:occurrenceTableRow annotate="true" section="dataset" fieldCode="identificationQualifier" fieldName="Identification qualifier">
|
|
342 | 331 |
|
343 | 332 | <table class="occurrenceTable table table-bordered table-striped table-condensed" id="eventTable">
|
344 | 333 | <!-- dataset -->
|
345 |
| - <alatag:occurrenceTableRow annotate="true" section="dataset" fieldCode="datasetName" fieldName="Dateset / Survey Name"> |
| 334 | + <alatag:occurrenceTableRow annotate="true" section="dataset" fieldCode="datasetName" fieldName="Dataset / Survey Name"> |
346 | 335 | ${fieldsMap.put("datasetName", true)}
|
347 | 336 | <g:each status="i" in="${record.raw.event.datasetName}" var="datasetName">
|
348 | 337 | <g:if test="${record.raw.event.datasetName.size() > 1}">
|
|
408 | 397 | <alatag:occurrenceTableRow annotate="true" section="dataset" fieldCode="samplingProtocol" fieldName="Sampling protocol">
|
409 | 398 | ${fieldsMap.put("samplingProtocol", true)}
|
410 | 399 | <g:each status="i" in="${record.raw.occurrence.samplingProtocol}" var="samplingProtocol">
|
411 |
| - ${samplingProtocol}<br/> |
| 400 | + <g:if test="${record.raw.occurrence.samplingProtocol.size() > 1}"> |
| 401 | + ${i + 1}. |
| 402 | + </g:if> |
| 403 | + ${samplingProtocol} |
412 | 404 | </g:each>
|
413 | 405 | </alatag:occurrenceTableRow>
|
414 | 406 | <alatag:formatExtraDwC compareRecord="${compareRecord}" fieldsMap="${fieldsMap}" group="Event" exclude="${dwcExcludeFields}"/>
|
|
0 commit comments