[GeoNode-users] How Add Custom Metadata Fields

Joan joan.machado at gmail.com
Thu Dec 17 11:32:24 PST 2015


Thanks Ariel, I have all ready done what you say, but there isn't the
forms.py file

[image: Imágenes integradas 1]

:(


anything else than I can to do? thanks

J.





2015-12-17 13:17 GMT-06:00 Ariel Nunez <ingenieroariel at gmail.com>:

> 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
>>
>>
>


-- 
[image: recicla2] *NO imprima este email, a menos que sea muy necesario.
Salvemos árboles*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20151217/c88b110b/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/c88b110b/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 60950 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20151217/c88b110b/attachment-0003.png>


More information about the geonode-users mailing list