Ticket #1962 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Please add a language -reminder

Reported by: jukka Assigned to: anonymous
Priority: critical Milestone:
Component: generic Version:
Keywords: Cc:
Time spent: Time remaining: 0h
Time planned:

Description

There are too many resources with no language defined.

There should be similar alerts like in wikipedia (but automated) that this resource is lacking a language. We have these messages after operations, we should use these, but with another icon or a bit different coloring, to ask a viewer to add a language if one is missing.

Change History

02/03/10 18:49:59 changed by pjotr

That is possible out of the box

    plone_utils = getToolByName(self, 'plone_utils')
    plone_utils.addPotalMessage(u'This resource has not language specified.', type='warning')

This should display the message of orange color. The last possibility would be 'error', but that is not what is needed in this case.

One more possibility to do that would be to display the message on the view of the resource. Suppose those would be "/skins/lemill/base_view.pt" and "/skins/lemill/fullscreen_view.pt"

    <tal:iflearnres condition="showDraftMessage">
        <tal:ifmissingmetadata condition="showMissingMetadata">
            <div class="warningMessage" i18n:domain="lemill" i18n:translate="text_missing_metadata_message">
                This learning resource is missing some metadata. It might be a good idea to provide that.
           </div>
        </tal:ifmissingmetadata>
    </tal:iflearnres>

Depending on the situation we could show this one for owner/user with edit permission only. If we advance the community idea we could display message that would encourage a user to edit resource metadata and provide the missing values.

05/10/10 17:29:46 changed by jukka

  • status changed from new to closed.
  • resolution set to fixed.
  • tt_remaining set to 0h.

(In [3029]) Fixed #1962. Refactored messages that are based on properties of resources (deleted, draft, private, missing language) to come from a single source, getMessages-method and message_macros.pt. It should be easy to expand to add new suggestions.