Revision 59200
Added by Alessia Bardi over 3 years ago
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
add collectedfrom and set the org id with a concat of ds.nsprefix and ds.id