|
Lines 13-18
sub new {
Link Here
|
| 13 |
$self->schema->storage->sql_maker->quote_char('`'); |
13 |
$self->schema->storage->sql_maker->quote_char('`'); |
| 14 |
|
14 |
|
| 15 |
$self->{gen_type} = _gen_type(); |
15 |
$self->{gen_type} = _gen_type(); |
|
|
16 |
$self->{default_values} = _gen_default_values(); |
| 16 |
return $self; |
17 |
return $self; |
| 17 |
} |
18 |
} |
| 18 |
|
19 |
|
|
Lines 290-295
sub _buildColumnValue {
Link Here
|
| 290 |
return; |
291 |
return; |
| 291 |
} |
292 |
} |
| 292 |
push @$retvalue, $value->{$col_name}; |
293 |
push @$retvalue, $value->{$col_name}; |
|
|
294 |
} elsif( exists $self->{default_values}{$source}{$col_name} ) { |
| 295 |
push @$retvalue, $self->{default_values}{$source}{$col_name}; |
| 293 |
} else { |
296 |
} else { |
| 294 |
my $data_type = $col_info->{data_type}; |
297 |
my $data_type = $col_info->{data_type}; |
| 295 |
$data_type =~ s| |_|; |
298 |
$data_type =~ s| |_|; |
|
Lines 414-419
sub _gen_blob {
Link Here
|
| 414 |
return 'b'; |
417 |
return 'b'; |
| 415 |
} |
418 |
} |
| 416 |
|
419 |
|
|
|
420 |
sub _gen_default_values { |
| 421 |
my ($self) = @_; |
| 422 |
return { |
| 423 |
Item => { |
| 424 |
more_subfields_xml => undef, |
| 425 |
}, |
| 426 |
Biblioitem => { |
| 427 |
marcxml => undef, |
| 428 |
} |
| 429 |
}; |
| 430 |
} |
| 431 |
|
| 417 |
=head1 NAME |
432 |
=head1 NAME |
| 418 |
|
433 |
|
| 419 |
t::lib::TestBuilder.pm - Koha module to create test records |
434 |
t::lib::TestBuilder.pm - Koha module to create test records |
| 420 |
- |
|
|