publishers.models module

class publishers.models.AliasPublisher(id, publisher, name, count)[source]

Bases: django.db.models.base.Model

Parameters:
  • id (AutoField) – Id
  • publisher_id (ForeignKey) – Publisher
  • name (CharField) – Name
  • count (IntegerField) – Count
exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

count

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

id

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

classmethod increment(name, publisher)[source]
name

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>
publisher

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

In the example:

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

child.parent is a ForwardManyToOneDescriptor instance.

publisher_id

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

unique_together = (u'name', u'publisher')
class publishers.models.DummyPublisher(name=None)[source]

Bases: object

Class representing an “unknown” publisher, which means a publisher with a name that did not return anything from SHERPA/RoMEO

pdfversion = u'unknown'
pdfversion_conditions = []
pk = None
postprint = u'unknown'
postprint_conditions = []
preprint = u'unknown'
preprint_conditions = []
class publishers.models.Journal(id, title, last_updated, issn, publisher, stats)[source]

Bases: django.db.models.base.Model

Parameters:
  • id (AutoField) – Id
  • title (CharField) – Title
  • last_updated (DateTimeField) – Last updated
  • issn (CharField) – Issn
  • publisher_id (ForeignKey) – Publisher
  • stats_id (ForeignKey) – Stats
exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

breadcrumbs()[source]
get_next_by_last_updated(*moreargs, **morekwargs)
get_previous_by_last_updated(*moreargs, **morekwargs)
id

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

issn

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

last_updated

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

oairecord_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.

objects = <django.db.models.manager.Manager object>
publisher

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

In the example:

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

child.parent is a ForwardManyToOneDescriptor instance.

publisher_id

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

stats

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

In the example:

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

child.parent is a ForwardManyToOneDescriptor instance.

stats_id

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.

update_stats()[source]
class publishers.models.Publisher(*args, **kwargs)[source]

Bases: django.db.models.base.Model

A publisher, as represented by SHERPA/RoMEO

Parameters:
  • id (AutoField) – Id
  • romeo_id (CharField) – Romeo id
  • name (CharField) – Name
  • alias (CharField) – Alias
  • url (URLField) – Url
  • preprint (CharField) – Preprint
  • postprint (CharField) – Postprint
  • pdfversion (CharField) – Pdfversion
  • oa_status (CharField) – Oa status
  • stats_id (ForeignKey) – Stats
exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

alias

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

aliaspublisher_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.

breadcrumbs()[source]
canonical_url
change_oa_status(new_oa_status)[source]
classify_oa_status()[source]

Classify the publisher status into one of “OA” (gold open access), “OK” (self-archiving permitted for some version), “NOK” (self-archiving not allowed), “UNK” (unknown or unclear policy)..

conditions
get_oa_status_display(*moreargs, **morekwargs)
get_pdfversion_display(*moreargs, **morekwargs)
get_postprint_display(*moreargs, **morekwargs)
get_preprint_display(*moreargs, **morekwargs)
has_conditions
id

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

journal_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.

json()[source]

A JSON representation of the policy

name

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

oa_status

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

oairecord_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.

objects = <django.db.models.manager.Manager object>
pdfversion

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

pdfversion_conditions
postprint

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

postprint_conditions
preprint

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

preprint_conditions
publi_count
publishercondition_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.

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.

publisherrestrictiondetail_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.

romeo_id

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

slug
sorted_journals
stats

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

In the example:

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

child.parent is a ForwardManyToOneDescriptor instance.

stats_id

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

update_stats()[source]
url

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

class publishers.models.PublisherCondition(id, publisher, text)[source]

Bases: django.db.models.base.Model

Parameters:
  • id (AutoField) – Id
  • publisher_id (ForeignKey) – Publisher
  • text (CharField) – Text
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>
publisher

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

In the example:

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

child.parent is a ForwardManyToOneDescriptor instance.

publisher_id

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

text

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

Bases: django.db.models.base.Model

Parameters:
  • id (AutoField) – Id
  • publisher_id (ForeignKey) – Publisher
  • text (CharField) – Text
  • url (URLField) – Url
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>
publisher

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

In the example:

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

child.parent is a ForwardManyToOneDescriptor instance.

publisher_id

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

text

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

url

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

class publishers.models.PublisherRestrictionDetail(id, publisher, text, applies_to)[source]

Bases: django.db.models.base.Model

Parameters:
  • id (AutoField) – Id
  • publisher_id (ForeignKey) – Publisher
  • text (CharField) – Text
  • applies_to (CharField) – Applies to
exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

applies_to

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

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>
publisher

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

In the example:

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

child.parent is a ForwardManyToOneDescriptor instance.

publisher_id

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

text

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

publishers.models.publishers_breadcrumbs()[source]