Project

General

Profile

« Previous | Next » 

Revision 59200

add collectedfrom and set the org id with a concat of ds.nsprefix and ds.id

View differences:

modules/dnet-modular-repositories-ui/trunk/src/main/resources/eu/dnetlib/web/resources/js/addRepo.js
113 113
			$scope.showSpinner();
114 114
			$http.defaults.headers.post["Content-Type"] = "application/x-www-form-urlencoded; charset=UTF-8";
115 115
			
116
			$scope.org.id = 'openaire____::' + $scope.repo.id;
116
			$scope.org.id = $scope.repo.namespaceprefix + "::"+$scope.repo.id;
117
			$scope.org.collectedfrom = $scope.repo.id;
118

  
117 119
			$scope.repo.organizations = [$scope.org];
118 120
			
119 121
			$http.post('repo.new', $.param({

Also available in: Unified diff