Skip to content
Snippets Groups Projects
Commit 9d311f97 authored by Alexandru Munteanu's avatar Alexandru Munteanu
Browse files

Add correct field ids to first 2 steps of wizard

parent 185c3fbf
No related branches found
No related tags found
No related merge requests found
...@@ -27,30 +27,30 @@ export default { ...@@ -27,30 +27,30 @@ export default {
], ],
options: [ options: [
{ {
value: 'step2-1', value: 'has-email',
label: `I have the email addresses of all the co-authors of the manuscript.`, label: `I have the email addresses of all the co-authors of the manuscript.`,
}, },
{ {
value: 'step2-2', value: 'has-manuscript',
label: label:
'I have the manuscript file in Microsoft Word or Adobe PDF format with the tables and figures integrated in the manuscript body.', 'I have the manuscript file in Microsoft Word or Adobe PDF format with the tables and figures integrated in the manuscript body.',
}, },
{ {
value: 'step2-3', value: 'has-efiles',
label: label:
'I have the electronic files of any supplementary materials (e.g., datasets, images, audio, video) that I want to submit with the manuscript.', 'I have the electronic files of any supplementary materials (e.g., datasets, images, audio, video) that I want to submit with the manuscript.',
}, },
{ {
value: 'step2-4', value: 'ok-article-processing',
label: label:
'I am aware that accepted manuscripts are subject to Article Processing Charges.', 'I am aware that accepted manuscripts are subject to Article Processing Charges.',
}, },
{ {
value: 'step2-5', value: 'has-orcid',
label: `I'm aware that an ORCID ID is required for the corresponding author before the article can be published (if accepted). The ORCID ID should added via your user account.`, label: `I'm aware that an ORCID ID is required for the corresponding author before the article can be published (if accepted). The ORCID ID should added via your user account.`,
}, },
{ {
value: 'step2-6', value: 'ok-institutional',
label: label:
'I am aware that if my submission is covered by an institutional membership, Hindawi will share details of the manuscript with the administrator of the membership.', 'I am aware that if my submission is covered by an institutional membership, Hindawi will share details of the manuscript with the administrator of the membership.',
}, },
......
...@@ -8,3 +8,4 @@ export { default as articleTypes } from './article-types' ...@@ -8,3 +8,4 @@ export { default as articleTypes } from './article-types'
export { default as editors } from './editors' export { default as editors } from './editors'
export { default as roles } from './roles' export { default as roles } from './roles'
export { default as wizard } from './submit-wizard' export { default as wizard } from './submit-wizard'
export { default as issueTypes } from './issues-types'
export default [
{ label: 'Regular Issues', value: 'regular-issue' },
{
label: 'Analytical Method for High Energy Physics',
value: 'analytical-method',
},
{
label:
'Cosmic Strings: Fields in Thier Space-Time and Their Cosmological Signatures',
value: 'cosmic-strings',
},
{
label:
'Neutrino Physics in the Frontiers of Intensities and Very High Sensitivities 2018',
value: 'neutrino-physics',
},
{
label: 'New Physics Landmarks: Dark Matters and Neutrino Masses',
value: 'new-physics-landmarks',
},
{
label:
'Properties of Chemical and Kinetic Freeze-Outs in High-Energy Nuclear Collisions',
value: 'properties-of-chemical',
},
{
label:
'Perspectives on Decay and Time Evolutions of Metastable States: From Particle Physics to Cosmology',
value: 'perspective-on-decay',
},
]
...@@ -8,11 +8,13 @@ import { ...@@ -8,11 +8,13 @@ import {
Supplementary, Supplementary,
} from '@pubsweet/ui' } from '@pubsweet/ui'
import uploadFile from 'xpub-upload' import uploadFile from 'xpub-upload'
import { required, minChars } from 'xpub-validators' import { required, minChars, minSize } from 'xpub-validators'
import { articleSections, declarations } from './' import { declarations } from './'
import issueTypes from './issues-types'
const min3Chars = minChars(3) const min3Chars = minChars(3)
const declarationsMinSize = minSize(declarations.options.length)
const yesNoWithLabel = ({ label, ...rest }) => ( const yesNoWithLabel = ({ label, ...rest }) => (
<div> <div>
<label>{label}</label> <label>{label}</label>
...@@ -37,7 +39,7 @@ export default { ...@@ -37,7 +39,7 @@ export default {
steps: [ steps: [
{ {
label: 'Journal details', label: 'Journal details',
title: 'Jounal & Field Selection', title: 'Journal & Field Selection',
children: [ children: [
{ {
fieldId: 'metadata.journal', fieldId: 'metadata.journal',
...@@ -48,19 +50,11 @@ export default { ...@@ -48,19 +50,11 @@ export default {
validate: [required], validate: [required],
}, },
{ {
fieldId: 'subject', fieldId: 'metadata.issue',
renderComponent: Menu, renderComponent: Menu,
label: 'Subject area', label: 'Issue',
options: articleSections, options: issueTypes,
}, validate: [required],
{
fieldId: 'specialIssue',
renderComponent: Menu,
label: 'Special issue',
options: [
{ label: 'Special 2.1', value: 'dd21' },
{ label: 'Special 2.2', value: 'dd22' },
],
}, },
], ],
}, },
...@@ -74,7 +68,7 @@ export default { ...@@ -74,7 +68,7 @@ export default {
fieldId: 'declarations', fieldId: 'declarations',
renderComponent: CheckboxGroup, renderComponent: CheckboxGroup,
options: declarations.options, options: declarations.options,
validate: [required], validate: [required, declarationsMinSize],
}, },
], ],
}, },
......
...@@ -18,6 +18,7 @@ module.exports = { ...@@ -18,6 +18,7 @@ module.exports = {
source: Joi.string(), // TODO: move to a file source: Joi.string(), // TODO: move to a file
metadata: Joi.object({ metadata: Joi.object({
journal: Joi.string(), journal: Joi.string(),
issue: Joi.string(),
title: Joi.string(), title: Joi.string(),
abstract: Joi.string(), abstract: Joi.string(),
articleType: Joi.string(), articleType: Joi.string(),
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment