journals.api.viewsets.publication module

class journals.api.viewsets.publication.PublicationPublicAPIViewSet(**kwargs)[source]

Bases: api.viewsets.mixins.FilteringOptionsActionMixin, api.viewsets.base.ExtraFilteredReadOnlyModelViewSet

permission_classes = [<class 'rest_framework.permissions.AllowAny'>]
serializer_class

alias of journals.api.serializers.publication.PublicationPublicSerializer

lookup_field = 'doi_label'
lookup_value_regex = '((SciPost)[a-zA-Z]+|(MigPol))(\\.\\w+(\\.[0-9]+(\\.[0-9]{3,})?)?)?'
search_fields = ['title', 'author_list', 'abstract', 'doi_label']
ordering_fields = ['publication_date']
filterset_class

alias of journals.api.filtersets.publication.PublicationPublicAPIFilterSet

extra_filters = {'journal__name': {'fields': ['in_journal__name', 'in_issue__in_journal__name', 'in_issue__in_volume__in_journal__name'], 'lookups': ['icontains', 'istartswith', 'iexact', 'exact']}}
default_filtering_fields = ['title__icontains', 'author_list__icontains', 'abstract__icontains', 'doi_label__icontains']
basename = None
description = None
detail = None
name = None
suffix = None
class journals.api.viewsets.publication.PublicationPublicSearchAPIViewSet(**kwargs)[source]

Bases: api.viewsets.mixins.FilteringOptionsActionMixin, api.viewsets.base.ExtraFilteredReadOnlyModelViewSet

permission_classes = [<class 'rest_framework.permissions.AllowAny'>]
serializer_class

alias of journals.api.serializers.publication.PublicationPublicSearchSerializer

lookup_field = 'doi_label'
lookup_value_regex = '((SciPost)[a-zA-Z]+|(MigPol))(\\.\\w+(\\.[0-9]+(\\.[0-9]{3,})?)?)?'
search_fields = ['title', 'author_list', 'abstract', 'doi_label']
ordering_fields = ['publication_date']
filterset_class

alias of journals.api.filtersets.publication.PublicationPublicSearchAPIFilterSet

extra_filters = {'journal__name': {'fields': ['in_journal__name', 'in_issue__in_journal__name', 'in_issue__in_volume__in_journal__name'], 'lookups': ['icontains', 'istartswith', 'iexact', 'exact']}}
default_filtering_fields = ['title__icontains', 'author_list__icontains', 'abstract__icontains', 'doi_label__icontains']
basename = None
description = None
detail = None
name = None
suffix = None