<div dir="ltr">For the header search is easier since we use autocomplete for it, see this <a href="https://github.com/GeoNode/geonode/blob/master/geonode/base/autocomplete_light_registry.py#L11">https://github.com/GeoNode/geonode/blob/master/geonode/base/autocomplete_light_registry.py#L11</a><div>in the left bar of the search engine you could use autocomplete as well for text inputs. If otherwise you need a prepopulated manu as the regions and categories are then you have to do what Paolo suggested and write a custom api and the template and js to support it. See here the apis <a href="https://github.com/GeoNode/geonode/blob/master/geonode/api/api.py#L59">https://github.com/GeoNode/geonode/blob/master/geonode/api/api.py#L59</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-13 19:50 GMT+02:00 Davi Custodio <span dir="ltr"><<a href="mailto:davicustodio@gmail.com" target="_blank">davicustodio@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Davi Custodio</b> <span dir="ltr"><<a href="mailto:davicustodio@gmail.com" target="_blank">davicustodio@gmail.com</a>></span><br>Date: Mon, Apr 13, 2015 at 1:58 PM<br>Subject: Re: [GeoNode-users] Implement the search for GeoNode for title fields, abstract and keywords<br>To: Paolo Corti <<a href="mailto:pcorti@gmail.com" target="_blank">pcorti@gmail.com</a>><br><br><br><div dir="ltr"><div>Paolo, I'm starting to learn Django, so I still have difficulty identifying some things. In my case, I would have the whole text search (both on the top bar of the layers, as in the sidebar) was applied in the title, abstract and keywords. I understand that in the case of key words I have to implement a for iterating the words to apply the search. But do not know where exactly (where classes) I should do it.</div><div><br></div><div>Thank you.</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 13, 2015 at 10:55 AM, Paolo Corti <span dir="ltr"><<a href="mailto:pcorti@gmail.com" target="_blank">pcorti@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Another approach is to keep javascript as it is, and to override the<br>
GeoNode API in your Django project.<br>
I have to implement something like you are doing, but for tags<br>
associated to models not inheriting from ResourceBase.<br>
<br>
Therefore, in my urls.py:<br>
<br>
api.unregister(geonode_api.TagResource())<br>
api.register(TagResourceSimple())<br>
<br>
where TagResourceSimple is my custom implementation of the Tag API.<br>
Hope it helps<br>
p<br>
<div><div><br>
On Mon, Apr 13, 2015 at 3:17 PM, Simone Dalmasso<br>
<<a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>> wrote:<br>
> Davi, you you want to change the left filter bar behavior then this is the<br>
> place<br>
> <a href="https://github.com/GeoNode/geonode/blob/master/geonode/static/geonode/js/search/search.js" target="_blank">https://github.com/GeoNode/geonode/blob/master/geonode/static/geonode/js/search/search.js</a><br>
> and this folder for the templates as you are seeing<br>
> <a href="https://github.com/GeoNode/geonode/tree/master/geonode/templates/search" target="_blank">https://github.com/GeoNode/geonode/tree/master/geonode/templates/search</a>.<br>
><br>
> Don't hesitate to ask!<br>
><br>
> 2015-04-13 15:08 GMT+02:00 Davi Custodio <<a href="mailto:davicustodio@gmail.com" target="_blank">davicustodio@gmail.com</a>>:<br>
>><br>
>> Hello. I'm trying to customize the GeoNode 2.4 and in other changes, i<br>
>> need to implement the main search find (besides the title field) in abstrace<br>
>> and and keywords fields. I was browsing through all project directories, and<br>
>> could not figure out exactly where I could change this search. I realized<br>
>> that in<br>
>> <a href="https://github.com/GeoNode/geonode/tree/master/geonode/templates/search" target="_blank">https://github.com/GeoNode/geonode/tree/master/geonode/templates/search</a><br>
>> folder are templates responsible for firing searches using Angular JS, but I<br>
>> could not understand exactly how the whole process works, and this would be<br>
>> the right spot to implement the change.<br>
>><br>
>> Can anyone help?<br>
>><br>
>> Thanks.<br>
>><br>
>> --<br>
>> Davi de O. Custódio<br>
>><br>
>> _______________________________________________<br>
>> geonode-users mailing list<br>
>> <a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
>> <a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users</a><br>
>><br>
><br>
><br>
><br>
> --<br>
> Simone<br>
><br>
> _______________________________________________<br>
> geonode-users mailing list<br>
> <a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users</a><br>
><br>
<br>
<br>
<br>
--<br>
</div></div><span><font color="#888888">Paolo Corti<br>
Geospatial software developer<br>
web: <a href="http://www.paolocorti.net" target="_blank">http://www.paolocorti.net</a><br>
twitter: @capooti<br>
skype: capooti<span class="HOEnZb"><font color="#888888"><br>
</font></span></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div>Davi de O. Custódio</div>
</font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></div></div></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div>Davi de O. Custódio</div>
</font></span></div>
<br>_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Simone </div>
</div>