diff --git a/web-ui/src/main/resources/catalog/components/history/GnHistoryDirective.js b/web-ui/src/main/resources/catalog/components/history/GnHistoryDirective.js index df5c81d2dbc..dbd0f27688b 100644 --- a/web-ui/src/main/resources/catalog/components/history/GnHistoryDirective.js +++ b/web-ui/src/main/resources/catalog/components/history/GnHistoryDirective.js @@ -58,7 +58,10 @@ if (gnConfig["metadata.workflow.enable"]) { types.workflow = true; } - types.task = true; + // Currently the only task is DOI + if (gnConfig["system.publication.doi.doienabled"]) { + types.task = true; + } types.event = true; scope.filter = { @@ -69,6 +72,10 @@ }; }); + scope.getNumberOfTypes = function () { + return Object.keys(scope.filter.types).length; + }; + // Wait for metatada to be available scope.$watch("md", function (n, o) { if (angular.isDefined(n)) { diff --git a/web-ui/src/main/resources/catalog/components/history/partials/recordHistory.html b/web-ui/src/main/resources/catalog/components/history/partials/recordHistory.html index 7bd26fc6311..09bcd634bc7 100644 --- a/web-ui/src/main/resources/catalog/components/history/partials/recordHistory.html +++ b/web-ui/src/main/resources/catalog/components/history/partials/recordHistory.html @@ -4,7 +4,7 @@ recordHistory