Bug 33103: Make vendors searchable by aliases
Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
5e3980502b
commit
359780886e
1 changed files with 9 additions and 2 deletions
|
@ -82,8 +82,15 @@ if ($booksellerid) {
|
|||
push @suppliers, Koha::Acquisition::Booksellers->find( $booksellerid );
|
||||
} else {
|
||||
@suppliers = Koha::Acquisition::Booksellers->search(
|
||||
[
|
||||
{ name => { -like => "%$supplier%" } },
|
||||
{ order_by => { -asc => 'name' } } )->as_list;
|
||||
{ 'aqbookseller_aliases.alias' => { -like => "%$supplier%" } },
|
||||
],
|
||||
{
|
||||
order_by => { -asc => 'name' },
|
||||
join => 'aqbookseller_aliases',
|
||||
}
|
||||
)->as_list;
|
||||
}
|
||||
|
||||
my $supplier_count = @suppliers;
|
||||
|
|
Loading…
Reference in a new issue