Issue 12516

Occurrence search allows strings in scientific name filter

12516
Reporter: kbraak
Assignee: fmendez
Type: Bug
Summary: Occurrence search allows strings in scientific name filter
Environment: Chrome Version 23.0.1271.95 Mac OS X
Priority: Critical
Resolution: Fixed
Status: Closed
Created: 2012-12-07 12:08:10.629
Updated: 2013-08-29 14:44:29.625
Resolved: 2013-01-10 08:38:50.386
        
Description: scientific name filters expect a nub key via the autocomplete, but you can actually enter name strings too which break the search. This is obviously wrong:

http://staging.gbif.org:8080/portal-web-dynamic/occurrence/search?TAXON_KEY=abies

a) the UI should not allow you to select a name not coming from the autocomplete

b) ideally the portal should more gracefully handle URLs like the above, return the filter without the broken part and highlight that this part of the filter is bad and ignored]]>
    

Attachment multiple names filter.png


Attachment Screen Shot 2012-12-07 at 12.07.04 PM.png



Author: fmendez@gbif.org
Created: 2012-12-11 18:59:38.882
Updated: 2012-12-11 18:59:38.882
        
The issue couldn't be replicated:
http://staging.gbif.org:8080/portal-web-dynamic/occurrence/search?TAXON_KEY=3114103&TAXON_KEY=2435099
Please specify browser version.
    


Author: mdoering@gbif.org
Created: 2012-12-12 10:55:04.763
Updated: 2012-12-12 10:55:04.763
        
Yeah, I cannot reproduce this either with Chrome.
But when there are multiple scientific names in the filter they get shown in a single line. Wouldn't it be better to have one name per line? See attached screenshot
    


Author: fmendez@gbif.org
Comment: so, we couldn't reproduce it, i'll close this issue, Markus you are free of create a new one related to showing each filter in a single line.
Created: 2012-12-12 11:01:37.425
Updated: 2012-12-12 11:01:37.425


Author: mdoering@gbif.org
Created: 2012-12-20 12:02:02.568
Updated: 2012-12-20 12:02:02.568
        
Reopening this issue and rename it. The problem is that the search expects a nub key integer from the autocomplete, but the UI allows to enter real scientific name strings which break the search. Try to quickly enter "abies" into a new scientific name filter and hit return. You'll get this:

http://staging.gbif.org:8080/portal-web-dynamic/occurrence/search?TAXON_KEY=abies


    


Author: fmendez@gbif.org
Comment: http://code.google.com/p/gbif-portal/source/detail?r=1295
Created: 2013-01-10 08:38:50.407
Updated: 2013-01-10 08:38:50.407