Lines 191-206
sub get_some_shelves {
Link Here
|
191 |
}; |
191 |
}; |
192 |
} |
192 |
} |
193 |
|
193 |
|
|
|
194 |
my $default_search_attributes = { |
195 |
join => [ 'virtualshelfshares' ], |
196 |
distinct => 'shelfnumber', |
197 |
order_by => { -desc => 'lastmodified' }, |
198 |
}; |
199 |
|
200 |
my %search_attributes = (%{$default_search_attributes}, %{$params->{search_attributes}}); |
201 |
|
194 |
$self->search( |
202 |
$self->search( |
195 |
{ |
203 |
{ |
196 |
public => $public, |
204 |
public => $public, |
197 |
( @conditions ? ( -and => \@conditions ) : () ), |
205 |
( @conditions ? ( -and => \@conditions ) : () ), |
198 |
}, |
206 |
}, |
199 |
{ |
207 |
\%search_attributes |
200 |
join => [ 'virtualshelfshares' ], |
|
|
201 |
distinct => 'shelfnumber', |
202 |
order_by => { -desc => 'lastmodified' }, |
203 |
} |
204 |
); |
208 |
); |
205 |
} |
209 |
} |
206 |
|
210 |
|
207 |
- |
|
|