Bugzilla – Attachment 149237 Details for
Bug 33431
Make code use C4::Context->yaml_preference
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33431: Make C4::Record use C4::Context->yaml_preference
Bug-33431-Make-C4Record-use-C4Context-yamlpreferen.patch (text/plain), 1.45 KB, created by
Tomás Cohen Arazi (tcohen)
on 2023-04-06 14:45:16 UTC
(
hide
)
Description:
Bug 33431: Make C4::Record use C4::Context->yaml_preference
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2023-04-06 14:45:16 UTC
Size:
1.45 KB
patch
obsolete
>From 4b92981b70f14b7c3a474560d4e7c7c08305d9e8 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Thu, 6 Apr 2023 10:55:41 -0300 >Subject: [PATCH] Bug 33431: Make C4::Record use C4::Context->yaml_preference > >This patch makes what the title says. > >To test: >1. Run: > $ ktd --shell > k$ prove t/db_dependent/Rec* >=> SUCCESS: Tests pass >2. Apply this patch >3. Repeat 1 >=> SUCCESS: Tests pass! >4. Sign off :-D > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > C4/Record.pm | 11 +---------- > 1 file changed, 1 insertion(+), 10 deletions(-) > >diff --git a/C4/Record.pm b/C4/Record.pm >index 69a60f3520f..fc758cae800 100644 >--- a/C4/Record.pm >+++ b/C4/Record.pm >@@ -788,16 +788,7 @@ sub marc2bibtex { > ); > } > >- my $BibtexExportAdditionalFields = C4::Context->preference('BibtexExportAdditionalFields'); >- my $additional_fields; >- if ($BibtexExportAdditionalFields) { >- $BibtexExportAdditionalFields = "$BibtexExportAdditionalFields\n\n"; >- $additional_fields = eval { YAML::XS::Load(Encode::encode_utf8($BibtexExportAdditionalFields)); }; >- if ($@) { >- warn "Unable to parse BibtexExportAdditionalFields : $@"; >- $additional_fields = undef; >- } >- } >+ my $additional_fields = C4::Context->yaml_preference('BibtexExportAdditionalFields'); > > if ( $additional_fields && $additional_fields->{'@'} ) { > my ( $f, $sf ) = split( /\$/, $additional_fields->{'@'} ); >-- >2.34.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 33431
:
149236
|
149237
|
149238
|
160245
|
160246
|
160247
|
160281
|
160282
|
160283
|
160392
|
160393
|
160394
|
162381
|
162382
|
162384