File tree 1 file changed +0
-11
lines changed
grails-app/services/au/org/ala/biocache/hubs
1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -422,7 +422,6 @@ class PostProcessingService {
422
422
// log.debug "record = ${record as JSON}"
423
423
String stateProvince = " "
424
424
String stateKey = " "
425
- Map statesListsPaths = grailsApplication. config. getProperty(' stateConservationListPath' , Map , [:])
426
425
// conservation list is state based, so first we need to know the state
427
426
modifiedRecord. get(" Location" )?. each {
428
427
if (it. name == " stateProvince" ) {
@@ -431,16 +430,6 @@ class PostProcessingService {
431
430
stateKey = WordUtils . capitalizeFully(stateProvince). replaceAll(" \\ s+" , " " )
432
431
}
433
432
}
434
- modifiedRecord. get(" Occurrence" )?. each {
435
- if (it. name == " stateConservation" && stateProvince && statesListsPaths. containsKey(stateKey)) {
436
- String statusValue = it. processed ?: it. raw
437
- List statusValues = statusValue. tokenize(" ," ). unique( false ) // remove duplicate values
438
- statusValue = (statusValues. size() == 2 ) ? statusValues[1 ] : statusValues. join(" , " ) // only show 'sourceStatus' if 2 values are present
439
-
440
- String specieslistUrl = " ${ grailsApplication.config.getProperty('speciesList.baseURL')}${ statesListsPaths[stateKey]} "
441
- it. processed = " <a href=\" ${ specieslistUrl} \" target=\" _lists\" >${ stateProvince} : ${ statusValue} </a>"
442
- }
443
- }
444
433
445
434
modifiedRecord
446
435
}
You can’t perform that action at this time.
0 commit comments