From 55007ec761fa390012001f080a091d7a742ad13e Mon Sep 17 00:00:00 2001
From: Rosie Le Faive <lefaive@gmail.com>
Date: Mon, 7 Aug 2023 16:03:53 -0300
Subject: [PATCH] Format the 'Fedora URI' label as a label.

---
 islandora.module | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/islandora.module b/islandora.module
index 69176714..895f88b6 100644
--- a/islandora.module
+++ b/islandora.module
@@ -686,13 +686,17 @@ function islandora_entity_view(array &$build, EntityInterface $entity, EntityVie
           'id' => 'field-gemini-uri',
         ],
         'internal_label' => [
-          '#type' => 'item',
-          '#title' => t('Fedora URI'),
-          'internal_uri' => [
-            '#type' => 'link',
-            '#title' => t("@url", ['@url' => $fedora_uri]),
-            '#url' => Url::fromUri($fedora_uri),
+          '#type' => 'html_tag',
+          '#tag' => 'div',
+          '#attributes' => [
+            'class' => ['field__label'],
           ],
+          '#value' => t('Fedora URI:'),
+        ],
+        'internal_uri' => [
+          '#type' => 'link',
+          '#title' => t("@url", ['@url' => $fedora_uri]),
+          '#url' => Url::fromUri($fedora_uri),
         ],
       ];
     }
@@ -742,3 +746,4 @@ function islandora_preprocess_views_view_table(&$variables) {
     }
   }
 }
+