https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20678
--- Comment #3 from Alex Buckley <[email protected]> --- Created attachment 74928 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=74928&action=edit Bug 20678 : Added removal of biblio from reservoir after saving to catalog Added new subroutine DeleteBiblioInBatch() and internal subroutine _delete_import_record_marc() (which is called by the DeleteBiblioInBatch() subroutine) in the C4/ImportBatches.pm file. If addbiblio.pl webpage has breedingid defined in the URL this means the biblio being edited currently exists as a draft in the reservoir. And so when a save option except for 'Save without catalog' is clicked this means the biblio is committed to the catalog and DeleteBiblioInBatch() is called to remove the biblio from the reservoir. Test plan: 1. Go to Cataloging->New record 2. After inputting the record data select 'Save without cataloging' 3. Perform a catalog search with the title of the biblio you just created 4. Notice the draft biblio you created is returned in the 'Biblios in reservoir' search results 5. Select Actions->Continue editing draft record 6. Perform the following database queries: 6a. SELECT * FROM biblio WHERE title='<title of draft biblio'; - This will return no records as the record is still a draft and has not been committed to catalog 6b. SELECT * FROM import_biblios WHERE title='<title of draft biblio>'; - This will return the biblio record as it has been saved to reservoir. Note down the import_record_id to use in 6c. 6c. SELECT * FROM import_records WHERE import_record_id = <id number>; - This will return a record as the biblio has been saved to the reservoir 7. Open a new tab and go to Tools->Manage staged MARC records and select the 'Draft records' tab and notice the draft biblio you just created is displayed in the table of draft records in the reservoir 8. Back in your first tab select the 'Save and view record' 9. Now perform the database queries 6a, 6b and 6c and notice the biblio record is returned for 6a as the MARC record has been committed to the catalog, and no records are returned for 6b and 6c because the biblio has been removed from the reservoir 10. In the second tab refresh the page and notice the biblio that you just committed to the catalog is not displayed in the draft records tab Sponsored-By: Toi Ohomai Institute of Technology -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
