[GeoNode-users] How Add Custom Metadata Fields
Joan
joan.machado at gmail.com
Thu Dec 17 10:45:24 PST 2015
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*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20151217/56852d35/attachment.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/56852d35/attachment.png>
More information about the geonode-users
mailing list