Lines 133-152
for my $resultsbr (@resultsbr) {
Link Here
|
133 |
}; |
133 |
}; |
134 |
} |
134 |
} |
135 |
|
135 |
|
136 |
my $rs = $schema->resultset('Z3950server')->search( |
136 |
my $schema = Koha::Database->new()->schema(); |
|
|
137 |
my $servers = $schema->resultset('Z3950server')->search( |
137 |
{ |
138 |
{ |
138 |
recordtype => 'biblio', |
139 |
recordtype => 'biblio', |
139 |
servertype => ['zed', 'sru'], |
140 |
servertype => ['zed', 'sru'], |
140 |
}, |
141 |
}, |
141 |
{ result_class => 'DBIx::Class::ResultClass::HashRefInflator', |
142 |
{ result_class => 'DBIx::Class::ResultClass::HashRefInflator', |
142 |
order_by => ['rank', 'servername'], |
143 |
order_by => ['rank', 'servername'], |
143 |
}, |
144 |
}, |
144 |
); |
145 |
); |
145 |
$template->param( |
|
|
146 |
serverloop => [ $rs->all ], |
147 |
|
146 |
|
148 |
my $frameworks = Koha::BiblioFrameworks->search({}, { order_by => ['frameworktext'] }); |
147 |
my $frameworks = Koha::BiblioFrameworks->search({}, { order_by => ['frameworktext'] }); |
149 |
$template->param( |
148 |
$template->param( |
|
|
149 |
servers => $servers, |
150 |
frameworks => $frameworks, |
150 |
frameworks => $frameworks, |
151 |
breeding_count => $countbr, |
151 |
breeding_count => $countbr, |
152 |
breeding_loop => $breeding_loop, |
152 |
breeding_loop => $breeding_loop, |