ethnicity
issues
issuingrules
- labels
- labels_profile
matchchecks
notifys
nozebra
is in the skeleton database. free to use this one, or insert your
own.
-=cut
-
sub startup_22_add_bookfund : Test(startup => 2) {
my $self = shift;
return;
}
+=cut
+
=head2 startup_24_add_branch
=cut
$self->reindex_marc();
my $query = 'Finn Test';
- my ( $error, $results ) = SimpleSearch( $query );
- if ( $param{'count'} <= scalar( @$results ) ) {
+ my ( $error, $results, undef ) = SimpleSearch( $query );
+ if ( !defined $error && $param{'count'} <= @{$results} ) {
pass( "found all $param{'count'} titles" );
} else {
fail( "we never found all $param{'count'} titles" );
mkdir "$directory/$record_type";
my $sth = $dbh->prepare($record_type eq "biblio" ? "SELECT marc FROM biblioitems" : "SELECT marc FROM auth_header");
$sth->execute();
- open OUT, ">:utf8", "$directory/$record_type/records";
+ open my $out, '>:encoding(UTF-8)', "$directory/$record_type/records";
while (my ($blob) = $sth->fetchrow_array) {
- print OUT $blob;
+ print {$out} $blob;
}
- close OUT;
+ close $out;
my $zebra_server = "${record_type}server";
my $zebra_config = C4::Context->zebraconfig($zebra_server)->{'config'};
my $zebra_db_dir = C4::Context->zebraconfig($zebra_server)->{'directory'};