Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifying filters to case insensitive #11

Closed
mtjvankuik opened this issue Mar 30, 2016 · 1 comment
Closed

Modifying filters to case insensitive #11

mtjvankuik opened this issue Mar 30, 2016 · 1 comment

Comments

@mtjvankuik
Copy link

I want to make the filters in the worklist case insensitive instead of case sensitive. My assumption was that there are three choices.

  1. modify comparison server variable and filter variable.
  2. capitalize input filter.
  3. uncapitalize server variable.

I chose for 2. However, I get a server error after adding the toUpperCase() method.

`/**

  • Transforms an input string into a search filter for

  • the Worklist Search call
    *

  • @param filter The input string to be searched for

  • @returns {*}
    */
    function getFilter(filter) {

    if (filter && filter.length && filter.substr(filter.length - 1) !== '*') {
    filter += ' * ' ;
    }

    return filter.toUpperCase();
    }`

server log: Router.route('/', function () { this.render('Home', { data: function () { return Items.findOne({_id: this.params._id}); } }); });

@mtjvankuik
Copy link
Author

Issue solved.

function getFilter(filter) {
if (filter && filter.length && filter.substr(filter.length - 1) !== '*') {
filter += ' * ' ;
filter = filter.toUpperCase();
}
return filter;
}

JamesAPetts added a commit that referenced this issue Sep 10, 2020
Kinderspital-32: 4D CINE

* Add 4D cine controls.

* Prevent looping with next/previous CINE buttons.

Approved-by: Erik Ziegler
pedrokohler pushed a commit to pedrokohler/ohif-viewers that referenced this issue Nov 13, 2023
pedrokohler pushed a commit to pedrokohler/ohif-viewers that referenced this issue Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant