Project

General

Profile

Actions

Bug #1683

closed

Broken table sorting for CIDOC columns

Added by Alexander Watzinger almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Category:
UI
Target version:
Start date:
2022-04-04
Estimated time:
Found in version:

Actions #1

Updated by Alexander Watzinger almost 2 years ago

Former function in openatlas/static/js/functions.js was removed after some troubles with it:

    // DataTables - sort for CIDOC model
    $.fn.dataTable.ext.order['cidoc-model'] = function (settings, col) {
        return this.api().column(col, {order: 'index'}).nodes().map(function (td, i) {
            const d = td.firstChild.innerText
                .replace('OA', '100')
                .replace(/[\D]*/, '');
            return parseInt(d, 10);
        });
    };
Actions #2

Updated by Andreas Olschnögger almost 2 years ago

Bug is fixed and pushed on develop branch.

Actions #3

Updated by Andreas Olschnögger almost 2 years ago

  • Status changed from Assigned to Closed
Actions #4

Updated by Alexander Watzinger almost 2 years ago

  • Subject changed from Model table sorting for CIDOC classes/properties not working to Broken table sorting for CIDOC columns
Actions #5

Updated by Alexander Watzinger almost 2 years ago

I tested it and made a few adaptions at places that were easy to miss (not your fault, they were buried deep inside the form/overlay table/input fields).
Thanks a lot, it had bothered me for a while and now looks much more pleasing and is sort-able again.
I also uploaded it to demo-dev: https://demo-dev.openatlas.eu/overview/model

Actions

Also available in: Atom PDF