mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
42 lines
709 B
TypeScript
42 lines
709 B
TypeScript
import { v4 as uuid } from 'uuid';
|
|
|
|
/**
|
|
* A model class that holds information about the Content Source of a Collection
|
|
*/
|
|
export class ContentSource {
|
|
/**
|
|
* Unique identifier
|
|
*/
|
|
uuid: string;
|
|
|
|
/**
|
|
* Does this collection harvest its content from an external source ?
|
|
*/
|
|
enabled = false;
|
|
|
|
/**
|
|
* OAI Provider
|
|
*/
|
|
provider: string;
|
|
|
|
/**
|
|
* OAI Specific set ID
|
|
*/
|
|
set: string;
|
|
|
|
/**
|
|
* Metadata Format
|
|
*/
|
|
format = 'dc';
|
|
|
|
/**
|
|
* Type of content being harvested
|
|
*/
|
|
harvest = 3;
|
|
|
|
constructor() {
|
|
// TODO: Remove this once the Content Source is fetched from the REST API and a custom generated UUID is not necessary anymore
|
|
this.uuid = uuid();
|
|
}
|
|
}
|