Bug 41084: Add EnableZotero system preference

This system preference will be used to enable opac-export.pl?format=utf8
regardless of the OpacExportOptions values, specifically for Zotero
integration support.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Tomás Cohen Arazi 2025-12-30 10:03:26 -03:00 committed by Lucas Gass
parent ff6ee4057d
commit 646321adb6
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
3 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,19 @@
use Modern::Perl;
return {
bug_number => "41084",
description => "Add EnableZotero system preference",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
$dbh->do(
q{
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
('EnableZotero','1','','Enable Zotero export functionality','YesNo')
}
);
say $out "Added new system preference 'EnableZotero'";
},
};

View File

@ -274,6 +274,7 @@ INSERT INTO systempreferences ( `variable`, `value` ) VALUES
('EnableOpacSearchHistory','1'),
('EnablePointOfSale','0'),
('EnableSearchHistory','0'),
('EnableZotero','1'),
('EnhancedMessagingPreferences','1'),
('EnhancedMessagingPreferencesOPAC', '1'),
('ERMModule', '0'),

View File

@ -312,6 +312,12 @@ OPAC:
mods: MODS
ris: RIS
isbd: ISBD
-
- pref: EnableZotero
choices:
1: Enable
0: "Don't enable"
- 'Zotero export functionality (UTF-8 encoded MARC). The export option will not be displayed in the OPAC unless the <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=OpacExportOptions">OpacExportOptions</a> has it enabled.'
-
- pref: OpacSeparateHoldings
choices: