From c3386ff31364c12480042197557d2034489f0899 Mon Sep 17 00:00:00 2001 From: Shana Moore Date: Wed, 24 Apr 2024 14:22:14 -0700 Subject: [PATCH] :bug: Account for Valkyrie ID in location indexer In #extract_id we were receiving an error because it didn't account for a Valkyrie::ID in its case statement. This commit adds a case for Valkyrie::ID. --- app/services/hyrax/location_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/hyrax/location_service.rb b/app/services/hyrax/location_service.rb index 1fe9803232..c0efa08a49 100644 --- a/app/services/hyrax/location_service.rb +++ b/app/services/hyrax/location_service.rb @@ -19,7 +19,7 @@ def full_label(uri) def extract_id(obj) uri = case obj - when String + when String, Valkyrie::ID URI(obj) when URI obj