[GeoNode-users] How Add Custom Metadata Fields

Ariel Nunez ingenieroariel at gmail.com
Thu Dec 17 11:17:42 PST 2015


Joan, you can do:

python
import geonode
print geonode.__file__
and then go to that location to find the right file.

-a

On Thu, Dec 17, 2015 at 1:45 PM, Joan <joan.machado at gmail.com> wrote:

> Hi thank you for all, but I try to follow your steps, however I can't find
> the geonode/base/forms.py file anywhere!
>
> root at osmtest:~# sudo find / -iname '*forms.py*' -type f -exec grep -l
> 'Resource
> BaseForm' {} \;
> root at osmtest:~#_
>
> No match results found!
>
> can you help me please?.
>
> regards.
>
> Joan.
>
>
>
>
> 2015-12-16 5:30 GMT-06:00 Tom Kralidis <tomkralidis at gmail.com>:
>
>>
>>
>> On Wed, 16 Dec 2015, Simone Dalmasso wrote:
>>
>> Date: Wed, 16 Dec 2015 12:15:09 +0100
>>> From: Simone Dalmasso <simone.dalmasso at gmail.com>
>>> To: Joan <joan.machado at gmail.com>
>>> Cc: "geonode-users at lists.osgeo.org" <geonode-users at lists.osgeo.org>
>>> Subject: Re: [GeoNode-users] How Add Custom Metadata Fields
>>>
>>> Hi,
>>>
>>> to add fields you have to add them to the ResourceBase model:
>>>
>>> https://github.com/GeoNode/geonode/blob/master/geonode/base/models.py#L205
>>> ,
>>>
>>> then make sure the form supports them
>>> https://github.com/GeoNode/geonode/blob/master/geonode/base/forms.py#L59
>>> ,
>>>
>>> and the pycsw catalogue as well (@tomkralidis correct me):
>>>
>>> https://github.com/GeoNode/geonode/blob/master/geonode/catalogue/backends/pycsw_local_mappings.py
>>>
>>
>> pycsw stores one field per CSW queryable.  If the fields being added are
>> CSW
>> queryables, then they can be added here.  Otherwise, pycsw will work as
>> expected for freetext/spatial/attribute searches.
>>
>>
>>
>>> 2015-12-15 21:00 GMT+01:00 Joan <joan.machado at gmail.com>:
>>>
>>> Hi, we are preparing the GeoNode for a project, where we need add several
>>>> custom metadata fields.
>>>>
>>>> Help me please.
>>>>
>>>> Regards.
>>>>
>>>> Joan.
>>>>
>>>>
>
>
> --
> [image: recicla2] *NO imprima este email, a menos que sea muy necesario.
> Salvemos árboles*
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geonode-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20151217/08cc35e6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 2921 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20151217/08cc35e6/attachment-0001.png>


More information about the geonode-users mailing list