Bugzilla – Attachment 153091 Details for
Bug 34218
XSLT parse on record directly breaks OPAC display
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34218: Send a record copy to avoid loss of information and display problems
Bug-34218-Send-a-record-copy-to-avoid-loss-of-info.patch (text/plain), 1.36 KB, created by
Thibaud Guillot (thibaud_g)
on 2023-07-06 11:59:12 UTC
(
hide
)
Description:
Bug 34218: Send a record copy to avoid loss of information and display problems
Filename:
MIME Type:
Creator:
Thibaud Guillot (thibaud_g)
Created:
2023-07-06 11:59:12 UTC
Size:
1.36 KB
patch
obsolete
>From c720efb92b26ba040f7ac25e33104ead4a8d56fd Mon Sep 17 00:00:00 2001 >From: Thibaud Guillot <thibaud.guillot@biblibre.com> >Date: Thu, 6 Jul 2023 13:46:47 +0200 >Subject: [PATCH] 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 >--- > opac/opac-detail.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl >index 116694e267..52e161205a 100755 >--- a/opac/opac-detail.pl >+++ b/opac/opac-detail.pl >@@ -639,7 +639,7 @@ $variables->{show_analytics_link} = $show_analytics; > $template->param( > XSLTBloc => XSLTParse4Display({ > biblionumber => $biblionumber, >- record => $record, >+ record => $record->clone(), > xsl_syspref => 'OPACXSLTDetailsDisplay', > fix_amps => 1, > xslt_variables => $variables, >-- >2.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34218
:
153091
|
153103
|
153114