<div dir="ltr"><div><div><div>Jonas,<br><br></div>I think you can do something like this:<br><br></div>first type: python manage.py shell<br><br></div>and then try to replicate the following lines with the information in the xml field:<br><div><div><a href="https://github.com/GeoNode/geonode/blob/master/geonode/layers/utils.py#L425">https://github.com/GeoNode/geonode/blob/master/geonode/layers/utils.py#L425</a><br><br></div><div>The basic idea is to iterate over the values, set them in the model and then save.<br><br></div><div>-a<br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 22, 2015 at 9:25 AM, Jonáš Veselka <span dir="ltr"><<a href="mailto:jonas.veselka@gisat.cz" target="_blank">jonas.veselka@gisat.cz</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><div><div><div><div><div><div>Hi,<br></div>I'm trying to find out how to import metadata.<br><br></div>I'm using GeoNode 2.4b24 with built-in PyCSW. I need to transfer metadata from an old app on GeoNode 1.2 and GeoNetwork.<br><br></div>I was thinking about and trying many ways but it always was too complicated or somehow impossible. Until I've got an advice from Ariel Núñez to place whole XML contents in the field <b>metadata_xml</b>, set <b>metadata_uploaded</b> to true and call PyCSW internals. But how and what to call to redistribute metadata in proper places?<br></div>I tried to call <b>geonode updatelayers -f name_of_the_layer</b> but it didn't change anything.<br><br></div></div></div></div>
<br>_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users</a><br>
<br></blockquote></div><br></div>