<div dir="ltr"><div><div>You just need to modify models.py and the editor will be updated automagically. Here is an example:<br><br><a href="https://github.com/GFDRR/geonode/commit/29b1a22f186b811b2bdf5014b18ea6bde120c95b">https://github.com/GFDRR/geonode/commit/29b1a22f186b811b2bdf5014b18ea6bde120c95b</a><br><br></div>The key is doing this *before* you load any data on the geonode, because the tables need to be created with different fields.<br><br></div>-a<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 29, 2015 at 10:48 AM, Eduardo Pascoal <span dir="ltr"><<a href="mailto:pascoal.egeo@gmail.com" target="_blank">pascoal.egeo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Ariel Nunez,<br><br>thanks for your prompt answer but probably i didn't make myself clear..<br><br>That is an interesting point to do.  Fork geonode and create a INSPIRE branch with the new metadata editor which for sure would be great for geonode but my problem is beyond that.<br><br>My question it has to do with the begining of all this. How to costumize geonode editor? How dificult is to do that? Geonode predict this kind of costumization? What modifications should i consider?<br><br><br></div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">2015-09-29 16:14 GMT+01:00 Ariel Nunez <span dir="ltr"><<a href="mailto:ingenieroariel@gmail.com" target="_blank">ingenieroariel@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>When modifying the metadata schema, my approach has been to just fork GeoNode and keep the changes restricted to ONLY that change.<br><br></div>The workflow would be:<br><br></div>1. Make sure you have a master branch in your repo that is an exact copy of GeoNode master.<br></div>2. Create a branch with your project name or called 'inspire' for example. Commit the metadata changes there.<br></div>3. If you installed via packages, replace the existing geonode with your version (careful with local_settings.py), clone it via git and then do pip install -e on the folder<br></div><div>4. When 2.4 is final, update your version of master with the latest from GeoNode master (exact copy).<br></div>5. Merge your master into your inspire branch.<br></div>6. Pull the changes from your server into the folder where you did the git clone and reload apache.<br><div><div><br>It sounds a bit convoluted but has worked for me, metadata changes are not easy to do as external apps, contrib or extensions ...<br></div><div><br>-a<br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Tue, Sep 29, 2015 at 10:02 AM, Eduardo Pascoal <span dir="ltr"><<a href="mailto:pascoal.egeo@gmail.com" target="_blank">pascoal.egeo@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div><div><div>Dear all,<br><br></div><div><b>Scenario:</b><br></div><div><br></div></div>i have my own metadata profile based on ISO19139 and INSPIRE implementation rules. I would like to understand how can i modify the geonode metadata editor with extra fields according to my own metadata profile.<br><br><b>Question</b><br><br>What is the best approach to do a metadata editor?  Should i edit base app on contrib folder and update model.py? or create my own app that should override base? What dependencies must i consider to do this?<br><br></div><div>Do you know any documentation about this subject that you suggest?<br></div><div><br></div><div>Any help would be great<br><br></div><div>Best regards,<span><font color="#888888"><br></font></span></div><span><font color="#888888"><div><div><div><div><div><br>-- <br><div><div dir="ltr"><div><div dir="ltr"><br>Eduardo Pascoal</div></div></div></div>
</div></div></div></div></div></font></span></div>
<br></div></div>_______________________________________________<br>
geonode-devel mailing list<br>
<a href="mailto:geonode-devel@lists.osgeo.org" target="_blank">geonode-devel@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-devel" rel="noreferrer" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-devel</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br><div><div dir="ltr"><div><div dir="ltr"><br>Eduardo Pascoal</div></div></div></div>
</font></span></div>
</blockquote></div><br></div>