Lines 47-53
BEGIN {
Link Here
|
47 |
MoveItemFromBiblio |
47 |
MoveItemFromBiblio |
48 |
CartToShelf |
48 |
CartToShelf |
49 |
GetAnalyticsCount |
49 |
GetAnalyticsCount |
50 |
SearchItemsByField |
|
|
51 |
SearchItems |
50 |
SearchItems |
52 |
PrepareItemrecordDisplay |
51 |
PrepareItemrecordDisplay |
53 |
); |
52 |
); |
Lines 2051-2079
sub GetAnalyticsCount {
Link Here
|
2051 |
return ($result); |
2050 |
return ($result); |
2052 |
} |
2051 |
} |
2053 |
|
2052 |
|
2054 |
=head2 SearchItemsByField |
|
|
2055 |
|
2056 |
my $items = SearchItemsByField($field, $value); |
2057 |
|
2058 |
SearchItemsByField will search for items on a specific given field. |
2059 |
For instance you can search all items with a specific stocknumber like this: |
2060 |
|
2061 |
my $items = SearchItemsByField('stocknumber', $stocknumber); |
2062 |
|
2063 |
=cut |
2064 |
|
2065 |
sub SearchItemsByField { |
2066 |
my ($field, $value) = @_; |
2067 |
|
2068 |
my $filters = { |
2069 |
field => $field, |
2070 |
query => $value, |
2071 |
}; |
2072 |
|
2073 |
my ($results) = SearchItems($filters); |
2074 |
return $results; |
2075 |
} |
2076 |
|
2077 |
sub _SearchItems_build_where_fragment { |
2053 |
sub _SearchItems_build_where_fragment { |
2078 |
my ($filter) = @_; |
2054 |
my ($filter) = @_; |
2079 |
|
2055 |
|
2080 |
- |
|
|