Bug 33347

Summary: MARC preview broken when applying MARC modification template
Product: Koha Reporter: Aleisha Amohia <aleisha>
Component: CatalogingAssignee: Aleisha Amohia <aleisha>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: jonathan.druart, m.de.rooy
Version: 22.11   
Hardware: All   
OS: All   
Change sponsored?: Sponsored Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 29697    
Bug Blocks:    
Attachments: Bug 33347: Fix MARC preview when applying modification template

Description Aleisha Amohia 2023-03-27 22:13:55 UTC
To reproduce:

1. Create a simple MARC modification template and action (tool now found under Cataloguing)
2. Go to Batch record modification
3. Enter a biblionumber and select your template
4. Click the Show MARC button to preview your changes
5. Notice there is an error in the plack log and the preview never loads
Comment 1 Aleisha Amohia 2023-03-27 22:19:02 UTC
Created attachment 148788 [details] [review]
Bug 33347: Fix MARC preview when applying modification template

A previous fix to use $biblio->metadata->record accidentally broke the MARC preview when applying a MARC modification template. This patch makes sure the record is correctly fetched.

To test:

1. Create a simple MARC modification template and action (tool now found under Cataloguing)
2. Go to Batch record modification
3. Enter a biblionumber and select your template
4. Click the Show MARC button to preview your changes
5. Notice there is an error in the plack log and the preview never loads
6. Apply the patch and refresh the page
7. Click the Show MARC button to preview your changes
8. Confirm the MARC preview successfully loads

Sponsored-by: Education Services Australia SCIS
Comment 2 Jonathan Druart 2023-03-28 09:24:10 UTC

*** This bug has been marked as a duplicate of bug 32631 ***