}
$obj->connect( $host.':'.$server->{port}.'/'.$server->{db} );
} else {
$obj->connect( $server->{host}, $server->{port} );
if (C4::Context->preference('HTTPS_Proxy') ne "" && !$server->{not_proxy}){
my $proxy = C4::Context->preference('HTTPS_Proxy');
$proxy =~ s/http(s)?\:\/\///g;
$obj->connect( "connect:$proxy,tcp:".$server->{host}.":".$server->{port} );
}else{
return $obj;
additional attributes passed to PQF queries
=head2 not_proxy
data_type: 'smallint'
is_nullable: 1
do not use proxy
=cut
__PACKAGE__->add_columns(
{ data_type => "longtext", is_nullable => 1 },
"attributes",
{ data_type => "varchar", is_nullable => 1, size => 255 },
"not_proxy",
{ data_type => "smallint", is_nullable => 1 },
);
=head1 PRIMARY KEY
} elsif ( $op eq 'cud-add_validated' ) {
my @fields=qw/host port db userid password rank syntax encoding timeout
recordtype checked servername servertype sru_options sru_fields attributes
add_xslt/;
add_xslt not_proxy/;
my $formdata = _form_data_hashref( $input, \@fields );
if( $id ) {
my $server = Koha::Z3950Servers->find($id);
use Modern::Perl;
return {
bug_number => "12620",
description => "System preference for HTTPS proxy and column in table z3950servers not_proxy",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
$dbh->do(q{
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
('HTTPS_Proxy', '', '', 'HTTPS proxy URL', 'free')
});
unless ( column_exists( 'z3950servers', 'not_proxy' ) ) {
$dbh->do(
"ALTER TABLE z3950servers ADD COLUMN not_proxy TINYINT(1) DEFAULT NULL"
},
};
0: Disable
- the IdRef web service from the OPAC detail page. IdRef allows requests for authorities from the Sudoc database.
- Please note that this feature is available only for UNIMARC.
Proxy:
-
- pref: HTTPS_Proxy
class: url
- HTTPS proxy URL for connections with Z3950 servers.
</li>
[% END %]
<li>
<label for="not_proxy">Do not use proxy: </label>
[% IF ( server.not_proxy ) %]
<input type="checkbox" name="not_proxy" id="not_proxy" value="1" checked="checked" />
[% ELSE %]
<input type="checkbox" name="not_proxy" id="not_proxy" value="1" />
<label for="add_xslt">XSLT File(s) for transforming results: </label>
<input type="text" name="add_xslt" id="add_xslt" size="100" value="[% server.add_xslt | html %]"/>
<div class="hint">Separate multiple filenames by commas.</div>