Comment 4 for bug 1735566

Revision history for this message
Jane Sandberg (sandbergja) wrote :

Here is a branch that resolves this for AngularJS (note that the Angular experimental catalog will also need a similar fix): user/sandbergja/lp1735566_delete_copy_not_ideal_status

Here is a link: https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/sandbergja/lp1735566_delete_copy_not_ideal_status

And here are the testing notes from the commit message:

1) Apply this commit.
2) Log in as a user with COPY_DELETE_WARNING.override permission.
3) Go to item status and scan an item in a non-ideal status (like #1:
checked out)
4) Delete the item. Note that you are alerted of the item's non-ideal
status, and you can confirm that you actually want to delete it.
5) Repeat steps 3-4 with an item in an ideal status (like #0:
Available). Note that no such alert appears.
6) Open the holdings view and repeat steps 4-5.
7) Log in as a user without the COPY_DELETE_WARNING.override
permission. Note that you are still informed about the non-ideal status,
but you aren't able to continue with the deletion without an admin
using their credentials.