To achieve this, ensure the user can access the document types, and then set up the custom query. Then, in your client configuration (obpa-config.json), under the searchPanel section, set the “selectedQueryId” to the query you wish to use, “showSingleQuery” to true, and “showDocTypes” to true. Alternatively, you can set “showDocTypes” to false, and then select a specific document type with “selectedDocTypeId” – an example is shown below for both of these.
The first example:
{
"api": {
"url": "http://server/publicaccess/api",
"queryLimit": 0
},
"searchPanel": {
"selectedQueryId": 5,
"showSingleQuery": true,
"showDocTypes": true,
}
}
And the second example:
{
"api": {
"url": "http://server/publicaccess/api",
"queryLimit": 0
},
"searchPanel": {
"selectedQueryId": null,
"showSingleQuery": false,
"showDocTypes": false,
"selectedDocTypeId": 46
}
}