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 AliasPublisher.MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

AliasPublisher.count

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

AliasPublisher.id

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

classmethod AliasPublisher.increment(name, publisher)[source]
AliasPublisher.name

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

AliasPublisher.objects = <django.db.models.manager.Manager object>
AliasPublisher.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.

AliasPublisher.publisher_id

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

AliasPublisher.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 Journal.MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

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

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

Journal.issn

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

Journal.last_updated

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

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

Journal.objects = <django.db.models.manager.Manager object>
Journal.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.

Journal.publisher_id

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

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

Journal.stats_id

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

Journal.title

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

Journal.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 Publisher.MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

Publisher.alias

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

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

Publisher.breadcrumbs()[source]
Publisher.canonical_url
Publisher.change_oa_status(new_oa_status)[source]
Publisher.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)..

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

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

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

Publisher.json()[source]

A JSON representation of the policy

Publisher.name

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

Publisher.oa_status

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

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

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

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

Publisher.pdfversion_conditions
Publisher.postprint

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

Publisher.postprint_conditions
Publisher.preprint

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

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

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

Publisher.romeo_id

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

Publisher.slug
Publisher.sorted_journals
Publisher.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.

Publisher.stats_id

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

Publisher.update_stats()[source]
Publisher.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 PublisherCondition.MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

PublisherCondition.id

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

PublisherCondition.objects = <django.db.models.manager.Manager object>
PublisherCondition.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.

PublisherCondition.publisher_id

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

PublisherCondition.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 PublisherCopyrightLink.MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

PublisherCopyrightLink.id

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

PublisherCopyrightLink.objects = <django.db.models.manager.Manager object>
PublisherCopyrightLink.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.

PublisherCopyrightLink.publisher_id

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

PublisherCopyrightLink.text

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

PublisherCopyrightLink.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 PublisherRestrictionDetail.MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

PublisherRestrictionDetail.applies_to

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

PublisherRestrictionDetail.id

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

PublisherRestrictionDetail.objects = <django.db.models.manager.Manager object>
PublisherRestrictionDetail.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.

PublisherRestrictionDetail.publisher_id

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

PublisherRestrictionDetail.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]