Issue 14019

In frontpage search results, append right hand links with ?q=<search term>

14019
Reporter: feedback bot
Assignee: cvizitiu
Type: Task
Summary: In frontpage search results, append right hand links with ?q=<search term>
Priority: Major
Resolution: Fixed
Status: Resolved
Created: 2013-09-20 15:42:58.874
Updated: 2014-04-28 11:28:15.853
Resolved: 2014-04-28 11:28:15.822
        
        
Description: From a page like http://uat.gbif.org/taxonomy/term/322, is there any reason why the search links to the right can't be prefilled with ?q=Brazil or whatever  so you can get straight to the right results?

*Reporter*: Donald Hobern
*E-mail*: [mailto:dhobern]]]>
    


Author: mdoering@gbif.org
Comment: Totally makes sense. We can and should link to the Brazil country page (/country/BR), search occurrences about brazil (/occurrence/search?country=BR) and list publishers with full text brazil in them (/publisher/search?q=BR)
Created: 2013-09-20 15:56:18.166
Updated: 2013-09-20 15:56:18.166


Author: cvizitiu@gbif.org
Comment: [~dhobern@gbif.org] [~mdoering@gbif.org] I guess I could try to add code to check for the fact that you're looking at one particular dictionary (the countries one), but it's not straight forward; In this moment, that page is a GENERIC tag page; In other words, you can also search for the term IDs referring to other dictionaries e.g. "http://uat.gbif.org/taxonomy/term/546" which is for "Mentoring". What should the /country/546 return? Or /publisher/search?q=546 for that matter. 
Created: 2013-09-20 16:13:37.591
Updated: 2013-09-20 16:13:37.591


Author: cvizitiu@gbif.org
Created: 2014-01-20 18:44:02.71
Updated: 2014-01-20 18:44:02.71
        

[~mdoering@gbif.org] I've got it working on my WS BUT countries in particular will only search for ISO names on the portal. So "Brazil" makes no sense.

Then we need to decide what to do about the other dictionaries, like in the example I gave: http://www.gbif.org/taxonomy/term/546 which is "Mentoring". Do we have species relating to "Mentoring"? How about datasets? I'm sorry to have to point out again: you can land on the the Drupal generic term page coming from many pages related to News/Comm but with very little or no relationship to the dataset(s) part. :-|
    


Author: omeyn@gbif.org
Created: 2014-01-21 10:18:31.758
Updated: 2014-01-21 10:18:31.758
        
For publishers, push any free text/tag query term.
For occurrences, push only iso country code.
For species, never push.
For countries, push only iso country code.

In all cases all links stay active.
    


Author: cvizitiu@gbif.org
Created: 2014-01-30 17:04:08.151
Updated: 2014-01-30 17:04:08.151
        
[~omeyn@gbif.org], reporter please check

http://staging.gbif.org/taxonomy/term/322

... and give the OK for migration to live eventually close the issue
    


Author: cvizitiu@gbif.org
Comment: Works on staging
Created: 2014-01-30 17:11:16.55
Updated: 2014-01-30 17:11:16.55


Author: omeyn@gbif.org
Comment: In discussing with Cip, some disagreement on the scope of this task. Cip now adding this functionality to home page search as well as already implemented on term page.
Created: 2014-01-31 15:07:39.139
Updated: 2014-01-31 15:07:39.139


Author: cvizitiu@gbif.org
Comment: [~omeyn@gbif.org] On staging, input "Denmark" in the search box, check the links on the right side; Same for "Europe". 
Created: 2014-02-06 21:30:46.917
Updated: 2014-02-06 21:30:46.917


Author: omeyn@gbif.org
Created: 2014-02-07 14:18:09.482
Updated: 2014-02-07 14:18:09.482
        
Even when search gives no results, the right hand side links should still contain the search term. And if it's a country it should be handled like any valid country (e.g. country/DK).

Occurrence search doesn't support free text search (q=) so for countries only it should use country= and ignore any other search term.