Bug 25498: Add a transfer form for public lists
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 10 Jun 2022 08:26:16 +0000 (08:26 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 19 Jul 2022 14:25:23 +0000 (11:25 -0300)
commit92e7bcf7510a9d63998ca3f9371fcc00cca12e17
tree8a8130fb30a0226c9b46f78fb78bbcb18f44ff85
parentad83180fb071bfb3f1c3d9c223e455a19ca81adb
Bug 25498: Add a transfer form for public lists

Test plan:
[1] Valid transfer:
    Log in with staff patron C having edit_public_lists.
    Pick a public list. Choose Transfer. Select a patron.
    Submit and check if transfer was successful.
[2] Permission problem:
    Pick a staff user D. Temporary enable edit_public_lists.
    Add another private tab. Login with D.
    Pick a public list. Transfer. Choose another patron. Wait.
    Switch tab: remove added permission from D.
    Switch tab again: Submit transfer form. Error? Close tab.
[3] Bonus test - Shelf disappeared:
    Pick a public list. Transfer. Choose another patron. Wait.
    Open another tab. Delete the selected public list.
    Close tab. Submit the transfer. Not exist error?
[4] Bonus test - Patron not found:
    Pick a public list. Transfer. Choose another patron. Wait.
    Open another tab. Delete selected patron.
    Close tab. Submit transfer. Patron not found error?

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt
virtualshelves/shelves.pl