Skip to content

Commit

Permalink
config: increase tag display limit in facets
Browse files Browse the repository at this point in the history
  • Loading branch information
kpsherva committed Jun 17, 2024
1 parent 2d5867f commit cf37a5d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cds_ils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
circulation_loan_will_expire_days,
)
from invenio_app_ils.config import CELERY_BEAT_SCHEDULE as ILS_CELERY_BEAT_SCHEDULE
from invenio_app_ils.config import RECORDS_REST_ENDPOINTS
from invenio_app_ils.config import RECORDS_REST_ENDPOINTS, RECORDS_REST_FACETS
from invenio_app_ils.documents.api import DOCUMENT_PID_TYPE
from invenio_app_ils.eitems.api import EITEM_PID_TYPE
from invenio_app_ils.ill.api import (
Expand Down Expand Up @@ -415,6 +415,11 @@ def _parse_env_bool(var_name, default=None):
"update_permission_factory_imp"
] = loan_checkout_permission

# show more tags in the facets
RECORDS_REST_FACETS["documents"]["aggs"]["tag"] = (
dict(terms=dict(field="tags", size=10))
)

###############################################################################
# ILS overridden
###############################################################################
Expand Down

0 comments on commit cf37a5d

Please sign in to comment.