For creating search pages in Omeka S, I previously introduced a method to limit filter items on the advanced search screen.
However, as shown in the overview, there are cases where you want to create a search screen that lists only specific items. For creating such a search page, you can use the “Advanced Search” module.
The usage is explained on the following page. While the example below integrates with Apache Solr, it can also be used with Omeka S alone in combination with the Reference module and others.
However, the “Advanced Search” module has many features, which can make it difficult to master. Therefore, this article introduces a simple way to create a custom search page like the one shown above.
The following section contains the configuration items.
For property, specify the property ID. If left unspecified, the search is performed without specifying a property. 1 corresponds to dcterms:title, 10 to dcterms:identifier, and 3 to dcterms:subject.
To find the ID, you can search from the vocabulary list page and check the ID from the URL as shown below.
For type, specify eq or in. eq is an exact match, and in is a partial match. Other strings can also be specified. As with the above, check the available strings from the URLs generated during normal Omeka searches.
Additionally, you can set placeholder and help text.
Currently, classes assuming Bootstrap 5 is installed (such as form-group mb-4) are specified. Please change the styles and classes to match your theme.
In this article, I introduced how to create a custom search page as a static page in Omeka S.
However, there are some difficulties with the method of specifying property IDs, so I plan to create a custom module for creating pages like this in the future.