Limit amount of people results

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Limit amount of people results

toni_schoenbuchner
Dear Naresh,

sorry, please ignore what I´ve written below.After a second look I don´t think it will work as the angular module is
initated before. Means the second way, changing the search script to your
needs might be the way to go.

cheers,

toni

Anfang der weitergeleiteten Nachricht:

Betreff: geonode-users Digest, Vol 30, Issue 50
Datum: 13. Juli 2017 um 08:25:39 MESZ
Antwort an: [hidden email]

from a quick look it´s the same angular controller for both api requests.
Means all use the same max var. If you like to have the amount different
on peoples page only you could give a try to override
this variable in the peoples template. From naming I think it should be
profile_list.html

here I would try to add a new var after line 28
https://github.com/GeoNode/geonode/blob/master/geonode/people/templates/people/profile_list.html#L28<https://github.com/GeoNode/geonode/blob/master/geonode/people/templates/people/profile_list.html#L28>

<script type="text/javascript">
  CLIENT_RESULTS_LIMIT = 10;
</script>


_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users

signature.asc (859 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Limit amount of people results

naresh
Dear Toni,
 Thanks a lot for response. Now i could able to fix by doing following changes
1. Settings.py CLIENT_RESULTS_LIMIT = 10 and API_LIMIT_PER_PAGE = 10
2. In  /geonode/api/api.py  mnewly added max_limit =10 is added in meta class of  GroupResource and Profile resouce
3. In  /geonode/api/resourcebase_api.py max_limit value is changed from NONE to 10 and limit value 10  

Thanks again for support

Best Regards,
Naresh

On Thu, Jul 13, 2017 at 1:46 PM, Toni Schönbuchner <[hidden email]> wrote:
Dear Naresh,

sorry, please ignore what I´ve written below.After a second look I don´t think it will work as the angular module is
initated before. Means the second way, changing the search script to your
needs might be the way to go.

cheers,

toni

Anfang der weitergeleiteten Nachricht:

Betreff: geonode-users Digest, Vol 30, Issue 50
Datum: 13. Juli 2017 um 08:25:39 MESZ
Antwort an: [hidden email]

from a quick look it´s the same angular controller for both api requests.
Means all use the same max var. If you like to have the amount different
on peoples page only you could give a try to override
this variable in the peoples template. From naming I think it should be
profile_list.html

here I would try to add a new var after line 28
https://github.com/GeoNode/geonode/blob/master/geonode/people/templates/people/profile_list.html#L28<https://github.com/GeoNode/geonode/blob/master/geonode/people/templates/people/profile_list.html#L28>

<script type="text/javascript">
  CLIENT_RESULTS_LIMIT = 10;
</script>



_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users
Reply | Threaded
Open this post in threaded view
|

Re: Limit amount of people results

toni_schoenbuchner
Great to hear!

All the best,

Toni

-----------------------------------------------
CSGIS

-----------------------------------------------
Kolonnadenstraße 1
04109 Leipzig
-----------------------------------------------
Mobil +49/ (0) 176 6680 3198
Tel  +49/ (0) 341 24 04 738
Fax  +49/ (0) 341 24 04 73
-----------------------------------------------

Hinweis gemäß § 33 BDSG
Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist ausschließlich für den 
Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie diese E-Mail versehentlich 
erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und löschen Sie diese Nachricht 
von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung, Vervielfältigung, Veränderung, 
Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.

Am 13.07.2017 um 14:14 schrieb Naresh N <[hidden email]>:

Dear Toni,
 Thanks a lot for response. Now i could able to fix by doing following changes
1. Settings.py CLIENT_RESULTS_LIMIT = 10 and API_LIMIT_PER_PAGE = 10
2. In  /geonode/api/api.py  mnewly added max_limit =10 is added in meta class of  GroupResource and Profile resouce
3. In  /geonode/api/resourcebase_api.py max_limit value is changed from NONE to 10 and limit value 10  

Thanks again for support

Best Regards,
Naresh

On Thu, Jul 13, 2017 at 1:46 PM, Toni Schönbuchner <[hidden email]> wrote:
Dear Naresh,

sorry, please ignore what I´ve written below.After a second look I don´t think it will work as the angular module is
initated before. Means the second way, changing the search script to your
needs might be the way to go.

cheers,

toni

Anfang der weitergeleiteten Nachricht:

Betreff: geonode-users Digest, Vol 30, Issue 50
Datum: 13. Juli 2017 um 08:25:39 MESZ
Antwort an: [hidden email]

from a quick look it´s the same angular controller for both api requests.
Means all use the same max var. If you like to have the amount different
on peoples page only you could give a try to override
this variable in the peoples template. From naming I think it should be
profile_list.html

here I would try to add a new var after line 28
https://github.com/GeoNode/geonode/blob/master/geonode/people/templates/people/profile_list.html#L28<https://github.com/GeoNode/geonode/blob/master/geonode/people/templates/people/profile_list.html#L28>

<script type="text/javascript">
  CLIENT_RESULTS_LIMIT = 10;
</script>




_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users

signature.asc (859 bytes) Download Attachment