ISA-tools / isa-explorer

A lightweight web-based ISA-Tab viewer for multiple ISA-Tab files.
http://scientificdata.isa-explorer.org/
BSD 3-Clause "New" or "Revised" License
7 stars 1 forks source link

Search results #31

Closed agbeltran closed 9 years ago

agbeltran commented 9 years ago

when searching for 'figshare' only 25 datasets are found but there are 31 figshare datasets

What fields are being included in the search?

eamonnmag commented 9 years ago

This appears to be working now.

screen shot 2015-10-18 at 3 21 49 p m
agbeltran commented 9 years ago

Thanks for looking into this Eamonn. But are you sure that the searchers like this will always work? Tx

eamonnmag commented 9 years ago

Well, the filter is basic. So if there are sub strings, they can match more than the filter tells you. e.g. for 'data integration (14)' and 'data integration objective (17)'. We can use the index instead for this.


$(".submission_item").each(function () {
                var text = $(this).text().toLowerCase().trim();
                var ok_to_show = true;
                ISATABExplorer.current_filters.forEach(function (item) {
                    if (text.indexOf(item.toLowerCase().trim()) == -1) {
                        ok_to_show = false;
                    }
                });

                if (ok_to_show || ISATABExplorer.current_filters.size == 0) {
                    $(this).fadeIn(200);

                } else {
                    $(this).fadeOut(200);
                }
            });