Subversion Repositories eFlore/Applications.cel

Rev

Rev 3857 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3857 Rev 3881
Line 47... Line 47...
47
			'date_creation' =>  'date_created',
47
			'date_creation' =>  'date_created',
48
			'type_especes' =>  'taxo_restriction_type',
48
			'type_especes' =>  'taxo_restriction_type',
49
			'referentiel' =>  'taxo_restriction_value',
49
			'referentiel' =>  'taxo_restriction_value',
50
			'type_localisation' =>  'location_type',
50
			'type_localisation' =>  'location_type',
51
			'localisation' =>  'location',
51
			'localisation' =>  'location',
-
 
52
	        'fond_carte' => 'basemap', 
-
 
53
	        'adresse' => 'is_mandatory_address',
-
 
54
	        'photo_obligatoire' => 'is_mandatory_photo',
52
			'milieux' =>  'environment',
55
			'milieux' =>  'environment',
53
			'motscles' =>  'project_tag_name',
56
			'motscles' =>  'project_tag_name',
54
			'info' =>  'info',
57
			'info' =>  'info',
55
	        'id_projet' => 'project_id'
58
	        'id_projet' => 'project_id'
56
	);
59
	);
Line 184... Line 187...
184
		$champsrequete = array(); $i = 0;
187
		$champsrequete = array(); $i = 0;
185
		$champssupp = json_decode($champsinterface['champs-supp'], true); 
188
		$champssupp = json_decode($champsinterface['champs-supp'], true); 
186
		// pour chaque champs-supp, mettre correspondance extended field et extended field trad
189
		// pour chaque champs-supp, mettre correspondance extended field et extended field trad
187
		foreach ($champssupp as $champ) {
190
		foreach ($champssupp as $champ) {
188
			$champsrequete['ce'][$i]['project'] = $champsrequete['cet'][$i]['project'] = $champsinterface['projet'];
191
			$champsrequete['ce'][$i]['project'] = $champsrequete['cet'][$i]['project'] = $champsinterface['projet'];
189
			$champsrequete['cet'][$i]['language_iso_code'] = $champsinterface['langue']; 
192
			$champsrequete['cet'][$i]['language_iso_code'] = isset($champsinterface['langue']) && $champsinterface['langue'] != "" ? $champsinterface['langue'] : "fr"; 
190
			// pour la table extended fiels champs interface => champs bd
193
			// pour la table extended fiels champs interface => champs bd
191
			foreach ($this->correspondance_champs_etendus as $ci => $ce) {
194
			foreach ($this->correspondance_champs_etendus as $ci => $ce) {
192
				if (isset($champ[$ci]) && $champ[$ci] != "") {
195
				if (isset($champ[$ci]) && $champ[$ci] != "") {
193
					$champsrequete['ce'][$i][$ce] = $champ[$ci];
196
					$champsrequete['ce'][$i][$ce] = $champ[$ci];
194
				} else {
197
				} else {
Line 197... Line 200...
197
					} else {
200
					} else {
198
						$champsrequete['ce'][$i][$ce] = "";
201
						$champsrequete['ce'][$i][$ce] = "";
199
					}
202
					}
200
				}
203
				}
201
			}
204
			}
-
 
205
			$champsrequete['ce'][$i]["is_visible"] = "1";
202
			// pour la table extended fiels trad champs interface => champs bd
206
			// pour la table extended fiels trad champs interface => champs bd
203
			foreach ($this->correspondance_champs_etendus_trad as $cit => $cr) {
207
			foreach ($this->correspondance_champs_etendus_trad as $cit => $cr) {
204
				if (isset($champ[$cit]) && is_array($champ[$cit])) {
208
				if (isset($champ[$cit]) && is_array($champ[$cit])) {
205
					$champsrequete['cet'][$i][$cr] = json_encode($champ[$cit]);
209
					$champsrequete['cet'][$i][$cr] = json_encode($champ[$cit]);
206
				} elseif (isset($champ[$cit]) && $champ[$cit] != "") {
210
				} elseif (isset($champ[$cit]) && $champ[$cit] != "") {