When searching existing records in order to add to an order, "View MARC" link on the results list should trigger a preview in a Bootstrap modal instead of a Greybox modal.
Created attachment 45446 [details] [review] Bug 15320 - Use Bootstrap modal for MARC preview when ordering from an existing record In order to reduce the number of dependencies for common interactions we should attempt to use Bootstrap modals in place of Greybox ones. This patch modifies the page in Acquisitions for ordering from an existing record so that the "View MARC" preview is displayed in Bootstrap modals. To test: 1. Apply the patch and navigate to Acquisitions. 2. Locate an exsiting basket or create a new one. 3. Add to the basket using the option to search for an existing record. 4. Perform any search which will return results. 5. Test the "View MARC" link for multiple results and confirm that the correct data is shown each time.
Created attachment 45453 [details] [review] Bug 15320 - Use Bootstrap modal for MARC preview when ordering from an existing record In order to reduce the number of dependencies for common interactions we should attempt to use Bootstrap modals in place of Greybox ones. This patch modifies the page in Acquisitions for ordering from an existing record so that the "View MARC" preview is displayed in Bootstrap modals. To test: 1. Apply the patch and navigate to Acquisitions. 2. Locate an exsiting basket or create a new one. 3. Add to the basket using the option to search for an existing record. 4. Perform any search which will return results. 5. Test the "View MARC" link for multiple results and confirm that the correct data is shown each time. Signed-off-by: Marc Véron <veron@veron.ch>
Created attachment 45587 [details] [review] Bug 15320 - Use Bootstrap modal for MARC preview when ordering from an existing record In order to reduce the number of dependencies for common interactions we should attempt to use Bootstrap modals in place of Greybox ones. This patch modifies the page in Acquisitions for ordering from an existing record so that the "View MARC" preview is displayed in Bootstrap modals. To test: 1. Apply the patch and navigate to Acquisitions. 2. Locate an exsiting basket or create a new one. 3. Add to the basket using the option to search for an existing record. 4. Perform any search which will return results. 5. Test the "View MARC" link for multiple results and confirm that the correct data is shown each time. Signed-off-by: Marc Véron <veron@veron.ch> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Suggestions: - ESC should close the modal - Use a alt="loading..." for the loading image.
Pushed to master, thanks Owen!
Switching severity to 'enhancement' as the patch does not fix any bug