Bugzilla – Attachment 190776 Details for
Bug 41084
Zotero connector broken by bug 37370
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41084: Allow utf8 export format when EnableZotero is enabled
92bb448.patch (text/plain), 1.25 KB, created by
Tomás Cohen Arazi (tcohen)
on 2025-12-30 13:29:30 UTC
(
hide
)
Description:
Bug 41084: Allow utf8 export format when EnableZotero is enabled
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2025-12-30 13:29:30 UTC
Size:
1.25 KB
patch
obsolete
>From 92bb4487004bbb7a445ac64d7371b60f81a75c22 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Tom=C3=A1s=20Cohen=20Arazi?= <tomascohen@theke.io> >Date: Tue, 30 Dec 2025 10:09:12 -0300 >Subject: [PATCH] Bug 41084: Allow utf8 export format when EnableZotero is > enabled > >When the EnableZotero system preference is enabled, allow the utf8 format >in opac-export.pl regardless of the OpacExportOptions settings. > >This enables Zotero integration by ensuring the required UTF-8 encoded >MARC format is always available when the feature is enabled. >--- > opac/opac-export.pl | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/opac/opac-export.pl b/opac/opac-export.pl >index e8ef025b5e..7d1d509482 100755 >--- a/opac/opac-export.pl >+++ b/opac/opac-export.pl >@@ -50,6 +50,11 @@ if ( any { $_ eq 'dc' } @valid_formats ) { > @valid_formats = ( @valid_formats, @dc_subtypes ); > } > >+# Allow utf8 format if EnableZotero is enabled, regardless of OpacExportOptions >+if ( C4::Context->preference('EnableZotero') && $format eq 'utf8' ) { >+ push @valid_formats, 'utf8' unless any { $_ eq 'utf8' } @valid_formats; >+} >+ > if ( !scalar @valid_formats || none { $format eq $_ } @valid_formats ) { > > # bad request: either the feature is disabled, or requested a format the >-- >2.50.1 (Apple Git-155) >
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 41084
:
190775
|
190776
|
190777
|
190778
|
190779