Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/geonetwork/core-geonetwork
Browse files Browse the repository at this point in the history
… into develop
  • Loading branch information
Jesse Eichar committed Dec 17, 2013
2 parents f3fadc9 + f7b9cfb commit 3d11191
Showing 1 changed file with 5 additions and 6 deletions.
Expand Up @@ -87,9 +87,9 @@ public void create(Element node) throws BadInputEx {
name = Util.getParam(site, "name", "");
uuid = Util.getParam(site, "uuid", UUID.randomUUID().toString());

Element ownerIdE = site.getChild("ownerId");
Element ownerIdE = node.getChild("owner");
if(ownerIdE != null) {
ownerId = ownerIdE.getText();
ownerId = ownerIdE.getChildText("id");
}
ownerIdE = node.getChild("owner");
if(ownerIdE != null) {
Expand Down Expand Up @@ -149,11 +149,10 @@ public void update(Element node) throws BadInputEx {

name = Util.getParam(site, "name", name);

Element ownerIdE = node.getChild("ownerId");
Element ownerIdE = node.getChild("owner");
if(ownerIdE != null) {
ownerId = ownerIdE.getText();
}
else {
ownerId = ownerIdE.getChildText("id");
} else {
Log.warning(Geonet.HARVEST_MAN, "No owner defined for harvester: " + name + " (" + uuid + ")");
}

Expand Down

0 comments on commit 3d11191

Please sign in to comment.