diff --git a/apps/dnet-orgs-database-application/src/main/resources/static/resources/html/pages/advanced/conflicts.html b/apps/dnet-orgs-database-application/src/main/resources/static/resources/html/pages/advanced/conflicts.html index 3a1d98f5..24205bfd 100644 --- a/apps/dnet-orgs-database-application/src/main/resources/static/resources/html/pages/advanced/conflicts.html +++ b/apps/dnet-orgs-database-application/src/main/resources/static/resources/html/pages/advanced/conflicts.html @@ -30,6 +30,7 @@ + diff --git a/apps/dnet-orgs-database-application/src/main/resources/static/resources/js/organizations.js b/apps/dnet-orgs-database-application/src/main/resources/static/resources/js/organizations.js index 0430131c..e05cd794 100644 --- a/apps/dnet-orgs-database-application/src/main/resources/static/resources/js/organizations.js +++ b/apps/dnet-orgs-database-application/src/main/resources/static/resources/js/organizations.js @@ -311,6 +311,17 @@ orgsModule.directive('orgConflicts', function($http, $location, $route, $q) { link: function(scope, element, attrs, ctrl) { scope.candidateConflicts = []; scope.selectedConflicts = []; + scope.newConflict = {}; + + scope.addConflict = function() { + scope.conflicts.push({ + 'id' : scope.newConflict.id, + 'name' : scope.newConflict.name, + 'type' : scope.newConflict.type, + 'city' : scope.newConflict.city, + 'country': scope.newConflict.country + }); + } scope.prepareConflictsModal = function() { scope.candidateConflicts = []; @@ -708,6 +719,22 @@ orgsModule.controller('conflictsCtrl', function ($scope, $http, $routeParams, $l $scope.conflicts = []; $scope.country = $routeParams.country; $scope.orgs = []; + $scope.newConflict = {}; + $scope.currentGroup = []; + + $scope.addConflict = function() { + $scope.currentGroup.push({ + 'id' : $scope.newConflict.id, + 'name' : $scope.newConflict.name, + 'type' : $scope.newConflict.type, + 'city' : $scope.newConflict.city, + 'country': $scope.newConflict.country + }); + } + + $scope.prepareAddConflictModal = function(list) { + $scope.currentGroup = list; + }; $scope.prepareConflictsModal = function(list) { $scope.orgs = [];