View | Details | Raw Unified | Return to bug 11137
Collapse All | Expand All

(-)a/Koha/QueryParser/Driver/PQF.pm (-6 lines)
Lines 111-117 sub add_bib1_field_map { Link Here
111
    my ($self, $class, $field, $server, $attributes) = @_;
111
    my ($self, $class, $field, $server, $attributes) = @_;
112
112
113
    $self->add_search_field( $class => $field );
113
    $self->add_search_field( $class => $field );
114
    $self->add_search_field_alias( $class => $field => $field );
115
    return $self->_add_field_mapping($self->bib1_field_map, $class, $field, $server, $attributes);
114
    return $self->_add_field_mapping($self->bib1_field_map, $class, $field, $server, $attributes);
116
}
115
}
117
116
Lines 542-555 sub initialize { Link Here
542
                    $self->add_bib1_field_map(
541
                    $self->add_bib1_field_map(
543
                        $class => $field => $server => $bib1_mapping );
542
                        $class => $field => $server => $bib1_mapping );
544
                }
543
                }
545
                $self->add_search_field_alias( $class => $field =>
546
                      $field_mappings->{$class}->{$field}->{'index'} );
547
                foreach my $alias (
544
                foreach my $alias (
548
                    @{ $field_mappings->{$class}->{$field}->{'aliases'} } )
545
                    @{ $field_mappings->{$class}->{$field}->{'aliases'} } )
549
                {
546
                {
550
                    next
551
                      if ( $alias eq
552
                        $field_mappings->{$class}->{$field}->{'index'} );
553
                    $self->add_search_field_alias( $class => $field => $alias );
547
                    $self->add_search_field_alias( $class => $field => $alias );
554
                }
548
                }
555
            }
549
            }
(-)a/t/QueryParser.t (-4 / +1 lines)
Lines 44-52 my $desired_config = { Link Here
44
  'field_mappings' => {
44
  'field_mappings' => {
45
    'author' => {
45
    'author' => {
46
      'personal' => {
46
      'personal' => {
47
        'aliases' => [
47
        'aliases' => [ ],
48
          'personal'
49
        ],
50
        'bib1_mapping' => {
48
        'bib1_mapping' => {
51
          'biblioserver' => {
49
          'biblioserver' => {
52
            '1' => '1004'
50
            '1' => '1004'
53
- 

Return to bug 11137