diff --git a/web/app/corpora/forms.py b/web/app/corpora/forms.py index 0a2e2170..14c22f1b 100644 --- a/web/app/corpora/forms.py +++ b/web/app/corpora/forms.py @@ -12,6 +12,8 @@ class AddCorpusFileForm(FlaskForm): # Required fields author = StringField('Author', validators=[DataRequired(), Length(1, 255)]) file = FileField('File', validators=[DataRequired()]) + publishing_year = IntegerField('Publishing year', + validators=[DataRequired()]) title = StringField('Title', validators=[DataRequired(), Length(1, 255)]) # Optional fields address = StringField('Adress', validators=[Length(0, 255)]) @@ -22,7 +24,6 @@ class AddCorpusFileForm(FlaskForm): journal = StringField('Journal', validators=[Length(0, 255)]) pages = StringField('Pages', validators=[Length(0, 255)]) publisher = StringField('Publisher', validators=[Length(0, 255)]) - publishing_year = IntegerField('Publishing year') school = StringField('School', validators=[Length(0, 255)]) submit = SubmitField() @@ -46,6 +47,8 @@ class EditCorpusFileForm(FlaskForm): ''' # Required fields author = StringField('Author', validators=[DataRequired(), Length(1, 255)]) + publishing_year = IntegerField('Publishing year', + validators=[DataRequired()]) title = StringField('Title', validators=[DataRequired(), Length(1, 255)]) # Optional fields address = StringField('Adress', validators=[Length(0, 255)]) @@ -56,7 +59,6 @@ class EditCorpusFileForm(FlaskForm): journal = StringField('Journal', validators=[Length(0, 255)]) pages = StringField('Pages', validators=[Length(0, 255)]) publisher = StringField('Publisher', validators=[Length(0, 255)]) - publishing_year = IntegerField('Publishing year') school = StringField('School', validators=[Length(0, 255)]) submit = SubmitField() diff --git a/web/app/templates/corpora/add_corpus_file.html.j2 b/web/app/templates/corpora/add_corpus_file.html.j2 index 5f8f25b3..70f72834 100644 --- a/web/app/templates/corpora/add_corpus_file.html.j2 +++ b/web/app/templates/corpora/add_corpus_file.html.j2 @@ -31,6 +31,9 @@