Bugzilla – Attachment 195193 Details for
Bug 42078
Allow vendor ID searches on serial subscription vendor search page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 42078: Allow vendor ID searches on serial subscription vendor search page
Bug-42078-Allow-vendor-ID-searches-on-serial-subsc.patch (text/plain), 2.30 KB, created by
Laura Escamilla
on 2026-03-12 16:05:55 UTC
(
hide
)
Description:
Bug 42078: Allow vendor ID searches on serial subscription vendor search page
Filename:
MIME Type:
Creator:
Laura Escamilla
Created:
2026-03-12 16:05:55 UTC
Size:
2.30 KB
patch
obsolete
>From 4e88df1657015c7d3980273846787f9a6aad7c08 Mon Sep 17 00:00:00 2001 >From: Laura_Escamilla <laura.escamilla@bywatersolutions.com> >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 >--- > .../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 24d955449d7..b9a6b27249c 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 @@ > <fieldset class="rows"> > <ol> > <li> >- <label for="text">Vendor name: </label> >+ <label for="text">Vendor name or ID: </label> > <input id="text" type="text" size="25" name="supplier" autofocus="autofocus" /> > </li> > </ol> >diff --git a/serials/acqui-search-result.pl b/serials/acqui-search-result.pl >index 2128e219470..46eabc7010b 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 42078
:
195193
|
195352