From 150b835ab3b57c05b043c0b8d317f9dcb75b6d58 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Sun, 17 Mar 2019 21:10:00 -0300 Subject: [PATCH] Bug 23463: Remove uneeded SearchItemsByField subroutine It is no longer used. Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize --- C4/Items.pm | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/C4/Items.pm b/C4/Items.pm index 8ed1c5efed..9de9600ce9 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -47,7 +47,6 @@ BEGIN { MoveItemFromBiblio CartToShelf GetAnalyticsCount - SearchItemsByField SearchItems PrepareItemrecordDisplay ); @@ -2054,29 +2053,6 @@ sub GetAnalyticsCount { return ($result); } -=head2 SearchItemsByField - - my $items = SearchItemsByField($field, $value); - -SearchItemsByField will search for items on a specific given field. -For instance you can search all items with a specific stocknumber like this: - - my $items = SearchItemsByField('stocknumber', $stocknumber); - -=cut - -sub SearchItemsByField { - my ($field, $value) = @_; - - my $filters = { - field => $field, - query => $value, - }; - - my ($results) = SearchItems($filters); - return $results; -} - sub _SearchItems_build_where_fragment { my ($filter) = @_; -- 2.39.5