diff --git a/schemas/iso19139/src/main/plugin/iso19139/layout/layout.xsl b/schemas/iso19139/src/main/plugin/iso19139/layout/layout.xsl
index 726eeb40d78..e9955bed2d7 100644
--- a/schemas/iso19139/src/main/plugin/iso19139/layout/layout.xsl
+++ b/schemas/iso19139/src/main/plugin/iso19139/layout/layout.xsl
@@ -541,6 +541,9 @@
+
+
+
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 77e68f691ba..dbbe490def8 100644
--- a/web-ui/src/main/resources/catalog/components/utility/UtilityDirective.js
+++ b/web-ui/src/main/resources/catalog/components/utility/UtilityDirective.js
@@ -901,6 +901,7 @@
restrict: "A",
link: function (scope, element, attrs) {
scope.prefix = attrs["prefix"] || "";
+ scope.showHintsOnFocus = attrs.showHintsOnFocus === "true"; // displays all the values on focus, default shows only the selected value
element.attr("placeholder", "...");
element.on("focus", function () {
$http
@@ -945,7 +946,8 @@
$(element).typeahead(
{
minLength: 0,
- highlight: true
+ highlight: true,
+ showHintsOnFocus: scope.showHintsOnFocus
},
{
name: "isoLanguages",
@@ -958,6 +960,10 @@
}
}
);
+ // Since the typeahead is initialized on focus the first focus will not trigger the hints
+ // So we blur then refocus to trigger the hints
+ $(element).blur();
+ $(element).focus();
});
element.unbind("focus");
});