Omka S - Advanced Search > Sort By Customization

Our Advanced Search Sort By looks like this:

We only want it to sort by Title and Date (dc:date not when added to Omeka).

Is this possible?

Thanks,
Nicole

Our frontend developer looked into suppressing this a while back, it turned out to not be feasible in our analysis. That said, writing a custom search page with the Advanced Search module does offer this level of flexibility. I will warn you, that module is powerfully dangerous; it’s got a learning curve, and a LOT of options to sift through.

Thanks for the insight. It is so odd that they never included Date in this drop down out of the box. Appreciate the response.

Best,
Nicole

It’s possible to modify what’s in that list a few ways… one out-of-the-box way is that those defaults come from a configuration file, so you can change them by editing your config/local.config.php file.

Adding this:

    'sort_defaults' => [
        'public' => [
            'items' => [
                'dcterms:date' => 'Date',
            ],
        ],
    ],

before the final ]; line will add a “Date” choice that sorts by dcterms:date. Also, if you set a custom default sort in the site’s settings, that will be added automatically to the sort selector. Removing things from the list is a little trickier, though.

We’re considering for a future version a feature that gives users more direct control over these sorting options for a site, to select what’s available, change the labels and ordering, and so on.

1 Like

Thank you so much! Great to hear this is on your radar for future flexibility.

Best,
Nicole