Commits
Giuseppe Digilio authored 5ff7b8c58b9
27 27 | |
28 28 | /** |
29 29 | * Service that handles search requests for potential duplicate items. |
30 30 | * This uses the /api/submission/duplicates endpoint to look for other archived or in-progress items (if user |
31 31 | * has READ permission) that match the item (for the given uuid). |
32 32 | * Matching is configured in the backend in dspace/config/modulesduplicate-detection.cfg |
33 33 | * The returned results are small preview 'stubs' of items, and displayed in either a submission section |
34 34 | * or the workflow pooled/claimed task page. |
35 35 | * |
36 36 | */ |
37 - | @Injectable() |
37 + | @Injectable({ providedIn: 'root' }) |
38 38 | @dataService(DUPLICATE) |
39 39 | export class SubmissionDuplicateDataService extends BaseDataService<Duplicate> implements SearchData<Duplicate> { |
40 40 | |
41 41 | /** |
42 42 | * The ResponseParsingService constructor name |
43 43 | */ |
44 44 | private parser: GenericConstructor<ResponseParsingService> = SearchResponseParsingService; |
45 45 | |
46 46 | /** |
47 47 | * The RestRequest constructor name |