]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP1735566: Ask before deleting items in non-ideal statuses in AngularJS user/rogan/lp1735566_non_ideal_status_for_deleting_signoff
authorJane Sandberg <sandbej@linnbenton.edu>
Thu, 17 Oct 2019 18:11:34 +0000 (11:11 -0700)
committerRogan Hamby <rogan.hamby@gmail.com>
Fri, 10 Jan 2020 18:19:16 +0000 (13:19 -0500)
commit2e26ff6cbf4cbd0861b5477dc2f55bade18f304e
tree8867bfeb9e877533bd6823cbc6c7d0d1b03b13b2
parent83a5d21c5eee9611d8882557bf737f7e2cea21f0
LP1735566: Ask before deleting items in non-ideal statuses in AngularJS

To test:

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.

Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Rogan Hamby <rogan.hamby@gmail.com>
Open-ILS/src/templates/staff/cat/catalog/index.tt2
Open-ILS/src/templates/staff/circ/share/circ_strings.tt2
Open-ILS/web/js/ui/default/staff/cat/catalog/app.js
Open-ILS/web/js/ui/default/staff/circ/services/item.js