Pkp-lib: Allow publications to be "unpublished"

Created on 5 Sep 2019  路  8Comments  路  Source: pkp/pkp-lib

Once a publication has been published, it can not be edited. However, it may be necessary under certain circumstances to "unpublish" a publication. In other cases, editors may choose to make changes to an existing publication's entry without creating a new version, such as when data like section, category or other small typos are made and fixed shortly after publication.

For this reason, once a publication is published, an "Unpublish" button should appear next to "Create New Version" which allows this publication to be unpublished. This button should have the warning color assigned (<button :isWarning="true">).

An API endpoint already exists for this: PUT /submissions/{submissionId}/publications/{publicationId}/unpublish.

Acceptance Criteria

  • [x] After publishing a version, a button appears that says "Unpublish". When I click on it, the version is removed from publication.
  • [x] If a submission has several versions published, I can unpublish any of them and this version is removed from the list of versions shown on the article landing page.
  • [x] After unpublishing a version, I can edit it and publish it again.

All 8 comments

Merged

I noticed that when I tried to Unpublish both one is "Unpublished" but the other is just "Unscheduled" -- is this because there is currently no one publication that is published? @NateWr

Screen Shot 2019-12-12 at 21 16 54

Thanks, that's a good spot. It's working as it's designed to, but could still be confusing. I've filed it separately in #5347.

Yup all passed @NateWr

@NateWr

hi Nate,

Just to confirm, this also works in OMP.

@NateWr Fantastic, we need this unpublish option also. Currently we create a future issue that is never published and move the published submissions to this issue. When is the release of OJS 3.2 scheduled?

:edit

Ok, nevermind, i have found the milestones page where the due date is displayed.

Thanks @withanage!

@ViRuSTriNiTy 3.2 will introduce some big changes with versioning. We appreciate any testing you can do on the current master branch to help us make this release as smooth as possible.

Was this page helpful?
0 / 5 - 0 ratings