SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 43f48f57 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Working on WebFaction server, post ratings removal

parent dc0b8ba4
No related branches found
No related tags found
No related merge requests found
...@@ -58,7 +58,6 @@ INSTALLED_APPS = ( ...@@ -58,7 +58,6 @@ INSTALLED_APPS = (
'commentaries', 'commentaries',
'comments', 'comments',
'journals', 'journals',
'ratings',
'scipost', 'scipost',
'submissions', 'submissions',
'theses', 'theses',
......
# -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-03-19 09:42
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Commentary',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('vetted', models.BooleanField(default=False)),
('type', models.CharField(choices=[('published', 'published paper'), ('preprint', 'arXiv preprint (at least 8 weeks old)')], max_length=9)),
('discipline', models.CharField(choices=[('physics', 'Physics')], default='physics', max_length=20)),
('domain', models.CharField(choices=[('E', 'Experimental'), ('T', 'Theoretical'), ('C', 'Computational'), ('ET', 'Exp. & Theor.'), ('EC', 'Exp. & Comp.'), ('TC', 'Theor. & Comp.'), ('ETC', 'Exp., Theor. & Comp.')], default='E', max_length=3)),
('specialization', models.CharField(choices=[('A', 'Atomic, Molecular and Optical Physics'), ('B', 'Biophysics'), ('C', 'Condensed Matter Physics'), ('F', 'Fluid Dynamics'), ('G', 'Gravitation, Cosmology and Astroparticle Physics'), ('H', 'High-Energy Physics'), ('M', 'Mathematical Physics'), ('N', 'Nuclear Physics'), ('Q', 'Quantum Statistical Mechanics'), ('S', 'Statistical and Soft Matter Physics')], default='A', max_length=1)),
('open_for_commenting', models.BooleanField(default=True)),
('pub_title', models.CharField(max_length=300, verbose_name='title')),
('arxiv_link', models.URLField(blank=True, verbose_name='arXiv link (including version nr)')),
('pub_DOI_link', models.URLField(blank=True, verbose_name='DOI link to the original publication')),
('author_list', models.CharField(max_length=1000)),
('pub_date', models.DateField(verbose_name='date of original publication')),
('pub_abstract', models.TextField(verbose_name='abstract')),
('latest_activity', models.DateTimeField(default=django.utils.timezone.now)),
],
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-03-19 09:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='AuthorReply',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('status', models.SmallIntegerField(default=0)),
('reply_text', models.TextField(verbose_name='')),
('date_submitted', models.DateTimeField(verbose_name='date submitted')),
],
),
migrations.CreateModel(
name='Comment',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('status', models.SmallIntegerField(default=0)),
('anonymous', models.BooleanField(default=False, verbose_name='Publish anonymously')),
('is_rem', models.BooleanField(default=False, verbose_name='remark')),
('is_que', models.BooleanField(default=False, verbose_name='question')),
('is_ans', models.BooleanField(default=False, verbose_name='answer to question')),
('is_obj', models.BooleanField(default=False, verbose_name='objection')),
('is_rep', models.BooleanField(default=False, verbose_name='reply to objection')),
('is_val', models.BooleanField(default=False, verbose_name='validation or rederivation')),
('is_lit', models.BooleanField(default=False, verbose_name='pointer to related literature')),
('is_sug', models.BooleanField(default=False, verbose_name='suggestion for further work')),
('comment_text', models.TextField()),
('remarks_for_editors', models.TextField(blank=True, default='', verbose_name='optional remarks for the Editors only')),
('date_submitted', models.DateTimeField(verbose_name='date submitted')),
],
),
]
...@@ -39,7 +39,7 @@ class Comment(models.Model): ...@@ -39,7 +39,7 @@ class Comment(models.Model):
submission = models.ForeignKey(Submission, blank=True, null=True) submission = models.ForeignKey(Submission, blank=True, null=True)
thesislink = models.ForeignKey(ThesisLink, blank=True, null=True) thesislink = models.ForeignKey(ThesisLink, blank=True, null=True)
in_reply_to = models.ForeignKey('self', blank=True, null=True) in_reply_to = models.ForeignKey('self', blank=True, null=True)
author = models.ForeignKey(Contributor) author = models.ForeignKey(Contributor, default=1)
anonymous = models.BooleanField(default=False, verbose_name='Publish anonymously') anonymous = models.BooleanField(default=False, verbose_name='Publish anonymously')
# Categories: # Categories:
is_rem = models.BooleanField(default=False, verbose_name='remark') is_rem = models.BooleanField(default=False, verbose_name='remark')
...@@ -84,7 +84,7 @@ class AuthorReply(models.Model): ...@@ -84,7 +84,7 @@ class AuthorReply(models.Model):
thesislink = models.ForeignKey(ThesisLink, blank=True, null=True) thesislink = models.ForeignKey(ThesisLink, blank=True, null=True)
in_reply_to_comment = models.ForeignKey(Comment, blank=True, null=True) # one of this and next must be not null in_reply_to_comment = models.ForeignKey(Comment, blank=True, null=True) # one of this and next must be not null
in_reply_to_report = models.ForeignKey(Report, blank=True, null=True) in_reply_to_report = models.ForeignKey(Report, blank=True, null=True)
author = models.ForeignKey(Contributor) author = models.ForeignKey(Contributor, default=1)
reply_text = models.TextField(verbose_name="") reply_text = models.TextField(verbose_name="")
date_submitted = models.DateTimeField('date submitted') date_submitted = models.DateTimeField('date submitted')
......
# -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-03-19 09:42
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('scipost', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Report',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('status', models.SmallIntegerField(default=0)),
('qualification', models.PositiveSmallIntegerField(blank=True, choices=[(4, 'expert in this subject'), (3, 'very knowledgeable in this subject'), (2, 'knowledgeable in this subject'), (1, 'generally qualified'), (0, 'not qualified')], verbose_name='Qualification to referee this: I am ')),
('strengths', models.TextField()),
('weaknesses', models.TextField()),
('report', models.TextField()),
('requested_changes', models.TextField(verbose_name='requested changes')),
('formatting', models.SmallIntegerField(blank=True, choices=[(6, 'perfect'), (5, 'excellent'), (4, 'good'), (3, 'reasonable'), (2, 'acceptable'), (1, 'below threshold'), (0, 'mediocre')], default=1, verbose_name='Quality of paper formatting')),
('grammar', models.SmallIntegerField(blank=True, choices=[(6, 'perfect'), (5, 'excellent'), (4, 'good'), (3, 'reasonable'), (2, 'acceptable'), (1, 'below threshold'), (0, 'mediocre')], default=1, verbose_name='Quality of English grammar')),
('recommendation', models.SmallIntegerField(choices=[(1, 'Publish as Tier I (top 10% of papers in this journal)'), (2, 'Publish as Tier II (top 50% of papers in this journal)'), (3, 'Publish as Tier III (meets the criteria of this journal)'), (-1, 'Ask for minor revision'), (-2, 'Ask for major revision'), (-3, 'Reject')])),
('date_invited', models.DateTimeField(blank=True, null=True, verbose_name='date invited')),
('date_submitted', models.DateTimeField(verbose_name='date submitted')),
('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor')),
('invited_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='invited_by', to='scipost.Contributor')),
],
),
migrations.CreateModel(
name='Submission',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('vetted', models.BooleanField(default=False)),
('submitted_to_journal', models.CharField(choices=[('SciPost Physics', 'SciPost Physics'), ('SciPost Physics Lecture Notes', 'SciPost Physics Lecture Notes')], max_length=30, verbose_name='Journal to be submitted to')),
('discipline', models.CharField(choices=[('physics', 'Physics')], default='physics', max_length=20)),
('domain', models.CharField(choices=[('E', 'Experimental'), ('T', 'Theoretical'), ('C', 'Computational'), ('ET', 'Exp. & Theor.'), ('EC', 'Exp. & Comp.'), ('TC', 'Theor. & Comp.'), ('ETC', 'Exp., Theor. & Comp.')], max_length=3)),
('specialization', models.CharField(choices=[('A', 'Atomic, Molecular and Optical Physics'), ('B', 'Biophysics'), ('C', 'Condensed Matter Physics'), ('F', 'Fluid Dynamics'), ('G', 'Gravitation, Cosmology and Astroparticle Physics'), ('H', 'High-Energy Physics'), ('M', 'Mathematical Physics'), ('N', 'Nuclear Physics'), ('Q', 'Quantum Statistical Mechanics'), ('S', 'Statistical and Soft Matter Physics')], max_length=1)),
('status', models.CharField(choices=[('unassigned', 'unassigned'), ('forwarded', 'forwarded to a specialty editor'), ('SEICassigned', 'specialty editor-in-charge assigned'), ('under_review', 'under review'), ('review_completed', 'review period closed, editorial recommendation pending'), ('SEIC_has_recommended', 'specialty editor-in-charge has provided recommendation'), ('decided', 'journal editor-in-chief has fixed decision')], max_length=30)),
('open_for_reporting', models.BooleanField(default=True)),
('open_for_commenting', models.BooleanField(default=True)),
('title', models.CharField(max_length=300)),
('author_list', models.CharField(max_length=1000, verbose_name='author list')),
('abstract', models.TextField()),
('arxiv_link', models.URLField(verbose_name='arXiv link (including version nr)')),
('submission_date', models.DateField(verbose_name='submission date')),
('latest_activity', models.DateTimeField(default=django.utils.timezone.now)),
('authors', models.ManyToManyField(blank=True, related_name='authors_sub', to='scipost.Contributor')),
('editor_in_charge', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='editor_in_charge', to='scipost.Contributor')),
('submitted_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor')),
],
),
migrations.AddField(
model_name='report',
name='submission',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='submissions.Submission'),
),
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment