When staging marc records you have the option to process or ignore items. If you choose to ignore you can change the option after staging, however, items are not processed unless they are parsed in initial staging To test: 0 - Check the count of import_items SELECT COUNT(*) FROM import_items; 1 - Import a marc file with items , process the items 2 - Check the count of import items, it has increased 3 - Stage the file again, do not process items 4 - Count of import_items has not increased 5 - Manage the stage batch, process items and reapply 6 - Check the count of import_items, no change 7 - Import the file, no items are processed
Created attachment 109434 [details] [review] Bug 26336: Disable 'Item processing' dropdown if no item If there is no item to process and they have been ignored during the stage step, we should not let the user modify the dropdown value Test plan: 0 - Check the count of import_items SELECT COUNT(*) FROM import_items; 1 - Import a marc file with items , process the items 2 - Check the count of import items, it has increased 3 - Stage the file again, do not process items 4 - Count of import_items has not increased 5 - Manage the stage batch Confirm that you cannot modify the "Item processing" value
Is that what you are looking for?
Created attachment 109445 [details] [review] Bug 26336: Add hint before and remove select after staging with no items
Created attachment 114052 [details] [review] Bug 26336: Disable 'Item processing' dropdown if no item If there is no item to process and they have been ignored during the stage step, we should not let the user modify the dropdown value Test plan: 0 - Check the count of import_items SELECT COUNT(*) FROM import_items; 1 - Import a marc file with items , process the items 2 - Check the count of import items, it has increased 3 - Stage the file again, do not process items 4 - Count of import_items has not increased 5 - Manage the stage batch Confirm that you cannot modify the "Item processing" value Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Created attachment 114053 [details] [review] Bug 26336: Add hint before and remove select after staging with no items Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Created attachment 114065 [details] [review] Bug 26336: Disable 'Item processing' dropdown if no item If there is no item to process and they have been ignored during the stage step, we should not let the user modify the dropdown value Test plan: 0 - Check the count of import_items SELECT COUNT(*) FROM import_items; 1 - Import a marc file with items , process the items 2 - Check the count of import items, it has increased 3 - Stage the file again, do not process items 4 - Count of import_items has not increased 5 - Manage the stage batch Confirm that you cannot modify the "Item processing" value Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Created attachment 114066 [details] [review] Bug 26336: Add hint before and remove select after staging with no items Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Pushed to master for 20.05, thanks to everybody involved!
Pushed to 20.11.x for 20.11.01
Pushed to master for 21.05, thanks to everybody involved!
Pushed to 20.05.x for 20.05.07
Not backported to oldoldstable (19.11.x). Feel free to ask if it's needed.