Lines 301-310
sub get_items {
Link Here
|
301 |
return try { |
301 |
return try { |
302 |
|
302 |
|
303 |
# FIXME We need to order_by serial.publisheddate if we have _order_by=+me.serial_issue_number |
303 |
# FIXME We need to order_by serial.publisheddate if we have _order_by=+me.serial_issue_number |
304 |
# Should we use search_ordered here? Maybe as well in Koha::REST::V1::Items::list? |
|
|
305 |
# FIXME Do we always need host_items => 1 or depending on a flag? |
304 |
# FIXME Do we always need host_items => 1 or depending on a flag? |
306 |
# FIXME Should we prefetch => ['issue','branchtransfer']? |
305 |
# FIXME Should we prefetch => ['issue','branchtransfer']? |
307 |
my $items_rs = $biblio->items( { host_items => 1 } )->search( {}, { join => 'biblioitem' } ) ); |
306 |
my $items_rs = $biblio->items( { host_items => 1 } )->search_ordered( {}, { join => 'biblioitem' } ); |
308 |
$items_rs = $items_rs->filter_by_bookable if $bookable_only; |
307 |
$items_rs = $items_rs->filter_by_bookable if $bookable_only; |
309 |
# FIXME We need to order_by serial.publisheddate if we have _order_by=+me.serial_issue_number |
308 |
# FIXME We need to order_by serial.publisheddate if we have _order_by=+me.serial_issue_number |
310 |
my $items = $c->objects->search($items_rs); |
309 |
my $items = $c->objects->search($items_rs); |