mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-16 22:43:03 +00:00
fix #869 Submission embargo bug
This commit is contained in:
@@ -1284,27 +1284,23 @@ export const mockUploadConfigResponse = {
|
||||
accessConditionOptions: [
|
||||
{
|
||||
name: 'openaccess',
|
||||
groupUUID: '123456-g',
|
||||
hasStartDate: false,
|
||||
hasEndDate: false
|
||||
},
|
||||
{
|
||||
name: 'lease',
|
||||
groupUUID: '123456-g',
|
||||
hasStartDate: false,
|
||||
hasEndDate: true,
|
||||
maxEndDate: '2019-07-12T14:40:06.308+0000'
|
||||
},
|
||||
{
|
||||
name: 'embargo',
|
||||
groupUUID: '123456-g',
|
||||
hasStartDate: true,
|
||||
hasEndDate: false,
|
||||
maxStartDate: '2022-01-12T14:40:06.308+0000'
|
||||
},
|
||||
{
|
||||
name: 'administrator',
|
||||
groupUUID: '0f2773dd-1741-475f-80e7-ccdef153d655',
|
||||
hasStartDate: false,
|
||||
hasEndDate: false
|
||||
}
|
||||
@@ -1323,35 +1319,6 @@ export const mockUploadConfigResponse = {
|
||||
// Clone the object and change one property
|
||||
export const mockUploadConfigResponseNotRequired = Object.assign({}, mockUploadConfigResponse, { required: false });
|
||||
|
||||
export const mockAccessConditionOptions = [
|
||||
{
|
||||
name: 'openaccess',
|
||||
groupUUID: '123456-g',
|
||||
hasStartDate: false,
|
||||
hasEndDate: false
|
||||
},
|
||||
{
|
||||
name: 'lease',
|
||||
groupUUID: '123456-g',
|
||||
hasStartDate: false,
|
||||
hasEndDate: true,
|
||||
maxEndDate: '2019-07-12T14:40:06.308+0000'
|
||||
},
|
||||
{
|
||||
name: 'embargo',
|
||||
groupUUID: '123456-g',
|
||||
hasStartDate: true,
|
||||
hasEndDate: false,
|
||||
maxStartDate: '2022-01-12T14:40:06.308+0000'
|
||||
},
|
||||
{
|
||||
name: 'administrator',
|
||||
groupUUID: '0f2773dd-1741-475f-80e7-ccdef153d655',
|
||||
hasStartDate: false,
|
||||
hasEndDate: false
|
||||
}
|
||||
];
|
||||
|
||||
export const mockGroup = Object.assign(new Group(), {
|
||||
handle: null,
|
||||
permanent: true,
|
||||
@@ -1478,17 +1445,6 @@ export const mockFileFormData = {
|
||||
otherInformation: null
|
||||
}
|
||||
],
|
||||
groupUUID: [
|
||||
{
|
||||
value: '123456-g',
|
||||
language: null,
|
||||
authority: null,
|
||||
display: '123456-g',
|
||||
confidence: -1,
|
||||
place: 0,
|
||||
otherInformation: null
|
||||
}
|
||||
]
|
||||
}
|
||||
,
|
||||
{
|
||||
@@ -1522,17 +1478,6 @@ export const mockFileFormData = {
|
||||
otherInformation: null
|
||||
}
|
||||
],
|
||||
groupUUID: [
|
||||
{
|
||||
value: '123456-g',
|
||||
language: null,
|
||||
authority: null,
|
||||
display: '123456-g',
|
||||
confidence: -1,
|
||||
place: 0,
|
||||
otherInformation: null
|
||||
}
|
||||
]
|
||||
}
|
||||
,
|
||||
{
|
||||
@@ -1566,17 +1511,6 @@ export const mockFileFormData = {
|
||||
otherInformation: null
|
||||
}
|
||||
],
|
||||
groupUUID: [
|
||||
{
|
||||
value: '123456-g',
|
||||
language: null,
|
||||
authority: null,
|
||||
display: '123456-g',
|
||||
confidence: -1,
|
||||
place: 0,
|
||||
otherInformation: null
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
|
Reference in New Issue
Block a user