Skip to content

Commit

Permalink
add apc filter to admin applications search
Browse files Browse the repository at this point in the history
  • Loading branch information
amdomanska committed Apr 21, 2023
1 parent dbc002e commit 6a32903
Showing 1 changed file with 36 additions and 2 deletions.
38 changes: 36 additions & 2 deletions portality/static/js/edges/admin.applications.edge.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,20 @@ $.extend(true, doaj, {

var components = [
doaj.components.searchingNotification(),

// filters
edges.newFilterSetter({
id : "see_applications",
category: "facet",
filters : [
doaj.filters.noApcCharges()
],
renderer : doaj.renderers.newFacetFilterSetterRenderer({
facetTitle : "See applications...",
open: true,
togglable: false,
showCount: false
})
}),
// facets
doaj.facets.openOrClosed(),
doaj.facets.applicationStatus(),
Expand Down Expand Up @@ -177,6 +190,21 @@ $.extend(true, doaj, {
edges.newSelectedFilters({
id: "selected-filters",
category: "selected-filters",
compoundDisplays : [
{
filters : [
es.newTermFilter({
field: "bibjson.apc.has_apc",
value: false
}),
es.newTermFilter({
field: "bibjson.other_charges.has_other_charges",
value: false
})
],
display : "Without article processing charges (APCs)"
}
],
fieldDisplays: {
'admin.application_status.exact': 'Application status',
'index.application_type.exact' : 'Application',
Expand All @@ -199,7 +227,13 @@ $.extend(true, doaj, {
"update request": "Open",
"new application": "Open"
}
}
},
renderer : doaj.renderers.newSelectedFiltersRenderer({
omit : [
"bibjson.apc.has_apc",
"bibjson.other_charges.has_other_charges"
]
})
})
];

Expand Down

0 comments on commit 6a32903

Please sign in to comment.