diff --git a/client/src/pages/datasetsView.jsx b/client/src/pages/datasetsView.jsx
index 90a6bf50..1608046e 100644
--- a/client/src/pages/datasetsView.jsx
+++ b/client/src/pages/datasetsView.jsx
@@ -8,6 +8,7 @@ import {
affiliationsTemplate,
allIdsTemplate,
authorsTemplate,
+ certaintyRowFilterTemplate,
datasourceTemplate,
frAuthorsTemplate,
linkedDOITemplate,
@@ -21,7 +22,10 @@ export default function DatasetsView({
setSelectedWorks,
works,
}) {
- const [filters] = useState({ status: { value: null, matchMode: FilterMatchMode.IN } });
+ const [filters] = useState({
+ status: { value: null, matchMode: FilterMatchMode.IN },
+ levelCertainty: { value: null, matchMode: FilterMatchMode.IN },
+ });
return (
-
+
diff --git a/client/src/utils/templates.jsx b/client/src/utils/templates.jsx
index 81eb5066..a9d8f002 100644
--- a/client/src/utils/templates.jsx
+++ b/client/src/utils/templates.jsx
@@ -36,6 +36,20 @@ const statusRowFilterTemplate = (options) => (
/>
);
+const certaintyRowFilterTemplate = (options) => (
+ options.filterApplyCallback(e.value)}
+ optionLabel="name"
+ placeholder="Any"
+ className="p-column-filter"
+ maxSelectedLabels={1}
+ style={{ minWidth: '7rem' }}
+ />
+);
+
const getIdsTemplate = (ids) => {
let html = '';
ids.forEach((id) => {
@@ -177,6 +191,7 @@ export {
allIdsTemplate,
authorsTemplate,
correctionTemplate,
+ certaintyRowFilterTemplate,
datasourceTemplate,
frAuthorsTemplate,
getAffiliationsHtmlField,