Summary: | Saving an authority record as MADS (XML) fails | ||
---|---|---|---|
Product: | Koha | Reporter: | Phil Ringnalda <phil> |
Component: | MARC Authority data support | Assignee: | Phil Ringnalda <phil> |
Status: | Needs documenting --- | QA Contact: | Pedro Amorim <pedro.amorim> |
Severity: | normal | ||
Priority: | P5 - low | CC: | david, dcook, fridolin.somers, lucas, pedro.amorim |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: |
This fixes the saving of authority records in MADS format in the staff interface (Authorities > search results > authority details > Save > MADS (XML)). Before this fix, the downloaded records had a zero file size and were empty.
|
Version(s) released in: |
24.11.00,24.05.06
|
Circulation function: | |||
Bug Depends on: | 37235, 23290 | ||
Bug Blocks: | |||
Attachments: |
Bug 37252: Use our local copy of MARC21slimUtils.xsl in MARC21slim2MADS.xsl
Bug 37252: Use our local copy of MARC21slimUtils.xsl in MARC21slim2MADS.xsl Bug 37252: Use our local copy of MARC21slimUtils.xsl in MARC21slim2MADS.xsl |
Description
Phil Ringnalda
2024-07-03 21:18:01 UTC
Created attachment 168479 [details] [review] Bug 37252: Use our local copy of MARC21slimUtils.xsl in MARC21slim2MADS.xsl Our local copy of the Library of Congress stylesheet MARC21slim2MADS.xsl is our only one which includes MARC21slimUtils.xsl directly from the Library of Congress rather than including our local copy. That makes it a fragile canary for whatever reason that it currently isn't loading, but because it's not exactly the most popular menu choice in all of Koha, it's far from being one that anyone will notice. We should instead include our local copy, make the bug 29556 change to MARC21slim2MADS.xsl, and if someone wants to notice when including xsl from LoC fails, they should write a test for it rather than depend on someone noticing that saving authority records as MADS fails. Test plan: 1. Without the patch, Authorities - search for Smith - click the linked name of any result to show authorities/detail.pl 2. Save - MADS (XML) 3. Check your downloaded file, see that it is zero bytes 4. Apply patch, restart_all 5. Repeat step 2, but this time find that your downloaded file is more than zero bytes. Created attachment 168485 [details] [review] Bug 37252: Use our local copy of MARC21slimUtils.xsl in MARC21slim2MADS.xsl Our local copy of the Library of Congress stylesheet MARC21slim2MADS.xsl is our only one which includes MARC21slimUtils.xsl directly from the Library of Congress rather than including our local copy. That makes it a fragile canary for whatever reason that it currently isn't loading, but because it's not exactly the most popular menu choice in all of Koha, it's far from being one that anyone will notice. We should instead include our local copy, make the bug 29556 change to MARC21slim2MADS.xsl, and if someone wants to notice when including xsl from LoC fails, they should write a test for it rather than depend on someone noticing that saving authority records as MADS fails. Test plan: 1. Without the patch, Authorities - search for Smith - click the linked name of any result to show authorities/detail.pl 2. Save - MADS (XML) 3. Check your downloaded file, see that it is zero bytes 4. Apply patch, restart_all 5. Repeat step 2, but this time find that your downloaded file is more than zero bytes. Signed-off-by: David Nind <david@davidnind.com> Testing notes (using KTD): 1. Before working through the test plan, apply bug 37235. Otherwise, you will get a 500 error for steps 2 and 3 of the test plan. 2. When applying the patch, say n (for no) to not apply the dependent patch. Created attachment 168555 [details] [review] Bug 37252: Use our local copy of MARC21slimUtils.xsl in MARC21slim2MADS.xsl Our local copy of the Library of Congress stylesheet MARC21slim2MADS.xsl is our only one which includes MARC21slimUtils.xsl directly from the Library of Congress rather than including our local copy. That makes it a fragile canary for whatever reason that it currently isn't loading, but because it's not exactly the most popular menu choice in all of Koha, it's far from being one that anyone will notice. We should instead include our local copy, make the bug 29556 change to MARC21slim2MADS.xsl, and if someone wants to notice when including xsl from LoC fails, they should write a test for it rather than depend on someone noticing that saving authority records as MADS fails. Test plan: 1. Without the patch, Authorities - search for Smith - click the linked name of any result to show authorities/detail.pl 2. Save - MADS (XML) 3. Check your downloaded file, see that it is zero bytes 4. Apply patch, restart_all 5. Repeat step 2, but this time find that your downloaded file is more than zero bytes. Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com> I think the reason why the include of an external stylesheet would've failed would be due to the security added by bug 23290. Pushed for 24.11! Well done everyone, thank you! Backported to 24.05.x for upcoming 24.05.06 |