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 2054-2082
sub GetAnalyticsCount {
Link Here
|
2054 |
return ($result); |
2053 |
return ($result); |
2055 |
} |
2054 |
} |
2056 |
|
2055 |
|
2057 |
=head2 SearchItemsByField |
|
|
2058 |
|
2059 |
my $items = SearchItemsByField($field, $value); |
2060 |
|
2061 |
SearchItemsByField will search for items on a specific given field. |
2062 |
For instance you can search all items with a specific stocknumber like this: |
2063 |
|
2064 |
my $items = SearchItemsByField('stocknumber', $stocknumber); |
2065 |
|
2066 |
=cut |
2067 |
|
2068 |
sub SearchItemsByField { |
2069 |
my ($field, $value) = @_; |
2070 |
|
2071 |
my $filters = { |
2072 |
field => $field, |
2073 |
query => $value, |
2074 |
}; |
2075 |
|
2076 |
my ($results) = SearchItems($filters); |
2077 |
return $results; |
2078 |
} |
2079 |
|
2080 |
sub _SearchItems_build_where_fragment { |
2056 |
sub _SearchItems_build_where_fragment { |
2081 |
my ($filter) = @_; |
2057 |
my ($filter) = @_; |
2082 |
|
2058 |
|
2083 |
- |
|
|