Bug 33347 - MARC preview broken when applying MARC modification template
Summary: MARC preview broken when applying MARC modification template
Status: RESOLVED DUPLICATE of bug 32631
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: 22.11
Hardware: All All
: P5 - low normal (vote)
Assignee: Aleisha Amohia
QA Contact: Testopia
URL:
Keywords:
Depends on: 29697
Blocks:
  Show dependency treegraph
 
Reported: 2023-03-27 22:13 UTC by Aleisha Amohia
Modified: 2023-03-28 09:24 UTC (History)
2 users (show)

See Also:
Change sponsored?: Sponsored
Patch complexity: Small patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Bug 33347: Fix MARC preview when applying modification template (1.53 KB, patch)
2023-03-27 22:19 UTC, Aleisha Amohia
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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 ***