[Mapbender-commits] r6157 - trunk/mapbender/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue May 11 03:55:38 EDT 2010


Author: christoph
Date: 2010-05-11 03:55:35 -0400 (Tue, 11 May 2010)
New Revision: 6157

Added:
   trunk/mapbender/http/plugins/mb_metadata_layer.php
Removed:
   trunk/mapbender/http/plugins/mb_metadata_layer.html
   trunk/mapbender/http/plugins/mb_metadata_linkage.html
   trunk/mapbender/http/plugins/mb_metadata_linkage.js
Log:


Deleted: trunk/mapbender/http/plugins/mb_metadata_layer.html
===================================================================
--- trunk/mapbender/http/plugins/mb_metadata_layer.html	2010-05-11 06:59:06 UTC (rev 6156)
+++ trunk/mapbender/http/plugins/mb_metadata_layer.html	2010-05-11 07:55:35 UTC (rev 6157)
@@ -1,91 +0,0 @@
-<h1>Layer Level Metadata:</h1>
-
-<div id="choose" style="height:100%">
-	choose layer
-</div>
-
-<div id="layer">
-	<fieldset class="">
-		<legend>Layer metadata</legend>
-		<p>
-			<label for="layer_id">Number of Layer (Registry):</label>
-			<span class="metadata_span"></span>
-			<span class="metadata_span"></span>
-			<input readonly="readonly" name="layer_id" id="layer_id"/>
-		</p>
-		<p>
-	    	<label for="layer_title">Layer Title (WMS):</label>
-			<img class="metadata_img" src="../img/misc/inspire_eu_klein.png"></img>
-			<span class="metadata_span"></span>
-	    	<input name="layer_title" id="layer_title"/>
-	    	<img class="metadata_img" src="../img/book.png"></img>
-		</p>
-		<p>
-	    	<label for="layer_abstract">Layer Abstract (WMS):</label>
-			<img class="metadata_img" src="../img/misc/inspire_eu_klein.png"></img>
-			<span class="metadata_span"></span>
-	    	<input name="layer_abstract" id="layer_abstract"/>
-		   	<img class="metadata_img" src="../img/book.png"></img>
-		</p>
-		<p>
-	    	<label for="fkey_keyword_id">Layer Keywords (WMS):</label>
-			<span class="metadata_span"></span>
-			<span class="metadata_span"></span>
-		   	<input name="fkey_keyword_id" id="fkey_keyword_id"/>
-		   	<img class="metadata_img" src="../img/book.png"></img>
-		</p>
-		<p>
-		    <div id="buttons">
-				<label>Add Information about the underlying data:</label>
-				<p>
-					<input class="" type="submit" value="Add new Metadata Record"/>
-				</p>
-				<p>
-					<input class="" type="submit" value="Edit Metadata Linkage"/>
-				</p>
-				<p>
-					<input class="" type="submit" value="Delete Metadata Linkage"/>
-				</p>
-			</div>
-			<div id="selectbox">
-				<select class="metadata_selectbox" size="2" multiple>
-					<option>test</option>
-					<option>test</option>
-					<option>test</option>
-				</select>
-			</div>			
-		</p>
-	</fieldset>
-</div>
-<div>
-	<fieldset class="">
-		<legend>Preview</legend>
-		<div id="map"></div>
-		<div id="toolbar_upper"></div>
-		<div id="toolbar_lower"></div>
-	</fieldset>
-</div>
-
-<div id="classification">
-	<fieldset class="">
-		<legend>Classification</legend>
-		<p>
-		    <label for="fkey_md_topic_category_id">ISO Topic Category:</label>
-			<img class="metadata_img" src="../img/misc/inspire_eu_klein.png"></img>
-			<select class="metadata_selectbox" id="fkey_md_topic_category_id" name="fkey_md_topic_category_id" size="2" multiple="multiple">
-			</select>
-		</p>
-		<p>
-		    <label for="fkey_inspire_category_id">INSPIRE Category:</label>
-			<img class="metadata_img" src="../img/misc/inspire_eu_klein.png"></img>
-			<select class="metadata_selectbox" id="fkey_inspire_category_id" name="fkey_inspire_category_id" size="2" multiple="multiple">
-			</select>
-		</p>
-		<p>
-		    <label for="fkey_custom_category_id">Custom Category:</label>
-			<span class="metadata_span"></span>
-			<select class="metadata_selectbox" id="fkey_custom_category_id" name="fkey_custom_category_id" size="2" multiple="multiple">
-			</select>
-		</p>
-	</fieldset>
-</div>

