Git Product home page Git Product logo

Comments (7)

kimisgold avatar kimisgold commented on August 11, 2024 1

Good catch, the fix for the deletions should be in now.

from omeka-s-theme.

kimisgold avatar kimisgold commented on August 11, 2024

I removed some deprecated javascript that I think was tripping up the selected filters application. Could you see if the filters are working as they should now?

from omeka-s-theme.

IdaAkiwumi avatar IdaAkiwumi commented on August 11, 2024

So, this seems to be working properly for the Denominations, but not the States. The below screenshot is the result of me selecting a few states and applying those filters. Under "Counties", it displays a duplicate of the filtered denominations.
Screen Shot 2020-12-09 at 9 52 52 AM

It looks like this when I first select the states, but the result is like the above screenshot once Apply filters is clicked.
Screen Shot 2020-12-09 at 9 52 31 AM

Also, I'm noticing that when I refresh the page after removing filters and not selecting "Apply filters", the filters remain. I'm not sure if this is the behavior we want, but wanted to get your thoughts on this.

from omeka-s-theme.

kimisgold avatar kimisgold commented on August 11, 2024

Ah, I found a typo where the view is looking for the active county ids. Should be fixed!

The apply filters behavior is intended. Basically all additional changes to the dropdown need confirmation. The active filters being automatically populated are based off the URL. We could alert the user if they try to refresh without applying changes.

from omeka-s-theme.

IdaAkiwumi avatar IdaAkiwumi commented on August 11, 2024

Ah, this is working great! And yes, I think an alert asking the user if they truly want to refresh the page or not when they have active selected/deleted filters would help... Only because of the current behavior, because if the user deletes filters or refreshes the page when filters are already applied, the user may expect the filters to clear completely from refreshing.

These articles can help in this regard: http://web-accessibility.carnegiemuseums.org/code/alerts/ , https://www.w3.org/WAI/tutorials/forms/notifications/

So an alert dialog like this should suffice, but I defer to the rest of the team for appropriate wording in this case:
A filter was deleted/selected, but wasn't applied. Refreshing the page won't clear the filter. Do you still want to refresh?

buttons underneath: [Yes] [No]

from omeka-s-theme.

kimisgold avatar kimisgold commented on August 11, 2024

We actually had this functionality in the Omeka admin interface already, so I copied it over to the module handling these browse filters. The user should now get a browser alert asking if they want to leave the page with unsaved changes. (This language is provided by the browser.)

from omeka-s-theme.

IdaAkiwumi avatar IdaAkiwumi commented on August 11, 2024

This functionality works for selections, but not necessarily for deletion of a filter. Is it possible to implement this for deletions?

from omeka-s-theme.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.