From b0bc704356ddb4a986897894206e73b88203cf03 Mon Sep 17 00:00:00 2001 From: chrisala Date: Mon, 9 Dec 2024 10:00:10 +1100 Subject: [PATCH] Added name identifier for the Score entity AtlasOfLivingAustralia/fieldcapture#3368 --- grails-app/domain/au/org/ala/ecodata/Score.groovy | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/grails-app/domain/au/org/ala/ecodata/Score.groovy b/grails-app/domain/au/org/ala/ecodata/Score.groovy index 843e99a1f..f02df1dae 100644 --- a/grails-app/domain/au/org/ala/ecodata/Score.groovy +++ b/grails-app/domain/au/org/ala/ecodata/Score.groovy @@ -13,6 +13,9 @@ class Score { /** The label for this score when displayed */ String label + /** Unique human name for this score to be used as a more descriptive alternative to the scoreId in forms/configuration. Must be unique if present */ + String name + /** A more detailed description of the score and how it should be interpreted */ String description @@ -53,6 +56,7 @@ class Score { tags: nullable:true label unique: true scoreId unique: true + name nullable: true, unique: true } static mapping = { @@ -88,7 +92,8 @@ class Score { entity:entity, externalId:externalId, entityTypes:entityTypes, - tags:tags + tags:tags, + name:name ] if (includeConfig) { scoreMap.configuration = configuration