Princeton-CDH / derrida-django

Derrida's Margins - Python/Django web application
https://derridas-margins.princeton.edu
Apache License 2.0
8 stars 1 forks source link

Disable search filters #268

Closed kmcelwee closed 2 years ago

kmcelwee commented 3 years ago

Use CSS to disable things that are no longer functional:

cursor: not-allowed;
pointer-events: none;

Let's keep the drop-downs functional but disable the inputs and the clear selection.

Should be fine to disable form labels and inputs pretty broadly without worrying about filtering too specifically.

rlskoeser commented 2 years ago

I think this list is shorter than we thought initially since we're not doing a static site — the browsertrix crawl does capture search filters that are generated from links (like annotation types), so we should not disable them. Ideally, we set the form fields disabled but show the status of the filters or sort options that are active in the archived page. If there's a tidy way to collapse it if no filters are set, that would be nice; if not, I'm inclined to leave it visible always.

rlskoeser commented 2 years ago

completed in https://github.com/Princeton-CDH/derridas-margins-archive/pull/6