Added: trunk/mapbender/http/plugins/mb_metadata_layer.php
===================================================================
--- trunk/mapbender/http/plugins/mb_metadata_layer.php	                        (rev 0)
+++ trunk/mapbender/http/plugins/mb_metadata_layer.php	2010-05-11 07:55:35 UTC (rev 6157)
@@ -0,0 +1,94 @@
+<?php
+	require_once dirname(__FILE__) . "/../../core/globalSettings.php";
+?>
+<h1>Layer Level Metadata:</h1>
+
+<div id="choose" style="height:100%">
+	choose layer
+</div>
+
+<div id="layer">
+	<fieldset class="">
+		<legend>Layer metadata</legend>
+		<p>
+			<label for="layer_id">Number of Layer (Registry):</label>
+			<span class="metadata_span"></span>
+			<span class="metadata_span"></span>
+			<input readonly="readonly" name="layer_id" id="layer_id"/>
+		</p>
+		<p>
+	    	<label for="layer_title">Layer Title (WMS):</label>
+			<img class="metadata_img" src="../img/misc/inspire_eu_klein.png"></img>
+			<span class="metadata_span"></span>
+	    	<input name="layer_title" id="layer_title"/>
+	    	<img class="metadata_img" src="../img/book.png"></img>
+		</p>
+		<p>
+	    	<label for="layer_abstract">Layer Abstract (WMS):</label>
+			<img class="metadata_img" src="../img/misc/inspire_eu_klein.png"></img>
+			<span class="metadata_span"></span>
+	    	<input name="layer_abstract" id="layer_abstract"/>
+		   	<img class="metadata_img" src="../img/book.png"></img>
+		</p>
+		<p>
+	    	<label for="fkey_keyword_id">Layer Keywords (WMS):</label>
+			<span class="metadata_span"></span>
+			<span class="metadata_span"></span>
+		   	<input name="fkey_keyword_id" id="fkey_keyword_id"/>
+		   	<img class="metadata_img" src="../img/book.png"></img>
+		</p>
+		<p>
+		    <div id="buttons">
+				<label>Add Information about the underlying data:</label>
+				<p>
+					<input class="" type="submit" value="Add new Metadata Record"/>
+				</p>
+				<p>
+					<input class="" type="submit" value="Edit Metadata Linkage"/>
+				</p>
+				<p>
+					<input class="" type="submit" value="Delete Metadata Linkage"/>
+				</p>
+			</div>
+			<div id="selectbox">
+				<select class="metadata_selectbox" size="2" multiple>
+					<option>test</option>
+					<option>test</option>
+					<option>test</option>
+				</select>
+			</div>			
+		</p>
+	</fieldset>
+</div>
+<div>
+	<fieldset class="">
+		<legend>Preview</legend>
+		<div id="map"></div>
+		<div id="toolbar_upper"></div>
+		<div id="toolbar_lower"></div>
+	</fieldset>
+</div>
+
+<div id="classification">
+	<fieldset class="">
+		<legend>Classification</legend>
+		<p>
+		    <label for="fkey_md_topic_category_id">ISO Topic Category:</label>
+			<img class="metadata_img" src="../img/misc/inspire_eu_klein.png"></img>
+			<select class="metadata_selectbox" id="fkey_md_topic_category_id" name="fkey_md_topic_category_id" size="2" multiple="multiple">
+			</select>
+		</p>
+		<p>
+		    <label for="fkey_inspire_category_id">INSPIRE Category:</label>
+			<img class="metadata_img" src="../img/misc/inspire_eu_klein.png"></img>
+			<select class="metadata_selectbox" id="fkey_inspire_category_id" name="fkey_inspire_category_id" size="2" multiple="multiple">
+			</select>
+		</p>
+		<p>
+		    <label for="fkey_custom_category_id">Custom Category:</label>
+			<span class="metadata_span"></span>
+			<select class="metadata_selectbox" id="fkey_custom_category_id" name="fkey_custom_category_id" size="2" multiple="multiple">
+			</select>
+		</p>
+	</fieldset>
+</div>

Deleted: trunk/mapbender/http/plugins/mb_metadata_linkage.html
===================================================================
--- trunk/mapbender/http/plugins/mb_metadata_linkage.html	2010-05-11 06:59:06 UTC (rev 6156)
+++ trunk/mapbender/http/plugins/mb_metadata_linkage.html	2010-05-11 07:55:35 UTC (rev 6157)
@@ -1,20 +0,0 @@
-<div id="buttons">
-	<h1>Add Information about the underlying data</h1>
-	<p>
-		<input class="" type="submit" value="Add new Metadata Record"/>
-	</p>
-	<p>
-		<input class="" type="submit" value="Edit Metadata Linkage"/>
-	</p>
-	<p>
-		<input class="" type="submit" value="Delete Metadata Linkage"/>
-	</p>
-</div>
-
-<div id="selectbox">
-	<select class="metadata_selectbox" size="2" multiple>
-		<option>test</option>
-		<option>test</option>
-		<option>test</option>
-	</select>
-</div>

Deleted: trunk/mapbender/http/plugins/mb_metadata_linkage.js
===================================================================
--- trunk/mapbender/http/plugins/mb_metadata_linkage.js	2010-05-11 06:59:06 UTC (rev 6156)
+++ trunk/mapbender/http/plugins/mb_metadata_linkage.js	2010-05-11 07:55:35 UTC (rev 6157)
@@ -1,65 +0,0 @@
-/**
- * Package: mb_metadata_edit
- *
- * Description:
- *
- * Files:
- *
- * SQL:
- * 
- * Help:
- *
- * Maintainer:
- * http://www.mapbender.org/User:Christoph_Baudson
- *
- * 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 $metadataLayer = $(this);
-var $metadataForm = $("<form>No WMS selected.</form>").appendTo($metadataLayer);
-
-var MetadataLayerApi = function (o) {
-	var that = this;
-	var validator;
-
-	this.valid = function () {
-		if (validator && validator.numberOfInvalids() > 0) {
-			$metadataForm.valid();
-		}
-	};
-		
-	this.edit = function (obj) {
-		$metadataForm.load("../plugins/mb_metadata_layer.html", function () {
-			validator = $metadataForm.validate();
-
-			// get layer from server
-			var req = new Mapbender.Ajax.Request({
-				url: "../plugins/mb_metadata_server.php",
-				method: "getLayer",
-				parameters: {
-					"id": obj.wmsId
-				},
-				callback: function (obj, result, message) {
-					if (!result) {
-						return;
-					}
-				}
-			});
-//			req.send();		
-		});
-	};
-	
-	Mapbender.events.localize.register(function () {
-		that.valid();
-	});
-	Mapbender.events.init.register(function () {
-		that.valid();
-	});
-};
-
-$metadataLayer.mapbender(new MetadataLayerApi(options));
-*/
\ No newline at end of file



More information about the Mapbender_commits mailing list