journals.models.publication module

class journals.models.publication.PublicationAuthorsTable(*args, **kwargs)[source]

Bases: django.db.models.base.Model

PublicationAuthorsTable represents an author of a Publication.

Fields:

  • publication

  • profile

  • affiliations: for this author/Publication (supersede profile.affiliations)

  • order: the ordinal position of this author in this Publication’s list of authors.

publication

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

profile

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

affiliations

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

order

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

save(*args, **kwargs)[source]

Auto increment order number if not explicitly set.

property is_registered

Check if author is registered at SciPost.

property first_name

Return first name of author.

property last_name

Return last name of author.

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
profile_id
publication_id
class journals.models.publication.Publication(*args, **kwargs)[source]

Bases: django.db.models.base.Model

A Publication is an object directly related to an accepted Submission.

It contains metadata, the actual publication file, author data, etc. etc. It may be directly related to a Journal or to an Issue.

accepted_submission

Accessor to the related object on the forward side of a one-to-one relation.

In the example:

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

in_issue

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

in_journal

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

paper_nr

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

status

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

title

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

author_list

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

abstract

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

abstract_jats

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

pdf_file

The descriptor for the file attribute on the model instance. Return a FieldFile when accessed so you can write code like:

>>> from myapp.models import MyModel
>>> instance = MyModel.objects.get(pk=1)
>>> instance.file.size

Assign a file object on assignment so you can do:

>>> with open('/path/to/hello.world') as f:
...     instance.file = File(f)
acad_field

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

specialties

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

topics

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

approaches

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

cc_license

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

grants

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

funders_generic

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

pubfractions_confirmed_by_authors

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

metadata

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

metadata_xml

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

metadata_DOAJ

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

doi_label

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

BiBTeX_entry

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

doideposit_needs_updating

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

citedby

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

number_of_citations

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

submission_date

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

acceptance_date

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

publication_date

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

latest_citedby_update

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

latest_metadata_update

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

latest_activity

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

cf_citation

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

cf_author_affiliation_indices_list

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.ManagerFromPublicationQuerySet object>
clean()[source]

Check if either a valid Journal or Issue is assigned to the Publication.

get_absolute_url()[source]
get_all_affiliations()[source]

Returns all author affiliations.

get_author_affiliation_indices_list()[source]

Return a list containing for each author an ordered list of affiliation indices.

This is for display on the publication detail page, and is a calculated field (saved in the model) to avoid unnecessary db queries (problematic for papers with large number of authors).

get_organizations()[source]

Returns a queryset of all Organizations which are associated to this Publication, through being in author affiliations, funders or generic funders.

property doi_string
property is_draft
property is_published
property has_abstract_jats
property has_xml_metadata
property has_bibtex_entry
property has_citation_list
property has_funding_statement
property pubfractions_sum_to_1

Checks that the support fractions sum up to one.

property citation
get_cc_license_URI()[source]
get_all_funders()[source]
get_journal()[source]
journal_issn()[source]
get_volume()[source]
get_paper_nr()[source]
citation_rate()[source]

Returns the citation rate in units of nr citations per article per year.

Return 4 Publications within same Issue.

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

acad_field_id
accepted_submission_id
authors

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

citationnotification_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

collection_set

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

collectionpublicationstable_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

commentary

Accessor to the related object on the reverse side of a one-to-one relation.

In the example:

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Place.restaurant is a ReverseOneToOneDescriptor instance.

deposit_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

doajdeposit_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

get_cc_license_display(*, field=<django.db.models.fields.CharField: cc_license>)
get_next_by_acceptance_date(*, field=<django.db.models.fields.DateField: acceptance_date>, is_next=True, **kwargs)
get_next_by_latest_activity(*, field=<django.db.models.fields.DateTimeField: latest_activity>, is_next=True, **kwargs)
get_next_by_publication_date(*, field=<django.db.models.fields.DateField: publication_date>, is_next=True, **kwargs)
get_next_by_submission_date(*, field=<django.db.models.fields.DateField: submission_date>, is_next=True, **kwargs)
get_previous_by_acceptance_date(*, field=<django.db.models.fields.DateField: acceptance_date>, is_next=False, **kwargs)
get_previous_by_latest_activity(*, field=<django.db.models.fields.DateTimeField: latest_activity>, is_next=False, **kwargs)
get_previous_by_publication_date(*, field=<django.db.models.fields.DateField: publication_date>, is_next=False, **kwargs)
get_previous_by_submission_date(*, field=<django.db.models.fields.DateField: submission_date>, is_next=False, **kwargs)
get_status_display(*, field=<django.db.models.fields.CharField: status>)
id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

in_issue_id
in_journal_id
pubfractions

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

references

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

registrationinvitation_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

updates

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

class journals.models.publication.Reference(*args, **kwargs)[source]

Bases: django.db.models.base.Model

A Refence is a reference used in a specific Publication.

reference_number

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

publication

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

authors

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

citation

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

identifier

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
publication_id
class journals.models.publication.OrgPubFraction(*args, **kwargs)[source]

Bases: django.db.models.base.Model

Associates a fraction of the funding credit for a given publication to an Organization, to help answer the question: who funded this research?

Fractions for a given publication should sum up to one.

This data is used to compile publicly-displayed information on Organizations as well as to set suggested contributions from Partners.

To be set (ideally) during production phase, based on information provided by the authors.

organization

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

publication

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

fraction

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
organization_id
publication_id