When a staged MARC file is used to populate a basket in acquisitions, import_batches.import_status remains set to "staged" even though those records have been imported. To test: - Create a basket - Add to basket From a New File - Select a marc file and stage without checking for duplicates - Add titles to your basket - Confirm from acquisitions that new bibs were created - Go to manage-marc-import.pl and find your file - Confirm that you are still given an "Import this batch into the catalog" button - Query import_batches.import_status and confirm it shows "staged" We could set the status to the existing value of "imported" or could create a new status unique to acquisitions. See also bug 24469 about import_biblios.matched_biblionumber.
*** Bug 27174 has been marked as a duplicate of this bug. ***
Created attachment 114280 [details] [review] Bug 24470: Mark a batch as 'imported' if all the bib has been imported When a staged MARC file is used to populate a basket in acquisitions, the status of the batch is kept as "staged" until a user repeat the operation. The "imported" status is added to the batch when new orders are added to a basket "from a new file" (yes!...) Test plan: - Create a basket - Add to basket From a New File - Select a marc file and stage - Add titles to your basket Until all your records are imported the batch will have the status "staged" When all your records will be imported, the status of the batch will be "imported"
Created attachment 114825 [details] [review] Bug 24470: Mark a batch as 'imported' if all the bib has been imported When a staged MARC file is used to populate a basket in acquisitions, the status of the batch is kept as "staged" until a user repeat the operation. The "imported" status is added to the batch when new orders are added to a basket "from a new file" (yes!...) Test plan: - Create a basket - Add to basket From a New File - Select a marc file and stage - Add titles to your basket Until all your records are imported the batch will have the status "staged" When all your records will be imported, the status of the batch will be "imported" Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
Created attachment 114966 [details] [review] Bug 24470: Mark a batch as 'imported' if all the bib has been imported When a staged MARC file is used to populate a basket in acquisitions, the status of the batch is kept as "staged" until a user repeat the operation. The "imported" status is added to the batch when new orders are added to a basket "from a new file" (yes!...) Test plan: - Create a basket - Add to basket From a New File - Select a marc file and stage - Add titles to your basket Until all your records are imported the batch will have the status "staged" When all your records will be imported, the status of the batch will be "imported" Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
Created attachment 115009 [details] [review] Bug 24470: Mark a batch as 'imported' if all the bib has been imported When a staged MARC file is used to populate a basket in acquisitions, the status of the batch is kept as "staged" until a user repeat the operation. The "imported" status is added to the batch when new orders are added to a basket "from a new file" (yes!...) Test plan: - Create a basket - Add to basket From a New File - Select a marc file and stage - Add titles to your basket Until all your records are imported the batch will have the status "staged" When all your records will be imported, the status of the batch will be "imported" Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Add missing Signed-off-by line from QA.
Pushed to master for 21.05, thanks to everybody involved!
Pushed to 20.11.x for 20.11.02
Pushed to 20.05.x for 20.05.08
Not backported to oldoldstable (19.11.x). Feel free to ask if it's needed.