From 3024620439f03e2bfdcbc1fcfbc61abf5e70db0e Mon Sep 17 00:00:00 2001 From: Laura_Escamilla Date: Thu, 12 Mar 2026 16:04:34 +0000 Subject: [PATCH] Bug 42078: Allow vendor ID searches on serial subscription vendor search page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The serials vendor search currently only searches vendors by name. This patch allows the search field to also match vendor IDs so staff can locate vendors using either name or ID. Test plan: 1. Go to Serials → New subscription. 2. Click to search for a vendor. 3. Search using part of a vendor name and confirm results appear. 4. Search using an exact vendor ID and confirm the correct vendor is returned. 5. Sign off and have a wonderful day! :D Signed-off-by: Angela Berrett --- .../prog/en/modules/serials/acqui-search.tt | 2 +- serials/acqui-search-result.pl | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search.tt index 24d955449d..b9a6b27249 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search.tt @@ -18,7 +18,7 @@
  1. - +
diff --git a/serials/acqui-search-result.pl b/serials/acqui-search-result.pl index 2128e21947..46eabc7010 100755 --- a/serials/acqui-search-result.pl +++ b/serials/acqui-search-result.pl @@ -59,8 +59,13 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( my $supplier = $query->param('supplier'); my @suppliers = Koha::Acquisition::Booksellers->search( - { name => { -like => "%$supplier%" } }, - { order_by => { -asc => 'name' } } + { + -or => [ + name => { -like => "%$supplier%" }, + id => $supplier, + ] + }, + { order_by => { -asc => 'name' } } )->as_list; #build result page -- 2.39.5