papers.views module

class papers.views.DepartmentPapersView(**kwargs)[source]

Bases: papers.views.PaperSearchView

Displays the papers of researchers from a given department in an institution.

get(request, *args, **kwargs)[source]
get_context_data(**kwargs)[source]
class papers.views.DepartmentView(**kwargs)[source]

Bases: django.views.generic.detail.DetailView

get_context_data(**kwargs)[source]
model

alias of Department

template_name = u'papers/department.html'
class papers.views.InstitutionView(**kwargs)[source]

Bases: publishers.views.SlugDetailView

get_context_data(**kwargs)[source]
model

alias of Institution

template_name = u'papers/institution.html'
view_name = u'institution'
class papers.views.InstitutionsMapView(**kwargs)[source]

Bases: django.views.generic.base.TemplateView

template_name = u'papers/institutions.html'
class papers.views.JournalPapersView(**kwargs)[source]

Bases: papers.views.PublisherPapersView

Displays the papers in a given journal.

published_by = u' in '
publisher_cls

alias of Journal

publisher_key = u'journal'
class papers.views.PaperSearchView(**kwargs)[source]

Bases: haystack.generic_views.SearchView

Displays a list of papers and a search form.

form_class

alias of PaperForm

get(request, *args, **kwargs)[source]
get_context_data(**kwargs)[source]
get_form_kwargs()[source]

We make sure the search is valid even if no parameter was passed, in which case we add a default empty query. Otherwise the search form is not bound and search fails.

paginate_by = 20
queryset = <SearchQuerySet: query=<search.SearchQuery object>, using=None>
raw_response(context, **kwargs)[source]
render_to_response(context, **kwargs)[source]
template_name = u'papers/search.html'
url_with_query_string(url=None, query_string=None)[source]

Returns the current URL with its query string.

Both the URL and the query string can be overriden.

class papers.views.PaperView(**kwargs)[source]

Bases: publishers.views.SlugDetailView

departments()[source]
get_context_data(**kwargs)[source]
get_object()[source]
model

alias of Paper

redirect(**kwargs)[source]
template_name = u'papers/paper.html'
view_name = u'paper'
class papers.views.PublisherPapersView(**kwargs)[source]

Bases: papers.views.PaperSearchView

Displays the papers of a given publisher.

PublisherPapersView is subclassed by JournalPapersView, which simply overrides a couple of variables.

get(request, *args, **kwargs)[source]
get_context_data(**kwargs)[source]
published_by = u' published by '
publisher_cls

alias of Publisher

publisher_key = u'publisher'
class papers.views.ResearcherView(**kwargs)[source]

Bases: papers.views.PaperSearchView

Displays the papers of a given researcher.

get(request, *args, **kwargs)[source]
get_context_data(**kwargs)[source]
raw_response(context, **kwargs)[source]
papers.views.fetch_on_orcid_login(sender, **kwargs)[source]
papers.views.index(request)[source]

View for the home page

papers.views.myProfileView(request, *args, **kwargs)[source]
papers.views.refetchResearcher(request, *args, **kwargs)[source]