sub patron_adv_search {
my( $self, $client, $auth, $search_hash, $search_limit,
- $search_sort, $include_inactive, $search_ou, $flesh_fields) = @_;
+ $search_sort, $include_inactive, $search_ou, $flesh_fields, $offset) = @_;
my $e = new_editor(authtoken=>$auth);
return $e->event unless $e->checkauth;
my $ids = $U->storagereq(
"open-ils.storage.actor.user.crazy_search", $search_hash,
$search_limit, $search_sort, $include_inactive,
- $e->requestor->ws_ou, $search_ou, $opt_boundary);
+ $e->requestor->ws_ou, $search_ou, $opt_boundary, $offset);
return $ids unless $self->api_name =~ /fleshed/;
my $ws_ou = shift;
my $search_org = shift || $ws_ou;
my $opt_boundary = shift || 0;
+ my $offset = shift || 0;
my $penalty_sort = 0;
GROUP BY $group_list
ORDER BY $order_by
LIMIT $limit
+ OFFSET $offset
SQL
return actor::user->db_Main->selectcol_arrayref($select, {Columns=>[scalar(@$sort)]}, map {lc($_)} (@usrv,@phonev,@identv,@namev,@addrv));