Commit 2e578b50 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Migra dominio ThemeInspire hacia servicio Atlas

parent 2111eed4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ define([
		_setFormInDialogViewConfigurations: function() {

			this.formConfig = this._merge([{
				modelTarget: this.target,
				modelTarget: this.editionTarget || this.target,
				modelSchema: this.modelSchema,
				idProperty: this.idProperty,
				lockBackground: true,
+2 −1
Original line number Diff line number Diff line
@@ -19,7 +19,8 @@ define([

			this.config = {
				title: this.i18n.themeInspire,
				target: this.services.themeInspire
				target: this.services.themeInspire,
				editionTarget: this.services.themeInspireEdition
			};

			lang.mixin(this, this.config, args);
+3 −1
Original line number Diff line number Diff line
@@ -136,7 +136,8 @@ define([], function() {
		'affiliation': baseUri + 'organisations',
		'animal': baseUri + 'animals',
		'areaType': baseUri + 'areatypes',
		'themeInspire': baseUri + 'servicesogc/themeinspire',
		'themeInspire': baseUri + 'atlas/view/themeinspire',
		'themeInspireEdition': baseUri + 'atlas/commands/themeinspire',
		'toponymType': baseUri + 'toponymtypes',
		'attributeType': baseUri + 'attributetypes',
		'canaryProtection': baseUri + 'canaryprotections',
@@ -278,6 +279,7 @@ define([], function() {
		'serviceOGC': baseUri + 'servicesogc/layers',
		'serviceOGCCategory': baseUri + 'servicesogc/layers/category',
		'serviceOGCRefresh': baseUri + 'servicesogc/layers/refresh',

		'statistics': baseUri + 'statistics',
		'administrativeStatistics': baseUri + 'statistics/administrative',
		'qFlag': baseUri + 'qflags',
+7 −3
Original line number Diff line number Diff line
@@ -78,7 +78,7 @@ define([

		_pubSave: function(channel, obj) {

			var target = this._getTarget(obj.target);
			var target = this._getPersistenceTarget(obj.target);

			this._publish(channel, {
				idInTarget: obj.idInTarget,
@@ -88,7 +88,7 @@ define([
			});
		},

		_getTarget: function(target) {
		_getPersistenceTarget: function(target) {

			if (target) {
				return target;
@@ -98,11 +98,15 @@ define([
				return this.baseTarget;
			}

			if (this.editionTarget instanceof Array) {
				return this.editionTarget[0];
			}

			if (this.target instanceof Array) {
				return this.target[0];
			}

			return this.target;
			return this.editionTarget || this.target;
		},

		_subSaved: function(result) {