[Mapbender-commits] r6916 - in trunk/mapbender: http/classes http/plugins resources/db

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Sep 15 03:41:33 EDT 2010


Author: armin11
Date: 2010-09-15 07:41:32 +0000 (Wed, 15 Sep 2010)
New Revision: 6916

Added:
   trunk/mapbender/http/plugins/mb_div_collection.js
   trunk/mapbender/http/plugins/mb_extendedSearch.js
   trunk/mapbender/http/plugins/mb_extendedSearch_server.php
   trunk/mapbender/resources/db/extendedSearchGui.sql
Modified:
   trunk/mapbender/http/classes/class_metadata_new.php
Log:
Draft of a new metadata search gui which calls the mapbender metadata json interface. (from geoportal.rlp - development)

Modified: trunk/mapbender/http/classes/class_metadata_new.php
===================================================================
--- trunk/mapbender/http/classes/class_metadata_new.php	2010-09-10 11:22:39 UTC (rev 6915)
+++ trunk/mapbender/http/classes/class_metadata_new.php	2010-09-15 07:41:32 UTC (rev 6916)
@@ -1522,7 +1522,7 @@
 			$servObject->layer[$countsublayer]->title = $child['layer_title'];
 			$servObject->layer[$countsublayer]->abstract = $child['layer_abstract'];
 			$servObject->layer[$countsublayer]->previewURL = "http://".$this->hostName."/mapbender/x_geoportal/mod_layerPreview.php?id=".$child['layer_id'];
