fix #869 Submission embargo bug

This commit is contained in:
Andrew Wood
2020-11-03 13:55:31 -05:00
committed by Samuel
parent 942dd2e72e
commit f0a710a9fc
13 changed files with 15 additions and 260 deletions

View File

@@ -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
}
]
}
]
};