From ef2586b3e8773698ab0234f1a3191a71d939a624 Mon Sep 17 00:00:00 2001 From: Syphax bouazzouni Date: Mon, 22 Jul 2024 21:18:17 +0200 Subject: [PATCH] fix annotator attributes languague filter --- helpers/search_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/search_helper.rb b/helpers/search_helper.rb index 4e2dee3c..ff034681 100644 --- a/helpers/search_helper.rb +++ b/helpers/search_helper.rb @@ -357,7 +357,7 @@ def populate_classes_from_search(classes, ontology_acronyms=nil) doc[:submission] = old_class.submission doc[:properties] = MultiJson.load(doc.delete(:propertyRaw)) if include_param_contains?(:properties) instance = LinkedData::Models::Class.read_only(doc) - instance.prefLabel = instance.prefLabel.first if instance.prefLabel.is_a?(Array) + filter_language_attributes(params, instance) classes_hash[ont_uri_class_uri] = instance end