-			$servObject->layer[$countsublayer]->mdLink = "http://".$this->hostName."/mapbender/x_geoportal/mod_layerMetadata.php?id=".$child['layer_id'];
+			$servObject->layer[$countsublayer]->mdLink = "http://".$this->hostName."/mapbender/x_geoportal/mod_showMetadata.php?resource=layer&id=".$child['layer_id'];
 			if ($child['layer_name'] == ''){
 				$servObject->layer[$countsublayer]->loadable = 0;
 			} else {

Added: trunk/mapbender/http/plugins/mb_div_collection.js
===================================================================
--- trunk/mapbender/http/plugins/mb_div_collection.js	                        (rev 0)
+++ trunk/mapbender/http/plugins/mb_div_collection.js	2010-09-15 07:41:32 UTC (rev 6916)
@@ -0,0 +1,51 @@
+/**
+ * Package: mb_div_collection
+ *
+ * Description:
+ *
+ * Puts existing div elements in a new element - see this as a container
+ * List the elements which should be integrated comma-separated under target.
+ *  
+ * Files:
+ * - http/plugins/mb_div_collection.js
+ *
+ * SQL:
+ * > INSERT INTO gui_element(fkey_gui_id, e_id, e_pos, e_public, e_comment, 
+ * > e_title, e_element, e_src, e_attributes, e_left, e_top, e_width, 
+ * > e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, 
+ * > e_mb_mod, e_target, e_requires, e_url) VALUES('<appId>',
+ * > 'mb_div_collection',3,1,
+ * > 'existing divs in new div object. List the elements comma-separated under target.',
+ * > '','div','','',NULL ,NULL ,NULL ,NULL ,NULL ,'',
+ * > '','div',
+ * > '../plugins/mb_div_collection.js','','','','');
+ * 
+ * Help:
+ *
+ * Maintainer:
+ * http://www.mapbender.org/User:Armin_Retterath
+ *
+ * License:
+ * Copyright (c) 2009, Open Source Geospatial Foundation
+ * This program is dual licensed under the GNU General Public License
+ * and Simplified BSD license.
+ * http://svn.osgeo.org/mapbender/trunk/mapbender/license/license.txt
+ */
+
+var $parentDiv = $(this);
+
+var DivContainerApi = function (o) {
+	var that = this;
+	
+	this.create = function () {
+		o.$target.each(function () {
+			var $currentDivEntry = $(this);
+			$parentDiv.append($currentDivEntry);
+
+		});
+	
+	};
+	this.create();
+};
+
+$parentDiv.mapbender(new DivContainerApi(options));

Added: trunk/mapbender/http/plugins/mb_extendedSearch.js
===================================================================
--- trunk/mapbender/http/plugins/mb_extendedSearch.js	                        (rev 0)
+++ trunk/mapbender/http/plugins/mb_extendedSearch.js	2010-09-15 07:41:32 UTC (rev 6916)
@@ -0,0 +1,359 @@
+/**
+ * Package: mb_extendedSearch.js
+ *
+ * Description:
+ *
+ * Module for the extended search form. The form itself a mapbender gui.
+ * Corresponding server file plugins/mb_extendedSearch_server.php
+ * 
+ *  
+ * Files:
+ * - http/plugins/mb_extendedSearch.js
+ *
+ * SQL:
+ * >see ../../db/extentedSearchGui.sql
+ * >
+ * >
+ * >
+ * >
+ * >
+ * >
+ * >
+ * >
+ * 
+ * Help:
+ *
+ * Maintainer:
+ * http://www.mapbender.org/User:Armin_Retterath
+ *
+ * License:
+ * Copyright (c) 2009, Open Source Geospatial Foundation
+ * This program is dual licensed under the GNU General Public License
+ * and Simplified BSD license.
+ * http://svn.osgeo.org/mapbender/trunk/mapbender/license/license.txt
+ */
+
+
+
+
+var empty = 'false';
+var obj = {};
+//define variables for the 2 different forms:
+var form1 = document.getElementsByName('form1')[0];
+var form2 = document.getElementsByName('form2')[0];
+
+/**
+ * get list of all information by ajax call when intializing the client
+ */
+function requestList(){
+	obj['action'] = 'getList';
+	var obj2json = $.toJSON(obj);
+	getList(obj2json);
+}
+
+Mapbender.events.init.register(function () {
+	$('.hasdatepicker').datepicker({dateFormat:'yy-mm-dd',showOn: 
+'button', buttonImage: '../img/calendar.png', buttonImageOnly: true, 
+constraintInput: true});
+	$("button, input:submit, a", ".button").button();
+
+    requestList();
+});
+
+/**Mapbender.events.init.register(
+	function() {
+		$("#tabs").tabs();
+	}
+);*/
+
+
+/**
+ * Ajax-JSON function to get list of all departments from server
+ */
+function getList(obj){
+	mb_ajax_post("../x_geoportal/suche/mod_extendedSearch_serverNew.php",{"obj":obj}, function (json,status){
+		if(status == 'success'){
+			appendList(json);
+			$("form[name='form1']").find('.help-dialog').helpDialog();
+		}		
+		else{
+			alert("An error occured!");
+		}
+	});
+}
+
+/**
+ * Function to fill department list selectbox 
+ */
+function appendList(json){
+	var djson = json;
+	//new options for department list
+	for(var i=0; i<djson.entries.group_name.length; i++){
+		var newOption = new Option(djson.entries.group_name[i],djson.entries.user_department[i],false,false);
+		var list = form1.registratingDepartments;
+		newOption.newAttribute = "title";
+		newOption.title = djson.entries.group_title[i];
+		list.options[list.length] = newOption;
+	}
+	
+	//new options for inspire list
+	for(var i=0; i<djson.entries.inspire_cat_name.length; i++){
+		var newOption = new Option(djson.entries.inspire_cat_name[i],djson.entries.inspire_cat_id[i],false,false);
+		var list = form1.inspireThemes;
+		newOption.newAttribute = "title";
+		newOption.title = djson.entries.inspire_cat_title[i];
+		list.options[list.length] = newOption;
+	}
+
+	//new options for iso list
+	for(var i=0; i<djson.entries.iso_cat_name.length; i++){
+		var newOption = new Option(djson.entries.iso_cat_name[i],djson.entries.iso_cat_id[i],false,false);
+		var list = form1.isoCategories;
+		newOption.newAttribute = "title";
+		newOption.title = djson.entries.iso_cat_title[i];
+		list.options[list.length] = newOption;
+	}
+
+	//new options for custom list
+	for(var i=0; i<djson.entries.custom_cat_name.length; i++){
+		var newOption = new Option(djson.entries.custom_cat_name[i],djson.entries.custom_cat_id[i],false,false);
+		var list = form1.customCategories;
+		newOption.newAttribute = "title";
+		newOption.title = djson.entries.custom_cat_title[i];
+		list.options[list.length] = newOption;
+	}
+
+	//push translations to form (text fields)
+	//for (var key in djson.entries.translations) {
+	for (var key in djson.entries.translations) {
+		if (key != 'search') { //search is the text for the search button
+			if (key.substring(0,4) != 'help') {
+       				$("#" + key).text(djson.entries.translations[key]);
+			}
+			else {
+				//alert("help found: "+djson.entries.translations[key]);
+				$("#" + key).attr("help","{text:'"+djson.entries.translations[key]+"'}");
+			}
+		}
+		else {
+			$("#" + key).val(djson.entries.translations[key]);
+			$("#" + key).text(djson.entries.translations[key]);
+		}
+	}
+}
+
+function removeListSelections(listname){
+	eval("var list = document.getElementById('"+listname+"');");
+	list.selectedIndex = -1;
+} 
+
+function getValueSearchTypeBbox()
+{
+for (var i=0; i < document.form2.searchTypeBbox.length; i++)
+   {
+   if (document.form2.searchTypeBbox[i].checked)
+      {
+      return document.form2.searchTypeBbox[i].value;
+      }
+   }
+}
+
+function getValueSortBy()
+{
+for (var i=0; i < document.form2.sortBy.length; i++)
+   {
+   if (document.form2.sortBy[i].checked)
+      {
+      return document.form2.sortBy[i].value;
+      }
+   }
+}
+
+/**
+* Function to get map extent of current mapframe1 
+*
+*/
+function getMapExtent(obj){
+	if(obj.checked == true){
+		var mapObj = getMapObjByName("mapframe1");
+		document.form2.searchBbox.value = mapObj.extent;
+	}
+	else{
+		document.form2.searchBbox.value = null;
+	}
+}
+
+/**
+* Function to get values of form1 and fill hidden fields of form2
+*
+*/
+function validate(){
+	var send = true;
+
+	//departments
+	var departments = [];
+	var cnt=0;
+	for(var i=0; i<form1.registratingDepartments.length; i++){
+		if(form1.registratingDepartments.options[i].selected == true){
+			departments[cnt] = form1.registratingDepartments.options[i].value;
+			cnt++;
+		}	
+	}
+	if(cnt>0){
+		form2.registratingDepartments.value = departments.join(",");
+	}
+	else{
+		form2.registratingDepartments.value = empty;
+	}
+
+	//isocategories
+	var categories=[];
+	var cnt=0;
+	for(var i=0; i<form1.isoCategories.length; i++){
+		if(form1.isoCategories.options[i].selected == true){
+			categories[cnt] = form1.isoCategories.options[i].value;
+			cnt++;
+		}	
+	}
+	if(cnt>0){
+		form2.isoCategories.value = categories.join(",");
+	}
+	else{
+		form2.isoCategories.value = empty;
+	}
+
+	//customcategories
+	var categories=[];
+	var cnt=0;
+	for(var i=0; i<form1.customCategories.length; i++){
+		if(form1.customCategories.options[i].selected == true){
+			categories[cnt] = form1.customCategories.options[i].value;
+			cnt++;
+		}	
+	}
+	if(cnt>0){
+		form2.customCategories.value = categories.join(",");
+	}
+	else{
+		form2.customCategories.value = empty;
+	}
+
+	//inspirethemes
+	var categories=[];
+	var cnt=0;
+	for(var i=0; i<form1.inspireThemes.length; i++){
+		if(form1.inspireThemes.options[i].selected == true){
+			categories[cnt] = form1.inspireThemes.options[i].value;
+			cnt++;
+		}	
+	}
+	if(cnt>0){
+		form2.inspireThemes.value = categories.join(",");
+	}
+	else{
+		form2.inspireThemes.value = empty;
+	}
+
+	//searchText
+	if(form1.searchText.value != ""){
+		form2.searchText.value = form1.searchText.value;
+	}
+	else{
+		form2.searchText.value = empty;
+	}
+
+	//validFrom
+	var regTimeBegin = form1.regTimeBegin.value;
+	if(regTimeBegin != ""){
+		//var ds = regTimeBegin.split(".");
+		// var d = new Date(parseInt(ds[2]),(parseInt(ds[1] - 1)),parseInt(ds[0]));
+		 form2.regTimeBegin.value = regTimeBegin;
+	}else{
+		form2.regTimeBegin.value = empty;
+	}
+
+	//validTo
+	var regTimeEnd = form1.regTimeEnd.value;
+	if(regTimeEnd != ""){
+		//var ds = regTimeEnd.split(".");
+		//var d = new Date(parseInt(ds[2]),(parseInt(ds[1] - 1)),parseInt(ds[0]));
+		form2.regTimeEnd.value = regTimeEnd;
+	}
+	else{
+		form2.regTimeEnd.value = empty;
+	}
+
+	//dataFrom
+	var timeBegin = form1.timeBegin.value;
+	if(timeBegin != ""){
+		//var ds = timeBegin.split(".");
+		 //var d = new Date(parseInt(ds[2]),(parseInt(ds[1] - 1)),parseInt(ds[0]));
+		 form2.timeBegin.value = timeBegin;
+	}else{
+		form2.timeBegin.value = empty;
+	}
+	//dataTo
+	var timeEnd = form1.timeEnd.value;
+	if(timeEnd != ""){
+		//var ds = timeEnd.split(".");
+		//var d = new Date(parseInt(ds[2]),(parseInt(ds[1] - 1)),parseInt(ds[0]));
+		form2.timeEnd.value = timeEnd;
+	}
+	else{
+		form2.timeEnd.value = empty;
+	}
+
+	//searchTypeBbox
+	var searchTypeBbox = empty;
+	
+	for (var i=0; i < form1.searchTypeBbox.length; i++){
+		
+  		if (form1.searchTypeBbox[i].checked){
+			
+     			searchTypeBbox = form1.searchTypeBbox[i].value;
+			
+      		}
+  	}
+	form2.searchTypeBbox.value = searchTypeBbox;	
+	
+	//searchBbox
+	getMapExtent(form1.searchBbox);
+	
+	//sortBy
+	var orderBy = empty;
+	
+	for (var i=0; i < form1.orderBy.length; i++){
+		
+  		if (form1.orderBy[i].checked){
+			
+     			orderBy = form1.orderBy[i].value;
+			
+      		}
+  	}
+	form2.orderBy.value = orderBy;
+
+	//searchResources
+	var searchResources = [];
+	var cnt=0;
+	var inputElements = document.getElementsByTagName("input");
+	for(var i=0; i<inputElements.length; i++){
+    		if(inputElements[i].name.indexOf("checkResources") != -1){
+    			if(inputElements[i].checked==true){
+    				searchResources[cnt] = inputElements[i].value;
+    				cnt++;	
+    			}		
+    		}
+   	}
+   	if(cnt>0){
+		form2.searchResources.value = searchResources.join(",");
+	}
+	else{
+		form2.searchResources.value = empty;
+	}	
+
+	if(send == true){
+		form2.submit();
+	}
+	return false;
+}
+

Added: trunk/mapbender/http/plugins/mb_extendedSearch_server.php
===================================================================
--- trunk/mapbender/http/plugins/mb_extendedSearch_server.php	                        (rev 0)
+++ trunk/mapbender/http/plugins/mb_extendedSearch_server.php	2010-09-15 07:41:32 UTC (rev 6916)
@@ -0,0 +1,244 @@
+<?php 
+session_start();
+require_once(dirname(__FILE__)."/../../../core/globalSettings.php");
+include_once(dirname(__FILE__)."/../../extensions/JSON.php");
+
+//db connection
+$con = db_connect($DBSERVER,$OWNER,$PW) or die ("Error while connecting database $dbname");
+db_select_db(DB,$con);
+
+//Define JSON object
+$json = new Services_JSON();
+$obj = $json->decode(stripslashes($_REQUEST['obj']));
+
+//get language parameter out of mapbender session if it is set else set default language to de_DE
+if (isset($_SESSION['mb_lang']) and $_SESSION['mb_lang']!='') {
+	$e = new mb_exception("mb_extentedSearch_server.php: language in session: ".$_SESSION['mb_lang']);
+	$language = $_SESSION["mb_lang"];
+} else {
+	$language = "de_DE";//use locale for compatibility with later mapbender version
+}
+
+//extract language code out of locale
+
+$langCode = explode("_", $language);
+
+$langCode = $langCode[0];
+
+#$langCode="de";
+
+$e = new mb_exception("mb_extendendSearch_server.php: language: ".$langCode);
+
+//workflow:
+switch($obj->action){
+	case 'getList':
+		$obj->entries = getList($langCode);
+		sendOutput($obj);
+	break;
+	default:
+		sendOutput("no action specified...");
+}
+
+/**
+ * Get all departments (user_ids and department names), categories
+ * 
+ * @return mixed[] the user_ids and names of the departments, category names and ids 
+ */
+  
+function getList($langCode){
+	global $con;
+	$entries = array();
+	$entries['translations'] = array();
+	switch ($langCode) {
+		case 'de':
+			$entries['translations']['extendedSearchTitle'] = 'Erweiterte Suche';
+			$entries['translations']['extendedSearchTitleBc'] = 'Erweiterte Suche';
+			$entries['translations']['legendSearchTextTitle'] = 'Suchbegriff(e)';
+			$entries['translations']['legendSpatialFilterTitle'] = 'Räumliche Eingrenzung';
+			$entries['translations']['labelSpatialFilter'] = 'räumliche Eingrenzung aktivieren';
+			$entries['translations']['labelSpatialFilterType'] = 'wie?';
+			$entries['translations']['searchTypeBboxIntersects'] = 'angeschnitten';
+			$entries['translations']['searchTypeBboxOutside'] = 'ganz außerhalb';
+			$entries['translations']['searchTypeBboxInside'] = 'innerhalb';
+			$entries['translations']['orderByRelevance'] = 'Relevanz';
+			$entries['translations']['orderByTitle'] = 'Titel';
+			$entries['translations']['orderById'] = 'ID';
+			$entries['translations']['orderByDate'] = 'Datum';
+			$entries['translations']['legendOrderBy'] = 'Sortieren nach:';
+			$entries['translations']['legendDepartment'] = 'Anbieter:';
+			$entries['translations']['legendInspireThemes'] = 'Inspire Themen';
+			$entries['translations']['legendIsoCategories'] = 'ISO19115 Themen';
+			$entries['translations']['legendCustomCategories'] = 'Andere Themen';
+			$entries['translations']['legendDateOfPublication'] = 'Veröffentlichungsdatum';
+			$entries['translations']['legendDateOfLastRevision'] = 'Datenaktualität';
+			$entries['translations']['labelDateOfPublicationStart'] = 'Datum von:';
+			$entries['translations']['labelDateOfPublicationEnd'] = 'Datum bis:';
+			$entries['translations']['labelDateOfLastRevisionStart'] = 'Datum von:';
+			$entries['translations']['labelDateOfLastRevisionEnd'] = 'Datum bis:';
+			$entries['translations']['legendSearchResources'] = 'Ressourcentypen';
+			$entries['translations']['labelIntersects'] = 'angeschnitten';
+			$entries['translations']['labelOutside'] = 'außerhalb';
+			$entries['translations']['labelInside'] = 'komplett innerhalb';
+			$entries['translations']['labelOrderByRank'] = 'Nachfrage';
+			$entries['translations']['labelOrderByTitle'] = 'Titel';
+			$entries['translations']['labelOrderById'] = 'Identifikation';
+			$entries['translations']['labelOrderByDate'] = 'Datum';
+			$entries['translations']['labelCheckResourcesWms'] = 'Interaktive Karten';
+			$entries['translations']['labelCheckResourcesWfs'] = 'Such/Download/Erfassungsmodule';
+			$entries['translations']['labelCheckResourcesWmc'] = 'Kartensammlungen';
+			$entries['translations']['labelCheckResourcesGeorss'] = 'GeoRSS Newsfeeds';
+			$entries['translations']['checkResourcesWms'] = 'Kartendienste';
+			$entries['translations']['checkResourcesWfs'] = 'Such- und Downloaddienste';
+			$entries['translations']['checkResourcesWmc'] = 'Kartenzusammenstellungen';
+			$entries['translations']['checkResourcesGeorss'] = 'GeoRSS Feeds';
+			$entries['translations']['search'] = 'Suche starten';
+			$entries['translations']['deleteSelection1'] = 'Auswahl löschen';
+			$entries['translations']['deleteSelection2'] = 'Auswahl löschen';
+			$entries['translations']['deleteSelection3'] = 'Auswahl löschen';
+			$entries['translations']['deleteSelection4'] = 'Auswahl löschen';
+			$entries['translations']['classificationsLegend'] = 'Klassifikationen';
+			$entries['translations']['legendActuality'] = 'Zeitliche Einschränkung';
+			$entries['translations']['helpInspireThemes'] = 'Hilfe zu den Inspire Themenbereichen';
+			$entries['translations']['helpSearchText'] = 'Hilfe zur Textsuche. Bitte geben Sie hier kommasepariert eine Liste von Suchbegriffen ein. Die Begriffe werden für eine Volltextsuche über Titel, Beschreibung und Keywords verwendet. Die Verknüpfung der Suchbegriffe geschieht über ein UND. Je mehr Begriffe eingegeben werden, desto weniger Treffer werden gefunden. <a href="http://www.geoportal.rlp.de">testlink</a>';
+			$entries['translations']['helpIsoCategories'] = 'Hilfe zu den ISO Kategorien';
+			$entries['translations']['helpCustomCategories'] = 'Hilfe zu eigenen Themenkategorien';
+			$entries['translations']['helpOrderBy'] = 'Hilfe zu Sortierung der Liste';
+			$entries['translations']['helpSpatialFilter'] = 'Hilfe zum räumlichen Filter';
+			$entries['translations']['helpProvider'] = 'Hilfe zu den Providern';
+			$entries['translations']['helpDateOfPublication'] = 'Hilfe zum Veröffentlichungsdatum';
+			$entries['translations']['helpDateOfLastRevision'] = 'Hilfe zum Datum der letzten Änderung';
+			$entries['translations']['helpSearchResources'] = 'Hilfe zu den Resourcentypen';
+
+			$exceptionGroupTitle = "Es wurde noch kein Titel für die Gruppe eingestellt!";
+			break;
+		case 'en':
+			$entries['translations']['extendedSearchTitle'] = 'Extended Search';
+			$entries['translations']['extendedSearchTitleBc'] = 'Extended Search';
+			$entries['translations']['legendSearchTextTitle'] = 'Searchterm(s)';
+			$entries['translations']['legendSpatialFilterTitle'] = 'Spatial Filter';
+			$entries['translations']['labelSpatialFilter'] = 'activate spatial filter';
+			$entries['translations']['labelSpatialFilterType'] = 'how?';
+			$entries['translations']['searchTypeBboxIntersects'] = 'intersects';
+			$entries['translations']['searchTypeBboxOutside'] = 'outside';
+			$entries['translations']['searchTypeBboxInside'] = 'fully inside';
+			$entries['translations']['orderByRelevance'] = 'relevance';
+			$entries['translations']['orderByTitle'] = 'title';
+			$entries['translations']['orderById'] = 'identification';
+			$entries['translations']['orderByDate'] = 'date';
+			$entries['translations']['legendOrderBy'] = 'Sort by:';
+			$entries['translations']['legendDepartment'] = 'Provider:';
+			$entries['translations']['legendInspireThemes'] = 'Inspire themes';
+			$entries['translations']['legendIsoCategories'] = 'ISO19115 themes';
+			$entries['translations']['legendCustomCategories'] = 'Other themes';
+			$entries['translations']['legendDateOfPublication'] = 'Date of publication/last revision';
+			$entries['translations']['legendDateOfLastRevision'] = 'Data Actuality';
+			$entries['translations']['labelDateOfPublicationStart'] = 'Date from:';
+			$entries['translations']['labelDateOfPublicationEnd'] = 'Date to:';
+			$entries['translations']['labelDateOfLastRevisionStart'] = 'Date from:';
+			$entries['translations']['labelDateOfLastRevisionEnd'] = 'Date to:';
+			$entries['translations']['legendSearchResources'] = 'Types of resources';
+			$entries['translations']['labelIntersects'] = 'intersects';
+			$entries['translations']['labelOutside'] = 'outside';
+			$entries['translations']['labelInside'] = 'completely inside';
+			$entries['translations']['labelOrderByRank'] = 'relevance';
+			$entries['translations']['labelOrderByTitle'] = 'title';
+			$entries['translations']['labelOrderById'] = 'identification';
+			$entries['translations']['labelOrderByDate'] = 'date';
+			$entries['translations']['labelCheckResourcesWms'] = 'Viewing Services';
+			$entries['translations']['labelCheckResourcesWfs'] = 'Search/Download/Digitize modules';
+			$entries['translations']['labelCheckResourcesWmc'] = 'Map Collections';
+			$entries['translations']['labelCheckResourcesGeorss'] = 'GeoRSS Newsfeeds';
+			$entries['translations']['search'] = 'Start Search';
+			$entries['translations']['deleteSelection1'] = 'Delete current selection';
+			$entries['translations']['deleteSelection2'] = 'Delete current selection';
+			$entries['translations']['deleteSelection3'] = 'Delete current selection';
+			$entries['translations']['deleteSelection4'] = 'Delete current selection';
+			$entries['translations']['classificationsLegend'] = 'Classifications';
+			$entries['translations']['legendActuality'] = 'Temporal Filter';
+			$entries['translations']['helpInspireThemes'] = 'Help for the Inspire Themes';
+			$entries['translations']['helpSearchText'] = 'Help for Fulltextsearch';
+			$entries['translations']['helpIsoCategories'] = 'Help for ISO19115 classification';
+			$entries['translations']['helpCustomCategories'] = 'Help for own classification';
+			$entries['translations']['helpOrderBy'] = 'Help for ordering filter';
+			$entries['translations']['helpSpatialFilter'] = 'Help for spatial Filter';
+			$entries['translations']['helpProvider'] = 'Help for registrating departments';
+			$entries['translations']['helpDateOfPublication'] = 'Help for date of publication';
+			$entries['translations']['helpDateOfLastRevision'] = 'Help for date of last revision';
+			$entries['translations']['helpSearchResources'] = 'Help for types of resources';
+
+			$exceptionGroupTitle = "The title for this group have not been defined till now!";
+
+			break;
+		case 'fr':
+			break;
+		case 'es':
+
+		
+			break;
+		default:
+	}
+	$entries['user_department'] = array();
+	$entries['group_name'] = array();
+	$entries['group_title'] = array();
+
+	$sql= "SELECT mb_group_id, mb_group_name, mb_group_title from registrating_groups LEFT OUTER JOIN mb_group ON (mb_group_id=fkey_mb_group_id)  GROUP BY mb_group_id, mb_group_name, mb_group_title ORDER BY mb_group_name";
+	$res = pg_query($sql);
+	while($row = db_fetch_array($res)){
+		array_push($entries['user_department'], $row['mb_group_id']);
+		array_push($entries['group_name'], $row['mb_group_name']);
+		if (isset($row['mb_group_title']) and $row['mb_group_title'] != ''){
+			array_push($entries['group_title'], $row['mb_group_title']);
+		} else {
+			array_push($entries['group_title'], $exceptionGroupTitle);
+		}
+	}
+	$maxStrLength = 200;
+	//get list of iso categories
+	$entries['iso_cat_id'] = array();
+	$entries['iso_cat_name'] = array();
+	$entries['iso_cat_title'] = array();
+	$sql_cat= "SELECT * FROM md_topic_category order by md_topic_category_code_".$langCode;
+	$res_cat = pg_query($sql_cat);
+	while($row_cat = db_fetch_array($res_cat)){
+		array_push($entries['iso_cat_id'], $row_cat['md_topic_category_id']);
+		array_push($entries['iso_cat_name'], substr($row_cat["md_topic_category_code_".$langCode], 0,$maxStrLength));
+		array_push($entries['iso_cat_title'], $row_cat["md_topic_category_code_".$langCode]);
+	}
+	//get list of inspire themes
+	$entries['inspire_cat_id'] = array();
+	$entries['inspire_cat_name'] = array();
+	$entries['inspire_cat_title'] = array();
+	$sql_cat= "SELECT * FROM inspire_category order by inspire_category_code_".$langCode;
+	$res_cat = pg_query($sql_cat);
+	while($row_cat = db_fetch_array($res_cat)){
+		array_push($entries['inspire_cat_id'], $row_cat['inspire_category_id']);
+		array_push($entries['inspire_cat_name'], substr($row_cat["inspire_category_code_".$langCode], 0,$maxStrLength));
+		array_push($entries['inspire_cat_title'], $row_cat["inspire_category_key"]." ".$row_cat["inspire_category_code_".$langCode]);
+	}
+	//get list of custom categories
+	$entries['custom_cat_id'] = array();
+	$entries['custom_cat_name'] = array();
+	$entries['custom_cat_title'] = array();
+	$sql_cat= "SELECT * FROM custom_category order by custom_category_code_".$langCode;
+	$res_cat = pg_query($sql_cat);
+	while($row_cat = db_fetch_array($res_cat)){
+		array_push($entries['custom_cat_id'], $row_cat['custom_category_id']);
+		array_push($entries['custom_cat_name'], substr($row_cat["custom_category_code_".$langCode], 0,$maxStrLength));
+		array_push($entries['custom_cat_title'], $row_cat["custom_category_code_".$langCode]);
+	}
+	return $entries;
+}
+
+/**
+ * sends output of function back to client
+ * 
+ * @param mixed[] the output to send
+ * @return 
+ */
+function sendOutput($out){
+	global $json;
+	$output = $json->encode($out);
+	header("Content-Type: text/x-json");
+	echo $output;
+}
+?>

Added: trunk/mapbender/resources/db/extendedSearchGui.sql
===================================================================
--- trunk/mapbender/resources/db/extendedSearchGui.sql	                        (rev 0)
+++ trunk/mapbender/resources/db/extendedSearchGui.sql	2010-09-15 07:41:32 UTC (rev 6916)
@@ -0,0 +1,283 @@
+INSERT INTO gui (gui_id, gui_name, gui_description, gui_public) VALUES ('extended_search','extended_search','Extented metadata search form',1);
+
+-- give root access to extended_search
+INSERT INTO gui_mb_user (fkey_gui_id, fkey_mb_user_id, mb_user_type) VALUES ('extended_search', 1, 'owner');
+
+DELETE FROM gui_element WHERE fkey_gui_id = 'extended_search';
+
+
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','mb_helpDialog',1,1,'Mapbender wrapper for helptexts in jq dialogs','','div','','',NULL ,NULL,NULL ,NULL,NULL ,'','','div','','mb_helpDialog.js','','jq_ui, jq_metadata','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','jq_datatables',1,1,'Includes the jQuery plugin datatables, use like this
+$(selector).datatables(options)','','','','',NULL ,NULL,NULL ,NULL,NULL ,'','','','../plugins/jq_datatables.js','../extensions/dataTables-1.5/media/js/jquery.dataTables.min.js','','','http://www.datatables.net/');
+INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, context, var_type) VALUES ('extended_search','jq_datatables','defaultCss','../extensions/dataTables-1.5/media/css/demo_table_jui.css','','file/css');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','jq_upload',1,1,'','','','','',NULL ,NULL,NULL ,NULL,NULL ,'','','','','../plugins/jq_upload.js','','','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','i18n',1,1,'Internationalization module, collects data from all elements and sends them to the server in a single POST request. The strings are translated via gettext only.','Internationalization','div','','',NULL ,NULL,NULL ,NULL,NULL ,'','','div','../plugins/mb_i18n.js','','','','http://www.mapbender.org/Gettext');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','jq_ui_widget',1,1,'jQuery UI widget','','','','',NULL ,NULL,NULL ,NULL,NULL ,'','','','','../extensions/jquery-ui-1.8.1.custom/development-bundle/ui/minified/jquery.ui.widget.min.js','','','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','mapframe1',1,1,'Frame for a map','','div','','',10,218,280,154,20,'overflow:hidden;background-color:#ffffff','','div','../plugins/mb_map.js','../../lib/history.js,map_obj.js,map.js,wms.js,wfs_obj.js,initWmcObj.php','','','http://www.mapbender.org/index.php/Mapframe');
+INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, context, var_type) VALUES ('extended_search','mapframe1','skipWmsIfSrsNotSupported','0','if set to 1, it skips the WMS request if the current SRS is not supported by the WMS; if set to 0, the WMS is always queried. Default is 0, because of backwards compatibility','var');
+INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, context, var_type) VALUES ('extended_search','mapframe1','slippy','1','1 = Activates an animated, pseudo slippy map','var');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','jq_ui_position',1,1,'jQuery UI position','','','','',NULL ,NULL,NULL ,NULL,NULL ,'','','','','../extensions/jquery-ui-1.8.1.custom/development-bundle/ui/minified/jquery.ui.position.min.js','','','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','body',1,1,'body (obligatory)','','body','','',NULL ,NULL,NULL ,NULL,NULL ,'','','','','','','','');
+INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, context, var_type) VALUES ('extended_search','body','css_class_bg','body{ background-color: #f3f3f3; }','to define the color of the body','text/css');
+INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, context, var_type) VALUES ('extended_search','body','css_file_body','../css/mapbender.css','file/css','file/css');
+INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, context, var_type) VALUES ('extended_search','body','favicon','../img/favicon.png','favicon','php_var');
+INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, context, var_type) VALUES ('extended_search','body','jq_ui_theme','../extensions/jquery-ui-1.8.1.custom/css/custom-theme/jquery-ui-1.8.4.custom.css','UI Theme from Themeroller','file/css');
+INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, context, var_type) VALUES ('extended_search','body','popupcss','../css/popup.css','file css','file/css');
+INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, context, var_type) VALUES ('extended_search','body','tablesortercss','../css/tablesorter.css','file css','file/css');
+INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, context, var_type) VALUES ('extended_search','body','use_load_message','false','show splash screen while the application is loading','php_var');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','jq_metadata',1,1,'jQuery Metadata plugin - selects elements by tag names out of html?','','div','','',NULL ,NULL,NULL ,NULL,NULL ,'','','div','','../extensions/jquery.metadata.2.1/jquery.metadata.min.js','','','http://plugins.jquery.com/project/metadata');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','jq_ui',1,1,'jQuery UI core','','div','','',NULL ,NULL,NULL ,NULL,NULL ,'','','div','','../extensions/jquery-ui-1.8.1.custom/development-bundle/ui/minified/jquery.ui.core.min.js','','','');
+INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, context, var_type) VALUES ('extended_search','jq_ui','css','../extensions/jquery-ui-1.8.1.custom/css/custom-theme/jquery-ui-1.8.4.custom.css','','file/css');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','imprint',2,0,'Information about the owner of the gui','','iframe','../html/tab_imprint.html','frameborder = "0" ',1,1,1,1,5,'visibility:hidden;','','iframe','','','','','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','dependentDiv',2,0,'displays infos in a sticky div-tag','','div','','',81,-19,1,1,NULL ,'visibility:visible;position:absolute;font-size: 11px;font-family: \"Arial\", sans-serif;','','div','mod_dependentDiv.php','','mapframe1','','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','mapbender',2,1,'Mapbender-Logo','','div','','onclick="javascript:window.open(''http://www.mapbender.org'','''','''');"',81,-19,1,1,30,'font-size : 10px;font-weight : bold;font-family: Arial, Helvetica, sans-serif;color:white;cursor:help;','<span>Ma</span><span style="color: blue;">P</span><span style="color: red;">b</span><span>ender</span><script type="text/javascript"> mb_registerSubFunctions("mod_mapbender()"); function mod_mapbender(){ document.getElementById("mapbender").style.left = parseInt(document.getElementById("mapframe1").style.left) + parseInt(document.getElementById("mapframe1").style.width) - 90; document.getElementById("mapbender").style.top = parseInt(document.getElementById("mapframe1").styl
 e.top) + parseInt(document.getElementById("mapframe1").style.height) -1; } </script>','div','','','','','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','copyright',2,1,'a Copyright in the map','','div','','',0,0,0,0,0,'','','div','mod_copyright.php','','mapframe1','','');
+INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, context, var_type) VALUES ('extended_search','copyright','mod_copyright_text','©IMAGI-rlp','Copyright text displayed in mapframe1','var');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','loadData',2,0,'IFRAME, um Daten zu laden','','iframe','../html/mod_blank.html','frameborder = "0" ',0,0,1,1,NULL ,'visibility:visible','','iframe','','','','','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','mapcheck',2,1,'alert if a map-image fails to load','','div','','',0,0,NULL ,NULL,NULL ,'','','div','','mod_mapcheck.php','mapframe1','','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','zoomOut1',2,1,'zoomOut button','','img','../img/button_blink_red/zoomOut2_off.png','',305,233,24,24,20,'','','','mod_zoomOut1.js','','mapframe1','','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','sandclock',2,1,'displays a sand clock while waiting for requests','','div','','',80,0,0,0,0,'','','div','mod_sandclock.js','','mapframe1','','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','back',2,1,'History.back()','','img','../img/button_blink_red/back_off_disabled.png','',305,358,24,24,20,'','','','mod_back.php','','mapframe1,overview0','','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','forward',2,1,'History.forward()','','img','../img/button_blink_red/forward_off_disabled.png','',305,333,24,24,20,'','','','mod_forward.php','','mapframe1,overview0','','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','navFrame',2,1,'navigation mapborder','','div','','',0,0,NULL ,NULL,20,'font-size:1px;','','div','mod_navFrame.php','','mapframe1','','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','pan1',2,1,'pan','','img','../img/button_blink_red/pan_off.png','',305,308,24,24,20,'','','','mod_pan.js','','mapframe1','','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','selArea1',2,1,'zoombox','','img','../img/button_blink_red/selArea_off.png','',305,258,24,24,20,'','','','mod_selArea.js','mod_box1.js','mapframe1','','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','zoomFull',2,1,'zoom to full extent button','','img','../img/button_blink_red/zoomFull_off.png','',305,283,24,24,20,'','','img','mod_zoomFull.js','','mapframe1','','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','zoomIn1',2,1,'zoomIn button','','img','../img/button_blink_red/zoomIn2_off.png','',305,208,24,24,20,'','','','mod_zoomIn1.js','','mapframe1','','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','jq_ui_mouse',2,1,'jQuery UI mouse','','','','',NULL ,NULL,NULL ,NULL,NULL ,'','','','','../extensions/jquery-ui-1.8.1.custom/development-bundle/ui/minified/jquery.ui.mouse.min.js','','jq_ui_widget','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','renderGML',2,0,'renders a gml contained in $_SESSION[''GML'']','','div','','',NULL ,NULL,NULL ,NULL,1,'','','div','../javascripts/mod_renderGML.php','mod_highlight.php','overview,mapframe1','','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','classSearchResources',3,1,'Div which shows the different bsearchable resources for metadata search','Resources','div','','',NULL ,NULL,NULL ,NULL,20,'','<fieldset><legend id="legendSearchResources" name="legendSearchResources">Types of Resources</legend>
+		<img class="help-dialog" id="helpSearchResources" title="Help" help="{text:''Help SearchResources''}"  src="../img/questionmark.png" align="right"></img>
+
+		<div id=''searchResources'' name=''searchResources''>
+
+			<input name=''checkResourcesWms'' id=''checkResourcesWms'' type=''checkbox'' value=''wms''>
+
+			<label id="labelCheckResourcesWms" name="labelCheckResourcesWms">Viewing Services</label>
+
+			<input name=''checkResourcesWfs'' id=''checkResourcesWfs'' type=''checkbox'' value=''wfs''>
+
+			<label id="labelCheckResourcesWfs" name="labelCheckResourcesWfs">Search/Download/Digitize Modules</label>
+
+			<input name=''checkResourcesWmc'' id=''checkResourcesWmc'' type=''checkbox'' value=''wmc''>
+
+			<label id="labelCheckResourcesWmc" name="labelCheckResourcesWmc">Map Collections</label>
+
+			<input disabled="disabled" name=''checkResourcesGeorss'' id=''checkResourcesGeorss'' type=''checkbox'' value=''georss''>
+
+			<label disabled="disabled" id="labelCheckResourcesGeorss" name="labelCheckResourcesGeorss">GeoRSS Feeds</label>
+
+		</div>
+</fieldset>','div','','','','','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','form2',3,1,'Form for the extended mapbender metadata search - this form submits the values as hidden to the search script','','form','','method=''get'' name=''form2'' action=''../php/mod_callMetadata.php'' target=''_top''',0,250,NULL ,NULL,NULL ,'','	<input type="hidden" value='''' name=''searchText''>
+
+	<input type="hidden" value='''' name=''registratingDepartments''>
+
+	<input type="hidden" value='''' name=''isoCategories''>
+
+	<input type="hidden" value='''' name=''inspireThemes''>
+
+	<input type="hidden" value='''' name=''customCategories''>
+
+	<input type="hidden" value='''' name=''regTimeBegin''>
+
+	<input type="hidden" value='''' name=''regTimeEnd''>
+
+	<input type="hidden" value='''' name=''timeBegin''>
+
+	<input type="hidden" value='''' name=''timeEnd''>
+
+	<input type="hidden" value='''' name=''searchBbox''>
+
+	<input type="hidden" value='''' name=''searchTypeBbox''>
+
+	<input type="hidden" value='''' name=''searchResources''>
+
+	<input type="hidden" value='''' name=''orderBy''>	','form','','','','','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','mb_tabs_horizontal',3,1,'Puts existing elements into horizontal tabs, using jQuery UI tabs. List the elements comma-separated under target, and make sure they have a title.','','div','','',0,200,700,NULL ,NULL,'','<ul></ul><div class=''ui-layout-content''></div>','div','../plugins/mb_tabs_horizontal.js','','mb_div_collection2,actuality,classifications,provider,classSearchResources','jq_ui_tabs','');
+INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, context, var_type) VALUES ('extended_search','mb_tabs_horizontal','inputs','[
+    {
+        "type": "id",
+        "method": "select",
+        "title": "Select a tab",
+        "linkedTo": [
+            {
+                "id": "mb_md_select",
+                "event": "selected",
+                "value": "mb_md_edit" 
+            } 
+        ] 
+    }
+] ','','var');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','mb_div_collection1',3,1,'Put existing divs in new div object. List the elements comma-separated under target, and make sure they have a title.','','div','','',NULL ,NULL,NULL ,NULL,NULL ,'','','div','../plugins/mb_div_collection.js','','mapframe1, zoomIn1,zoomFull,zoomOut1,selArea1,pan1,forward,back,navFrame','','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','orderBy',3,1,'Div which shows orderby options for the metadata search','Order','div','','class=''orderBy''',0,80,480,NULL ,20,'','<fieldset>
+<legend id="legendOrderBy" name="legendOrderBy">Sort by:</legend>
+
+		<img class="help-dialog" id="helpOrderBy" title="Help" help="{text:''Help OrderBy''}"  src="../img/questionmark.png" align="right"></img>
+		<p>
+			<input type=''radio'' name=''orderBy'' value=''rank'' id=''orderBy'' checked >
+			<label id="labelOrderByRank" name="labelOrderByRank">relevance</label>
+			<input type=''radio'' name=''orderBy'' value=''title'' id=''orderBy''>
+			<label id="labelOrderByTitle" name="labelOrderByTitle">title</label>
+			<input type=''radio'' name=''orderBy'' value=''id'' id=''orderBy''>
+			<label id="labelOrderById" name="labelOrderById">identification</label>
+			<input type=''radio'' name=''orderBy'' value=''date'' id=''orderBy''>
+			<label id="labelOrderByDate" name="labelOrderByDate">date</label>		
+		</p>
+	</fieldset>','div','','','','','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','searchField',3,1,'Div which shows the search field for the metadata search','','div','','class=''searchField''',0,0,480,NULL ,20,'','		<fieldset>
+		<legend id="legendSearchTextTitle" name="legendSearchTextTitle">Searchterm(s):</legend>
+		<img class="help-dialog" id="helpSearchText" title="Help" help="{text:''Help SearchText''}"  src="../img/questionmark.png" align="right"></img>
+			<p>
+				<input type=''text'' size=30 name=''searchText'' id=''searchText''> 
+			</p>
+		</fieldset>','div','','','','','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','button',3,1,'Div for the button to submit extended search module','','div','','class=''button''',500,25,60,40,20,'','<button id="search" name="search" type="button" value="Start Search" onclick="validate();">Start Search</button>
+','div','','','','','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','actuality',3,1,'Div which shows the date field for temporal filters for metadata search','Wann?','div','','class=''actuality''',NULL ,NULL,NULL ,NULL,20,'','<fieldset>
+<legend  id="legendActuality" name="legendActuality">Actuality</legend>
+	<fieldset>
+		<legend id="legendDateOfPublication" name="legendDateOfPublication">Date of Publication</legend>
+
+		<img class="help-dialog" id="helpDateOfPublication" title="Help" help="{text:''Help DateOfPublication''}"  src="../img/questionmark.png" align="right"></img>
+
+		<table>
+
+			<p>
+
+			<tr>
+
+			<td><label id="labelDateOfPublicationStart" name="labelDateOfPublicationStart"  for="regTimeBegin">Date from</label></td>
+
+			<td><input class=''hasdatepicker'' type=''text'' size=15 name=''regTimeBegin'' id=''regTimeBegin'' > </td>
+
+			</tr>
+
+			<tr>
+
+			<td><label id="labelDateOfPublicationEnd" name="labelDateOfPublicationEnd"  for="regTimeEnd">Date to</label></td>
+
+			<td><input class=''hasdatepicker'' type=''text'' size=15 name=''regTimeEnd'' id=''regTimeEnd'' > </td> 
+
+			</tr>
+
+			</p>
+
+		</table>
+
+	</fieldset>
+
+
+
+	<fieldset>
+
+		<legend id="legendDateOfLastRevision" name="legendDateOfLastRevision">Data actuality</legend>
+
+		<img class="help-dialog" id="helpDateOfLastRevision" title="Help" help="{text:''Help DateOfLastRevision''}"  src="../img/questionmark.png" align="right"></img>
+
+			<table>
+
+			<p>
+
+			<tr>
+
+				<td><label id="labelDateOfLastRevisionStart" name="labelDateOfLastRevisionStart"  for="timeBegin" >Date from</label></td>
+
+				<td><input disabled="disabled" type=''text'' size=15 name=''timeBegin'' id=''timeBegin'' > </td>
+
+
+
+			</tr>
+
+			<tr>
+
+				<td><label id="labelDateOfLastRevisionEnd" name="labelDateOfLastRevisionEnd"   for="timeEnd">Date to</label></td>
+<td><input disabled="disabled" type=''text'' size=15 name=''timeEnd'' id=''timeEnd'' > </td>
+
+			</tr>
+
+			</p>
+
+			</table>
+
+	</fieldset>
+
+</fieldset>
+','div','','','','','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','classifications',3,1,'Put category divs into one div collection','Themen','div','','',NULL ,NULL,NULL ,NULL,20,'','<fieldset>
+	<legend  id="classificationsLegend" name="classificationsLegend">Classifications</legend>
+		<div class="inspire">
+			<fieldset>
+			<legend id="legendInspireThemes" name="legendInspireThemes">Inspire Themes</legend>
+			<img class="help-dialog" id="helpInspireThemes" title="Help" help="{text:''Help Inspire Categories''}"  src="../img/questionmark.png" align="right"></img>
+<img id="imageInspireThemes" title="Inspire" src="../img/inspire_tr_36.png" align="right"></img>
+				<p>
+					<select class=''selectCat'' size=''5'' name=''inspireThemes'' id=''inspireThemes'' multiple ></select>
+					<br><a  id="deleteSelection2" name="deleteSelection" href="#"  onclick=''removeListSelections("inspireThemes");''>Drop current selection</a>
+				</p>
+			</fieldset>
+		</div>
+		<div class="iso">
+			<fieldset>
+			<legend  id="legendIsoCategories" name="legendIsoCategories">ISO19115 Themes</legend>
+			<img class="help-dialog" id="helpIsoCategories" title="Help" help="{text:''Help ISO Categories''}"  src="../img/questionmark.png" align="right"></img>
+				<p> 
+					<select class=''selectCat'' size=''5'' name=''isoCategories'' id=''isoCategories'' width="200px"  multiple></select>
+					<br><a id="deleteSelection3" name="deleteSelection" href="#"  onclick=''removeListSelections("isoCategories");''>Drop current selection</a>
+				</p>
+			</fieldset>
+		</div>
+		<div class="custom">
+			<fieldset>
+				<legend  id="legendCustomCategories" name="legendCustomCategories">Other Themes</legend>
+				<img class="help-dialog" id="helpCustomCategories" title="Help" help="{text:''Help Custom Categories''}"  src="../img/questionmark.png" align="right"></img>
+				<p> 
+					<select class=''selectCat'' size=''5'' name=''customCategories'' id=''customCategories'' multiple></select>
+					<br><a id="deleteSelection4" name="deleteSelection" href="#" onclick=''removeListSelections("customCategories");''>Drop current selection</a>
+				</p>
+			</fieldset>
+		</div>
+	</fieldset>','div','','','','','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','provider',3,1,'Div which shows a list of providers for the metadata search','Anbieter','div','','',NULL ,NULL,NULL ,NULL,20,'','<fieldset>
+<legend  id="legendDepartment" name="legendDepartment">Provider</legend>
+<img class="help-dialog" id="helpProvider" title="Help" help="{text:''Help Provider''}"  src="../img/questionmark.png" align="right"></img>
+		<p>
+			<select class=''selectCat'' size=''5'' name=''registratingDepartments'' id=''registratingDepartments'' multiple ></select>
+			<br><a id="deleteSelection1" name="deleteSelection" href="#" c onclick=''removeListSelections("registratingDepartments");''>Drop current selection</a>
+		</p>
+	</fieldset>','div','','','','','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','spatialFilter',3,1,'Div which shows the spatial filter options for the metadata search','','div','','class=''spatialFilter''',NULL ,NULL,NULL ,NULL,20,'','	<fieldset>
+		<img class="help-dialog" id="helpSpatialFilter" title="Help" help="{text:''Help SpatialFilter''}"  src="../img/questionmark.png" align="right"></img>
+		<p>
+			<input type=''checkbox'' name=''searchBbox'' id=''searchBbox''>
+			<label  id="labelSpatialFilter" name="labelSpatialFilter">Activate Spatial Filter</label>
+			<legend id="labelSpatialFilterType" name="labelSpatialFilterType">how?</legend>
+			<input type=''radio'' name=''searchTypeBbox'' value=''intersects'' id=''searchTypeBbox''>
+			<label id="labelIntersects" name="labelIntersects" for="bbox">intersects</label>
+			<input type=''radio'' name=''searchTypeBbox'' value=''outside'' id=''searchTypeBbox''>
+			<label id="labelOutside" name="labelOutside">outside</label>
+			<input type=''radio'' name=''searchTypeBbox'' value=''inside'' id=''searchTypeBbox''>
+			<label id="labelInside" name="labelInside">fully inside</label>
+		</p>
+	</fieldset>','div','','','','','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','mb_div_collection2',3,1,'Put existing divs in new div object. List the elements comma-separated under target, and make sure they have a title.','Wo?','div','','',NULL ,NULL,NULL ,NULL,NULL ,'','','div','../plugins/mb_div_collection.js','','mb_div_collection1,spatialFilter','','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','form1',3,1,'Form for the extended mapbender metadata search','','form','','method=''post'' name=''form1''',0,0,400,NULL ,NULL,'','','form','../plugins/mb_div_collection.js','../plugins/mb_extendedSearch.js','searchField,button,orderBy,mb_tabs_horizontal','','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','jq_ui_button',4,1,'jQuery UI button','','','','',NULL ,NULL,NULL ,NULL,NULL ,'','','','','../extensions/jquery-ui-1.8.1.custom/development-bundle/ui/minified/jquery.ui.button.min.js','','jq_ui,jq_ui_widget','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','jq_ui_droppable',4,1,'jQuery UI droppable','','','','',NULL ,NULL,NULL ,NULL,NULL ,'','','','','../extensions/jquery-ui-1.8.1.custom/development-bundle/ui/minified/jquery.ui.droppable.min.js','','jq_ui,jq_ui_widget,jq_ui_mouse,jq_ui_draggable','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','jq_ui_dialog',5,1,'Dialog from jQuery UI framework','','','','',NULL ,NULL,NULL ,NULL,NULL ,'','','','','../extensions/jquery-ui-1.8.1.custom/development-bundle/ui/minified/jquery.ui.dialog.min.js','','jq_ui,jq_ui_widget,jq_ui_button,jq_ui_draggable,jq_ui_mouse,jq_ui_position,jq_ui_resizable','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','jq_ui_draggable',5,1,'Draggable from the jQuery UI framework','','','','',NULL ,NULL,NULL ,NULL,NULL ,'','','','','../extensions/jquery-ui-1.8.1.custom/development-bundle/ui/minified/jquery.ui.draggable.min.js','','jq_ui,jq_ui_mouse,jq_ui_widget','http://jqueryui.com/demos/draggable/');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','jq_ui_resizable',5,1,'Resizable from the jQuery UI framework','','','','',NULL ,NULL,NULL ,NULL,NULL ,'','','','../plugins/jq_ui_resizable.js','../extensions/jquery-ui-1.8.1.custom/development-bundle/ui/minified/jquery.ui.resizable.min.js','','jq_ui,jq_ui_mouse,jq_ui_widget','http://jqueryui.com/demos/resizable/');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','jq_ui_tabs',5,1,'horizontal tabs from the jQuery UI framework','','','','',NULL ,NULL,NULL ,NULL,NULL ,'','','','','../extensions/jquery-ui-1.8.1.custom/development-bundle/ui/minified/jquery.ui.tabs.min.js','','jq_ui,jq_ui_widget','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('extended_search','jq_ui_datepicker',5,1,'Datepicker from jQuery UI framework','','div','','',NULL ,NULL,NULL ,NULL,NULL ,'','','div','','../extensions/jquery-ui-1.8.1.custom/development-bundle/ui/minified/jquery.ui.datepicker.min.js','','jq_ui','');
+insert into translations (locale,msgid,msgstr) values ('de','Where?','Wo?');
+insert into translations (locale,msgid,msgstr) values ('de','When?','Wann?');
+insert into translations (locale,msgid,msgstr) values ('de','Themes','Themen');
+insert into translations (locale,msgid,msgstr) values ('de','Provider','Anbieter');
+insert into translations (locale,msgid,msgstr) values ('de','What?','Was?');
+insert into translations (locale,msgid,msgstr) values ('en','Where?','Where?');
+insert into translations (locale,msgid,msgstr) values ('en','When?','When?');
+insert into translations (locale,msgid,msgstr) values ('en','Themes','Themes');
+insert into translations (locale,msgid,msgstr) values ('en','Provider','Provider');
+insert into translations (locale,msgid,msgstr) values ('en','What?','What?');
+
+



More information about the Mapbender_commits mailing list