diff --git a/web-ui/src/main/resources/catalog/components/utility/UtilityDirective.js b/web-ui/src/main/resources/catalog/components/utility/UtilityDirective.js index c3dcf36632d..aecb4b99615 100644 --- a/web-ui/src/main/resources/catalog/components/utility/UtilityDirective.js +++ b/web-ui/src/main/resources/catalog/components/utility/UtilityDirective.js @@ -2220,6 +2220,7 @@ }; } ]); + module.filter("signInLink", [ "$location", "$filter", @@ -2233,6 +2234,23 @@ }; } ]); + + module.filter("isHtml", [ + "$location", + "$filter", + function ($location, $filter) { + return function (str) { + var a = new DOMParser().parseFromString(str, "text/html"); + + for (var c = a.body.childNodes, i = c.length; i--; ) { + if (c[i].nodeType == 1) return true; + } + + return false; + }; + } + ]); + module.filter("getMailDomain", [ function () { return function (mail) { diff --git a/web-ui/src/main/resources/catalog/views/default/templates/recordView/title.html b/web-ui/src/main/resources/catalog/views/default/templates/recordView/title.html index 19e4a0e71ca..d96f9a6eb5d 100644 --- a/web-ui/src/main/resources/catalog/views/default/templates/recordView/title.html +++ b/web-ui/src/main/resources/catalog/views/default/templates/recordView/title.html @@ -42,5 +42,12 @@