Skip to content

Commit

Permalink
Merge pull request #585 from AtlasOfLivingAustralia/fix-occurrence-page
Browse files Browse the repository at this point in the history
fix exclude comparison for occurrence page
  • Loading branch information
adam-collins committed Nov 13, 2023
2 parents 3475c65 + 6d9ccb1 commit ecb7573
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -672,12 +672,14 @@ class OccurrenceTagLib {
def exclude = attrs.exclude?:''
def output = ""

def excludeList = exclude.toString().toLowerCase().split(",")

compareRecord.get(group).each { cr ->
def key = cr.name
def label = message(code:key, default:"") ?: camelCaseToHuman(text: key) ?: StringUtils.capitalize(key)

// only output fields not already included (by checking fieldsMap Map) && not in excluded list
if (!fieldsMap.containsKey(key) && !StringUtils.containsIgnoreCase(exclude, key)) {
if (!fieldsMap.containsKey(key) && !excludeList.contains(key.toLowerCase())) {
//def mb = new MarkupBuilder(out)
def tagBody

Expand Down

0 comments on commit ecb7573

Please sign in to comment.