Files
dspace-angular/src/app/shared/testing/dso-edit-metadata-field.service.stub.ts
Alexandre Vryghem 33bdb69dca 119915: Extracted the authority/controlled vocabulary logic out of DsoEditMetadataValueComponent
Also:
- Converted the code to the standalone structure
- Made DsoEditMetadataValueFieldLoaderComponent extend AbstractComponentLoaderComponent
2024-10-31 22:15:55 +01:00

19 lines
462 B
TypeScript

import {
Observable,
of as observableOf,
} from 'rxjs';
import { DSpaceObject } from '../../core/shared/dspace-object.model';
import { Vocabulary } from '../../core/submission/vocabularies/models/vocabulary.model';
/**
* Stub class of {@link DsoEditMetadataFieldService}
*/
export class DsoEditMetadataFieldServiceStub {
findDsoFieldVocabulary(_dso: DSpaceObject, _mdField: string): Observable<Vocabulary> {
return observableOf(undefined);
}
}