Allow work creators to turn off commenting

Description

  • The Archive currently offers two options to restrict commenting on works: the "Disable anonymous comments" option and the "Enable comment moderation" option. These options are offered on the new/edit work page and on the edit multiple works page. They are not on the import work page.

We would like to add a third option that will allow users to disable comments entirely. This will require modifying the display of the current options.

  • Only the work creator(s), not admins, can modify a work’s comment settings.

  • When the creator(s) turns comments off, the comment form will be removed and replace with a blue notice that says, “Sorry, this work doesn’t allow comments.” This corresponds with what non-users see when anonymous comments are turned off.

  • If the work has comments, and the creator(s) turns comments off, the comments will remain visible. This corresponds with the behavior of existing anonymous comments when anonymous comments are turned off.

  • If you are composing a comment on a work and the creator disables comments before you submit yours, the comment will be discarded, and you will be given the error message, “Sorry, this work doesn’t allow comments.” Again, this will be consistent with what happens if anonymous comments are disabled in similar circumstances. In the future, for both instances, we can work out a way to include the text in an error message in case the user wants to preserve their comment.

Appearance of comment options on the new/edit work page

  • In the “Privacy” fieldset, the existing “Disable anonymous comments checkbox” should be removed, as should its help pop-up.

  • Below the remaining options should be a section with all the comment options. The section should be called “Who can comment on this work,” and it should have a help pop-up link that will describe the behavior of the options.

    • Text for the help pop-up will be added to this issue soon.

  • The comment options should be presented as a list of three radio buttons in a fieldset, in the following order and with the following names: “Registered users and guests can comment,” which should be preselected; “Only registered users can comment;” and “No one can comment.”

Appearance of comment options on the edit multiple works page

  • In the last fieldset, the existing “Anonymous Commenting” section should be removed, as should its help pop-up (which is the same pop-up from the new/edit work page).

  • Below the remaining options should be a section with all the comment options. The section should be called “Who can comment on these works,” and it should have a help pop-up link that will describe the behavior of the options.

    • Text for the help pop-up will be added to this issue soon. It will most likely be the same pop-up from the new/edit work page.

  • The comment options should be presented as a list of four radio buttons, in the following order and with the following names: “Keep current comment settings,” which should be preselected; “Registered users and guests can comment;” “Only registered users can comment;” and “No one can comment.”

Environment

None

Assignee

Unassigned

Reporter

Sarken

Roadmap

Comments
Works

Priority

Medium

Affects versions

Fix versions

None

Components

BackEnd
FrontEnd

Difficulty

Medium

Required Access Level

None

Milestone

Internal 0.9
Configure