[GeoNode-users] GET /h_keywords_api does not return the keywords

Paolo Corti pcorti at gmail.com
Wed Dec 4 18:52:14 PST 2019


Hi Chiara
you are correct. The old feature of taggit with the elements counting
has been lost when the hkeyword app replace taggit app in GeoNode (I believe at
2.4) and all of the keywords are now displayed even if there are not
elements referring to.
For one of the GeoNode instances I am in charge of - where the number
of keywords was becoming really too large, I created a small app which
let the GeoNode admin to select which keywords to show in the left
side search menu.
That is in a private git repo but if there is interest I can port it
to GeoNode core. Though, no countings.
Paolo

On Wed, Dec 4, 2019 at 3:48 AM Chiara Sammarco

<chiara.sammarco at geodatalab.it> wrote:
>
>
>
> Hi again,
> I just wanted to tell that I've found the new tables where the keywords are stored: base_hierarchicalkeyword and base_taggedcontentitem
> Once I repopulated those tables, the keywords appeared in the list.
>
> Now the problems are the following:
> - the keywords are shown only with the folder icons (even id there are no children under them)
> - the number of elements (layers or map) associated to a specific keyword is not shown
> - in the list (both in Maps and in Layers) all the keywords are shown (also if there are no elements for that keyword).
>
> Are these issues? Or am I supposed to do something else?
> Thanks in advance for your help,
> Chiara
>
> On Mon, Dec 2, 2019 at 5:23 PM Chiara Sammarco <chiara.sammarco at geodatalab.it> wrote:
>>
>> Hi all,
>>
>> My environment: SPCGeonode 2.0, Ubuntu 18.04
>>
>> Problem: geonode does not fetch from the database neither the keywords associated to the layers, nor those associated to the maps. So basically the following requests both return an empty array:
>>
>> GET /h_keywords_api?type=layer
>> GET /h_keywords_api?type=map
>>
>> I've checked in the database and the keywords are presents in the taggit_tag and taggit_taggeditem tables.
>> Do you have any suggestions what it could be and how I could fix this?
>> Thanks in advance for your help,
>>
>> Chiara
>>
>>
>>
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users



--
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter: @capooti
skype: capooti
#drt3jc1


More information about the geonode-users mailing list