Skip to content

Commit

Permalink
API / Delete batch.
Browse files Browse the repository at this point in the history
  • Loading branch information
fxprunayre committed Jun 24, 2016
1 parent 4169c36 commit 8e63d6a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ ResponseEntity<SimpleMetadataProcessingReport> deleteRecords(
Lib.resource.getMetadataDir(context.getBean(GeonetworkDataDirectory.class),
String.valueOf(metadata.getId())));

dataManager.deleteMetadata(context, metadata.getUuid());
dataManager.deleteMetadata(context, String.valueOf(metadata.getId()));

report.incrementProcessedRecords();
report.addMetadataId(metadata.getId());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,6 @@
*/

module.value('gnHttpServices', {
mdDeleteBatch: 'md.delete.batch',

mdGetPDFSelection: 'pdf.selection.search', // TODO: CHANGE
mdGetRDF: 'rdf.metadata.get',
mdGetMEF: 'mef.export',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,8 @@
});
}
else {
return callBatch('mdDeleteBatch').then(function() {
return $http.delete('../api/records').then(function() {
$rootScope.$broadcast('mdSelectNone');
// TODO: Same here.
$rootScope.$broadcast('search');
});
}
Expand Down

0 comments on commit 8e63d6a

Please sign in to comment.