[GeoNode-users] Geonode - Metadat - Extra Fields
Toni Schönbuchner
toni.schoenbuchner at csgis.de
Fri Feb 23 17:25:46 PST 2018
Dear Pascal,
if you like to go all the way extend the ressourcebase model
https://github.com/t-book/geonode/blob/2.6.x/geonode/base/models.py#L399 <https://github.com/t-book/geonode/blob/2.6.x/geonode/base/models.py#L399>
… create a new app or fork. Simone correct me if I´m wrong ;).
Next – if needed – extend the metadata Catalog. Create a new scheme or extend an existing.
As a starting point:
https://github.com/GeoNode/geonode/blob/2.6.x/geonode/catalogue/backends/generic.py <https://github.com/GeoNode/geonode/blob/2.6.x/geonode/catalogue/backends/generic.py>
https://gis.stackexchange.com/questions/226950/geonode-pycsw-additional-elements-from-ressourcebase-in-new-schema <https://gis.stackexchange.com/questions/226950/geonode-pycsw-additional-elements-from-ressourcebase-in-new-schema>
As a „lightweight" alternative .. in some project we currently support metadata-extrafields simply by
exending the backend form, save the data as json in some DB-colomn
and read it in the frontend template. Of course this has downsides like search etc ….
But this might not be what you´re asking for.
Sorry if my answer is vague, but the topic is extensive … ask if you need more
detailed instructions.
Regards,
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
Web http://csgis.de
-----------------------------------------------
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 23.02.2018 um 21:00 schrieb geonode-users-request at lists.osgeo.org:
>
> 2018-02-23 14:04 GMT+01:00 Pascal Coulon <Pascal.Coulon at scisys.co.uk <mailto:Pascal.Coulon at scisys.co.uk>>:
>
>> Hi,
>>
>>
>>
>> A simple question, does anyone know how one can extend the metadata model
>> in Geonode. We would like to add extra field to the base metadata model.
>> This means that we should be able to import and export the a metadata file
>> with the extra fields.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20180224/0d54f4f5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20180224/0d54f4f5/attachment.sig>
More information about the geonode-users
mailing list