papers.forms module

class papers.forms.FrontPageSearchForm(*args, **kwargs)[source]

Bases: papers.forms.PaperForm

base_fields = OrderedDict([('q', <django.forms.fields.CharField object>), ('status', <django.forms.fields.MultipleChoiceField object>), ('pub_after', <django.forms.fields.DateField object>), ('pub_before', <django.forms.fields.DateField object>), ('doctypes', <django.forms.fields.MultipleChoiceField object>), ('authors', <django.forms.fields.CharField object>), ('sort_by', <django.forms.fields.ChoiceField object>), ('reverse_order', <django.forms.fields.ChoiceField object>), ('visible', <django.forms.fields.ChoiceField object>), ('availability', <django.forms.fields.ChoiceField object>), ('oa_status', <django.forms.fields.MultipleChoiceField object>)])
declared_fields = OrderedDict([('q', <django.forms.fields.CharField object>), ('status', <django.forms.fields.MultipleChoiceField object>), ('pub_after', <django.forms.fields.DateField object>), ('pub_before', <django.forms.fields.DateField object>), ('doctypes', <django.forms.fields.MultipleChoiceField object>), ('authors', <django.forms.fields.CharField object>), ('sort_by', <django.forms.fields.ChoiceField object>), ('reverse_order', <django.forms.fields.ChoiceField object>), ('visible', <django.forms.fields.ChoiceField object>), ('availability', <django.forms.fields.ChoiceField object>), ('oa_status', <django.forms.fields.MultipleChoiceField object>)])
media
class papers.forms.OrcidField(max_length=None, min_length=None, strip=True, *args, **kwargs)[source]

Bases: django.forms.fields.CharField

to_python(val)[source]
class papers.forms.PaperForm(*args, **kwargs)[source]

Bases: haystack.forms.SearchForm

DATE_FORMATS = [u'%Y-%m-%d', u'%Y-%m', u'%Y']
ORDER_CHOICES = [(u'', <django.utils.functional.__proxy__ object>), (u'inc', <django.utils.functional.__proxy__ object>)]
SORT_CHOICES = [(u'', <django.utils.functional.__proxy__ object>), (u'text', <django.utils.functional.__proxy__ object>)]
base_fields = OrderedDict([('q', <django.forms.fields.CharField object>), ('status', <django.forms.fields.MultipleChoiceField object>), ('pub_after', <django.forms.fields.DateField object>), ('pub_before', <django.forms.fields.DateField object>), ('doctypes', <django.forms.fields.MultipleChoiceField object>), ('authors', <django.forms.fields.CharField object>), ('sort_by', <django.forms.fields.ChoiceField object>), ('reverse_order', <django.forms.fields.ChoiceField object>), ('visible', <django.forms.fields.ChoiceField object>), ('availability', <django.forms.fields.ChoiceField object>), ('oa_status', <django.forms.fields.MultipleChoiceField object>)])
declared_fields = OrderedDict([('q', <django.forms.fields.CharField object>), ('status', <django.forms.fields.MultipleChoiceField object>), ('pub_after', <django.forms.fields.DateField object>), ('pub_before', <django.forms.fields.DateField object>), ('doctypes', <django.forms.fields.MultipleChoiceField object>), ('authors', <django.forms.fields.CharField object>), ('sort_by', <django.forms.fields.ChoiceField object>), ('reverse_order', <django.forms.fields.ChoiceField object>), ('visible', <django.forms.fields.ChoiceField object>), ('availability', <django.forms.fields.ChoiceField object>), ('oa_status', <django.forms.fields.MultipleChoiceField object>)])
filter(**kwargs)[source]
form_filter(field, criterion)[source]
media
no_query_found()[source]
on_statuses()[source]
search()[source]
class papers.forms.ResearcherDepartmentForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None)[source]

Bases: django.forms.forms.Form

base_fields = OrderedDict([('value', <django.forms.models.ModelChoiceField object>), ('pk', <django.forms.models.ModelChoiceField object>), ('name', <django.forms.fields.CharField object>)])
declared_fields = OrderedDict([('value', <django.forms.models.ModelChoiceField object>), ('pk', <django.forms.models.ModelChoiceField object>), ('name', <django.forms.fields.CharField object>)])
media
class papers.forms.Sloppy(query_string, **kwargs)[source]

Bases: haystack.inputs.Exact

prepare(query_obj)[source]
papers.forms.aggregate_combined_status(queryset)[source]