diff --git a/add/data/xqm/edition.xqm b/add/data/xqm/edition.xqm
index 7588d5b5e98fb4cb2019395d62cbc95d0b69c248..17f8ee9d8c5aa1d596efc8dd6c39b6e2de7d25b3 100644
--- a/add/data/xqm/edition.xqm
+++ b/add/data/xqm/edition.xqm
@@ -41,7 +41,7 @@ declare function edition:details($uri as xs:string) as map(*) {
         map {
             "id": $edition/string(@xml:id),
             "doc": $uri,
-            "name": $edition/edirom:editionName
+            "name": $edition/edirom:editionName => fn:normalize-space()
         }
 };
 
@@ -159,14 +159,14 @@ declare function edition:getEditionURI($editionIDorPath as xs:string?) as xs:str
 
 (:~
  : Returns the name of the edition specified by $uri
+ : This is a shortcut function for `edition:details($uri)?name`
+ : and might get deprecated in the future.
  :
  : @param $uri The URI of the Edition's document to process
  : @return the text contents of edirom:edition/edirom:editionName
  :)
 declare function edition:getName($uri as xs:string) as xs:string {
-
-    doc($uri)/edirom:edition/edirom:editionName => fn:normalize-space()
-
+    edition:details($uri)?name
 };
 
 (:~