Bug 32237: Fix using a list as base for batch record deletion

When a list was used to select records for batch deletion, the
record IDs were no longer found.

To test:

1. Go to Lists in the intranet.
2. Add a list by clicking on "New list". Choose a random name for it and select private or public and save.
3.Add one or more items into it and save.
4.Go back to the main page and select "Cataloging".
5.Go to "Batch record deletion".
6.In "upload a file" select "Select a list of records" and choose a list and keep the Bibliographic on.
7.Select continue and see that the list of records is not shown.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Géraud Frappier 2022-11-16 16:54:41 -05:00 committed by Tomas Cohen Arazi
parent 726ad7404c
commit dc08b53376
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -351,7 +351,7 @@
}); });
$("#record_ids_selection").on("submit", function(e){ $("#record_ids_selection").on("submit", function(e){
var tab = $(this).find('.ui-tabs-active:first a').attr('href'); var tab = $(this).find('#batch_del_form:active:first a').attr('href');
if ( tab == '#uploadfile_tab' ) { if ( tab == '#uploadfile_tab' ) {
$("#shelf_number").empty(''); $("#shelf_number").empty('');
$("#recordnumber_list").val(''); $("#recordnumber_list").val('');