@@ -, +, @@ --- Koha/REST/V1/Biblios.pm | 3 +-- .../en/includes/html_helpers/tables/items/catalogue_detail.inc | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) --- a/Koha/REST/V1/Biblios.pm +++ a/Koha/REST/V1/Biblios.pm @@ -301,10 +301,9 @@ sub get_items { return try { # FIXME We need to order_by serial.publisheddate if we have _order_by=+me.serial_issue_number - # Should we use search_ordered here? Maybe as well in Koha::REST::V1::Items::list? # FIXME Do we always need host_items => 1 or depending on a flag? # FIXME Should we prefetch => ['issue','branchtransfer']? - my $items_rs = $biblio->items( { host_items => 1 } )->search( {}, { join => 'biblioitem' } ) ); + my $items_rs = $biblio->items( { host_items => 1 } )->search_ordered( {}, { join => 'biblioitem' } ); $items_rs = $items_rs->filter_by_bookable if $bookable_only; # FIXME We need to order_by serial.publisheddate if we have _order_by=+me.serial_issue_number my $items = $c->objects->search($items_rs); --- a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc @@ -275,7 +275,7 @@ }; var items_table = $("#" + tab_id + '_table').kohaTable({ ajax: { url: item_table_url }, - order: [[ 0, "asc" ]], + order: [], embed, autoWidth: false, bKohaColumnsUseNames: true, --