Summary: | XSLT parse on record directly breaks OPAC display | ||
---|---|---|---|
Product: | Koha | Reporter: | Thibaud Guillot (thibaud_g) <thibaud.guillot> |
Component: | Cataloging | Assignee: | Thibaud Guillot (thibaud_g) <thibaud.guillot> |
Status: | RESOLVED FIXED | QA Contact: | Marcel de Rooy <m.de.rooy> |
Severity: | major | ||
Priority: | P5 - low | CC: | m.de.rooy |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | Trivial patch |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: |
23.11.00,23.05.02,22.11.08
|
|
Circulation function: | |||
Attachments: |
Bug 34218: Send a record copy to avoid loss of information and display problems
Bug 34218: Send a record copy to avoid loss of information and display problems Bug 34218: Send a record copy to avoid loss of information and display problems |
Description
Thibaud Guillot (thibaud_g)
2023-07-06 11:43:17 UTC
Created attachment 153091 [details] [review] Bug 34218: Send a record copy to avoid loss of information and display problems As I wrote in the bug description, I encountered this problem in a particular case, so I'll explain it in the test plan, but it's certainly likely to be encountered in different ways. Test plan: 1) Link authorised values with a field on a MARC framework, like a 942a related to branches 2) Set it on a record with no items 3) Activate syspref "AlternateHoldingsField" and set it to field 942a 4) Go to OPAC View and you will see "Holdings: " without any values 5) Apply this patch 6) Do step 4) again and now it's fixed Created attachment 153103 [details] [review] Bug 34218: Send a record copy to avoid loss of information and display problems As I wrote in the bug description, I encountered this problem in a particular case, so I'll explain it in the test plan, but it's certainly likely to be encountered in different ways. Test plan: 1) Link authorised values with a field on a MARC framework, like a 942a related to branches 2) Set it on a record with no items 3) Activate syspref "AlternateHoldingsField" and set it to field 942a 4) Go to OPAC View and you will see "Holdings: " without any values 5) Apply this patch 6) Do step 4) again and now it's fixed Signed-off-by: Sam Lau <samalau@gmail.com> Created attachment 153114 [details] [review] Bug 34218: Send a record copy to avoid loss of information and display problems As I wrote in the bug description, I encountered this problem in a particular case, so I'll explain it in the test plan, but it's certainly likely to be encountered in different ways. Test plan: 1) Link authorised values with a field on a MARC framework, like a 942a related to branches 2) Set it on a record with no items 3) Activate syspref "AlternateHoldingsField" and set it to field 942a 4) Go to OPAC View and you will see "Holdings: " without any values 5) Apply this patch 6) Do step 4) again and now it's fixed Signed-off-by: Sam Lau <samalau@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Good catch Thibaud. It seems to be the only place where the record was passed in like this. In other calls I see that it uses biblio->metadata->record. Updating severity a bit. Pushed to master for 23.11. Nice work everyone, thanks! Thanks for all the hard work! Pushed to 23.05.x for the next release Nice work everyone! Pushed to oldstable for 22.11.x |