Пример #1
0
    atapi.StringField(
        'editor',
        schemata="reviewed_text",
        storage=atapi.AnnotationStorage(),
        widget=atapi.StringWidget(
            label=_(u"Editor (name or institution)"),
            ),
        ),
))

ReviewJournalSchema['title'].storage = atapi.AnnotationStorage()

ReviewJournalSchema['title'].widget.label = _(u"Title (journal)")
ReviewJournalSchema['subtitle'].widget.visible={
    "view":"hidden", "edit":"hidden"}
finalize_recensio_schema(ReviewJournalSchema)

class ReviewJournal(BaseReview):
    """Review Journal"""
    implements(IReviewJournal)

    meta_type = "ReviewJournal"
    schema = ReviewJournalSchema
    title = atapi.ATFieldProperty('title')
    # Journal = Printed
    # Printed = Common +
    # Common = Base +

    # Base
    reviewAuthors = atapi.ATFieldProperty('reviewAuthors')
    languageReview = atapi.ATFieldProperty(
    default=(
        u"Which scholarly author's work have you mainly engaged with in "
        "your article? Please give us the most detailed information "
        "possible on the »contemporary« names amongst them as "
        "the recensio.net editorial team will usually try to inform these "
        "authors of the existence of your article, your presentation, "
        "and the chance to comment on it. Only the reference author's "
        "name will be visible to the public. Please name historical "
        "reference authors (e.g. Aristotle, Charles de Gaulle) further "
        "below as subject heading."
    ),
)

PresentationArticleReviewSchema["canonical_uri"].widget.visible = {"edit": "invisible", "view": "invisible"}

finalize_recensio_schema(PresentationArticleReviewSchema, review_type="presentation_article_review")


class PresentationArticleReview(BaseReview):
    """Presentation Article Review"""

    implements(IPresentationArticleReview)

    meta_type = "PresentationArticleReview"
    schema = PresentationArticleReviewSchema

    title = atapi.ATFieldProperty("title")
    description = atapi.ATFieldProperty("description")
    # Journal = Printed + Authors +
    # Printed = Common +
    # Common = Base +
PresentationMonographSchema["referenceAuthors"].widget.description = _(
    u'description_reference_authors',
    default=(u"Which scholarly author's work have you mainly engaged with in "
             "your monograph? Please give us the most detailed information "
             "possible on the »contemporary« names amongst them as "
             "the recensio.net editorial team will usually try to inform these "
             "authors of the existence of your monograph, your presentation, "
             "and the chance to comment on it. Only the reference author's "
             "name will be visible to the public. Please name historical "
             "reference authors (e.g. Aristotle, Charles de Gaulle) further "
             "below as subject heading.")
    )

PresentationMonographSchema["canonical_uri"].widget.visible = {'edit': 'invisible', 'view': 'invisible'}

finalize_recensio_schema(PresentationMonographSchema,
                         review_type="presentation")


class PresentationMonograph(BaseReview):
    """Presentation Monograph"""
    implements(IPresentationMonograph)

    metadata_type = "PresentationMonograph"
    schema = PresentationMonographSchema

    title = atapi.ATFieldProperty('title')
    description = atapi.ATFieldProperty('description')
    # Book = Printed + Authors +
    # Printed = Common +
    # Common = Base +

ReviewMonographSchema = (
    BookReviewSchema.copy()
    + CoverPictureSchema.copy()
    + EditorialSchema.copy()
    + PageStartEndInPDFSchema.copy()
    + PageStartEndOfReviewInJournalSchema.copy()
    + PagecountSchema.copy()
    + ReviewSchema.copy()
    + SerialSchema.copy()
)

ReviewMonographSchema["title"].storage = atapi.AnnotationStorage()
ReviewMonographSchema["yearOfPublication"].required = True
finalize_recensio_schema(ReviewMonographSchema)


class ReviewMonograph(BaseReview):
    """Review Monograph"""

    implements(IReviewMonograph)

    meta_type = "ReviewMonograph"
    schema = ReviewMonographSchema

    title = atapi.ATFieldProperty("title")
    description = atapi.ATFieldProperty("description")
    # Book = Printed + Authors +
    # Printed = Common +
    # Common = Base +
    u'description_presentation_online_resource_review',
    default=(u"What does the online resource provide? Please outline briefly "
             "and clearly what kind of contents and services the online "
             "resource you are presenting has got to offer. You can increase "
             "the number of characters available for your own presentation "
             "from 2000 to 3000 by commenting on an already existing "
             "review/presentation on recensio.net. Please note that both "
             "comments and presentations will be checked by the editorial "
             "team before being published in order to prevent misuse. "
             "Because of this texts will be availabe online at the earliest "
             "after three working days. ")
    )

PresentationOnlineResourceSchema["canonical_uri"].widget.visible = {'edit': 'invisible', 'view': 'invisible'}

finalize_recensio_schema(PresentationOnlineResourceSchema,
                         review_type="presentation_online")


class PresentationOnlineResource(BaseReview):
    """Presentation Online Resource"""
    implements(IPresentationOnlineResource)

    meta_type = "PresentationOnlineResource"
    schema = PresentationOnlineResourceSchema

    title = atapi.ATFieldProperty('title')
    # Common = Base +

    # Base
    reviewAuthorHonorific = atapi.ATFieldProperty('reviewAuthorHonorific')
    reviewAuthors = atapi.ATFieldProperty('reviewAuthors')
PresentationCollectionSchema["referenceAuthors"].widget.description = _(
    u'description_reference_authors',
    default=(u"Which scholarly author's work have you mainly engaged with in "
             "your article? Please give us the most detailed information "
             "possible on the »contemporary« names amongst them as "
             "the recensio.net editorial team will usually try to inform these "
             "authors of the existence of your article, your presentation, "
             "and the chance to comment on it. Only the reference author's "
             "name will be visible to the public. Please name historical "
             "reference authors (e.g. Aristotle, Charles de Gaulle) further "
             "below as subject heading.")
    )

PresentationCollectionSchema["canonical_uri"].widget.visible = {'edit': 'invisible', 'view': 'invisible'}

finalize_recensio_schema(PresentationCollectionSchema,
                         review_type="presentation_collection")

class PresentationCollection(BaseReview):
    """Presentation Collection"""
    implements(IPresentationCollection)

    meta_type = "PresentationCollection"
    schema = PresentationCollectionSchema

    title = atapi.ATFieldProperty('title')
    description = atapi.ATFieldProperty('description')
    # Book = Printed + Authors +
    # Printed = Common +
    # Common = Base +

    # Base