View | Details | Raw Unified | Return to bug 33568
Collapse All | Expand All

(-)a/Koha/REST/V1/Biblios.pm (-2 / +1 lines)
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);
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc (-2 / +1 lines)
Lines 275-281 Link Here
275
        };
275
        };
276
        var items_table = $("#" + tab_id + '_table').kohaTable({
276
        var items_table = $("#" + tab_id + '_table').kohaTable({
277
            ajax: { url: item_table_url },
277
            ajax: { url: item_table_url },
278
            order: [[ 0, "asc" ]],
278
            order: [],
279
            embed,
279
            embed,
280
            autoWidth: false,
280
            autoWidth: false,
281
            bKohaColumnsUseNames: true,
281
            bKohaColumnsUseNames: true,
282
- 

Return to bug 33568