Simple search form
Extend the current Accession filter form with two new checkboxes.
Add a checkbox "Include historical material":
- If not checked, it translates to filter
{ historic: false } - If checked, filter for
{ historic: null }
This checkbox should not display at all if appConfig.filter.historic !== undefined.
Add checkbox "Only material I can request":
- If checked, filter for
{ available: true, institute: { allowMaterialRequests: true } } - If not checked then don't change
available, use fromappConfig.filter({ available: null })
@mborodenko We need a new Boolean allowMaterialRequests in InstituteFilter: if (allowMaterialRequests != null) predicates.add(qInstitute.allowMaterialRequests.eq(allowMaterialRequests);