r4634 - trunk/lib/style/skins/kepler

aschultz at ecoinformatics.org aschultz at ecoinformatics.org
Tue Nov 25 18:55:08 PST 2008


Author: aschultz
Date: 2008-11-25 18:55:07 -0800 (Tue, 25 Nov 2008)
New Revision: 4634

Modified:
   trunk/lib/style/skins/kepler/index.jsp
   trunk/lib/style/skins/kepler/kepler.css
   trunk/lib/style/skins/kepler/kepler.js
   trunk/lib/style/skins/kepler/searchform.jsp
Log:
Moved Search and Browse functions into the search frame.

Modified: trunk/lib/style/skins/kepler/index.jsp
===================================================================
--- trunk/lib/style/skins/kepler/index.jsp	2008-11-26 00:35:08 UTC (rev 4633)
+++ trunk/lib/style/skins/kepler/index.jsp	2008-11-26 02:55:07 UTC (rev 4634)
@@ -46,58 +46,27 @@
 <body>
       <script language="JavaScript">
           insertTemplateOpening("<%=CONTEXT_URL%>");
+      </script>
+      <br/>
+      <script language="JavaScript">
           insertSearchBox("<%=CONTEXT_URL%>");
       </script>
+<br/>
+
 <table width="760" border="0" cellspacing="0" cellpadding="0">
   <tr><td colspan="5">
-<p>
+
 Welcome to the Kepler Analytical Repository.  This repository hosts Kepler
 analytical components (actors) on the Ecogrid.  You can search for actors,
 then download and import them into Kepler.  Eventually, you will be able
 to search this repository directly from Kepler.
-</p>
+
 <p>&nbsp;</p>
-<p><b>Repository Tools</b></p>
-<p>
-<menu>
-<li><span class="searchbox">Search for Components</span><br />
-    <menu>
-<form method="get" action="<%=SERVLET_URL%>" target="_top">
-  <input value="INTERSECT" name="operator" type="hidden">   
-  <input size="14" name="anyfield" type="text" value="">
-  <input name="action" value="query" type="hidden">
-  <input name="qformat" value="kepler" type="hidden">
-  <input name="enableediting" value="false" type="hidden">
-  <input name="operator" value="UNION" type="hidden">
-  <input name="pagesize" value="10" type="hidden">
-  <input name="pagestart" value="0" type="hidden">
-  <input name="returnfield" value="entity/@name" type="hidden">
-  <input name="returnfield" value="entity/property[@name='karId']/@value" type="hidden">
-  <input name="returnfield" value="entity/property[@name='KeplerDocumentation']/property[@name='author']/configure" type="hidden">
-  <input name="returnfield" value="entity/property[@name='KeplerDocumentation']/property[@name='version']/configure" type="hidden">
-  <input name="returnfield" value="entity/property[@name='KeplerDocumentation']/property[@name='description']/configure" type="hidden">
-  <input name="returnfield" value="entity/property[@name='KeplerDocumentation']/property[@name='userLevelDocumentation']/configure" type="hidden">
-  <input name="returndoctype" value="entity" type="hidden">
-  <input value="Search" type="submit">
-</form>
-      The repository search system is used to locate analytical components of interest
-      by searching through existing registered components.  
-      Use a '%' symbol as a wildcard in searches
-      (e.g., '%Constant%' would locate any phrase with the word
-      'Constant' embedded within it).
-      </menu>
+
   <p>&nbsp;</p>
-  <li>
-  <a href="<%=SERVLET_URL%>?action=query&qformat=kepler&enableediting=false&operator=UNION&returnfield=entity%2F%40name&returnfield=entity%2Fproperty%5B%40name%3D%27karId%27%5D%2F%40value&returnfield=entity%2Fproperty%5B%40name%3D%27KeplerDocumentation%27%5D%2Fproperty%5B%40name%3D%27author%27%5D%2Fconfigure&returnfield=entity%2Fproperty%5B%40name%3D%27KeplerDocumentation%27%5D%2Fproperty%5B%40name%3D%27version%27%5D%2Fconfigure&returnfield=entity%2Fproperty%5B%40name%3D%27KeplerDocumentation%27%5D%2Fproperty%5B%40name%3D%27description%27%5D%2Fconfigure&returnfield=entity%2Fproperty%5B%40name%3D%27KeplerDocumentation%27%5D%2Fproperty%5B%40name%3D%27userLevelDocumentation%27%5D%2Fconfigure&returndoctype=entity&pagestart=0&pagesize=10">Browse existing Kepler analytical components</a>
+<!--
+  <li>Login
   <br />
-    <menu>
-    Browse all existing data sets by title.  This operation can slow as the
-    number of entries in the repository grows.
-    </menu>
-  </li>
-  <p>&nbsp;</p>
-  <!--<li>Login
-  <br />
   <menu>
   <form name="loginform" method="post" action="<%=SERVLET_URL%>"
   target="_top" onsubmit="return submitform(this);" id="loginform">
@@ -152,7 +121,8 @@
     </table>
   </form>
   </menu>
-  </li>-->
+  </li>
+-->
 </menu>
 </p>
   </td></tr>

Modified: trunk/lib/style/skins/kepler/kepler.css
===================================================================
--- trunk/lib/style/skins/kepler/kepler.css	2008-11-26 00:35:08 UTC (rev 4633)
+++ trunk/lib/style/skins/kepler/kepler.css	2008-11-26 02:55:07 UTC (rev 4634)
@@ -45,14 +45,19 @@
  *  container frame, *NOT* to the document within it!
  */  
 .iframeheaderclass {
-  height:   155px; 
+  height:   120px; 
   width:    98%;
   border:   0px;
   margin:   0px;
   margin-left: 10px;
 }
 
-.iframesearchboxclass { /* not used */ }
+.iframesearchboxclass { 
+  height: 150px;
+  width:  2050px;
+  margin: 0px;
+  margin-left: 10px;
+}
 .iframeleftcolclass  { /* not used */ }
 .iframerightcolclass { 
     position: fixed;

Modified: trunk/lib/style/skins/kepler/kepler.js
===================================================================
--- trunk/lib/style/skins/kepler/kepler.js	2008-11-26 00:35:08 UTC (rev 4633)
+++ trunk/lib/style/skins/kepler/kepler.js	2008-11-26 02:55:07 UTC (rev 4634)
@@ -88,20 +88,17 @@
 //  Location of the header that will be displayed at the top of the page
 var HEADER_URL = "style/skins/kepler/header.jsp";
 
+var LEFTCOL_URL  = "";
+
+var RIGHTCOL_URL  = "";
+
+var FOOTER_URL  = "";
+
 // Location of the search box that will be displayed above the  
 //  results on the results page (optional)
-var SEARCHBOX_URL  = "";
-  //= "style/skins/kepler/searchform.jsp";
+var SEARCHBOX_URL  = "style/skins/kepler/searchform.jsp";
 
-//  Location of the header that will be displayed at the top of the page
-var LEFTCOL_URL  = "";
   
-//  Location of the header that will be displayed at the top of the page
-var RIGHTCOL_URL  = "";
-  
-//  Location of the header that will be displayed at the top of the page
-var FOOTER_URL  = "";
-  
 
 
 

Modified: trunk/lib/style/skins/kepler/searchform.jsp
===================================================================
--- trunk/lib/style/skins/kepler/searchform.jsp	2008-11-26 00:35:08 UTC (rev 4633)
+++ trunk/lib/style/skins/kepler/searchform.jsp	2008-11-26 02:55:07 UTC (rev 4634)
@@ -27,22 +27,69 @@
 <%@ include file="../../common/common-settings.jsp"%>
 <%@ include file="../../common/configure-check.jsp"%>
 
-<form method="POST" action="<%=SERVLET_URL%>" target="_top">
-Search for: 
-  <input value="INTERSECT" name="operator" type="hidden">   
-  <input size="14" name="anyfield" type="text" value="">
+
+
+<table width="30%" border="0" cellspacing="0" cellpadding="0">
+	<tr>
+	  <td colspan="2">
+	    <p style="font-size: 12px;font-family:arial;">
+      The repository search system is used to locate Kepler 
+	      analytical components of interest
+	      </p>
+	  </td>
+	</tr>
+</table>
+<br/>
+<table width="30%" border="0" cellspacing="0" cellpadding="0">
+	<tr>
+	  <td>
+<form method="get" action="<%=SERVLET_URL%>" target="_top">
+  <input value="INTERSECT" name="operator" type="hidden">
+  <input id="searchText" size="14" name="anyfield" type="text" value="">
   <input name="action" value="query" type="hidden">
-  <input name="qformat" value="knp" type="hidden">
+  <input name="qformat" value="kepler" type="hidden">
   <input name="enableediting" value="false" type="hidden">
   <input name="operator" value="UNION" type="hidden">
+  <input name="pagesize" value="10" type="hidden">
+  <input name="pagestart" value="0" type="hidden">
   <input name="returnfield" value="entity/@name" type="hidden">
+  <input name="returnfield" value="entity/property[@name='karId']/@value" type="hidden">
   <input name="returnfield" value="entity/property[@name='KeplerDocumentation']/property[@name='author']/configure" type="hidden">
+  <input name="returnfield" value="entity/property[@name='KeplerDocumentation']/property[@name='version']/configure" type="hidden">
+  <input name="returnfield" value="entity/property[@name='KeplerDocumentation']/property[@name='description']/configure" type="hidden">
+  <input name="returnfield" value="entity/property[@name='KeplerDocumentation']/property[@name='userLevelDocumentation']/configure" type="hidden">
+  <input name="returndoctype" value="entity" type="hidden">
+  <input value="Search Components" type="submit">
+</form>
+	    </td>
+	  <td align="right">
+<form id="browseForm" method="get" action="<%=SERVLET_URL%>" target="_top">
+  <input value="INTERSECT" name="operator" type="hidden">
+  <input size="14" name="anyfield" type="hidden" value="">
+  <input name="action" value="query" type="hidden">
+  <input name="qformat" value="kepler" type="hidden">
+  <input name="enableediting" value="false" type="hidden">
+  <input name="operator" value="UNION" type="hidden">
+  <input name="pagesize" value="10" type="hidden">
+  <input name="pagestart" value="0" type="hidden">
+  <input name="returnfield" value="entity/@name" type="hidden">
   <input name="returnfield" value="entity/property[@name='karId']/@value" type="hidden">
+  <input name="returnfield" value="entity/property[@name='KeplerDocumentation']/property[@name='author']/configure" type="hidden">
   <input name="returnfield" value="entity/property[@name='KeplerDocumentation']/property[@name='version']/configure" type="hidden">
   <input name="returnfield" value="entity/property[@name='KeplerDocumentation']/property[@name='description']/configure" type="hidden">
   <input name="returnfield" value="entity/property[@name='KeplerDocumentation']/property[@name='userLevelDocumentation']/configure" type="hidden">
   <input name="returndoctype" value="entity" type="hidden">
-  <input name="pagestart" value="0" type="hidden">
-  <input name="pagesize" value="10" type="hidden">
-  <input value="Start Search" type="submit">
+  <input value="Browse All Components" type="Submit">
 </form>
+	    </td>
+	</tr>
+      <tr>
+	<td colspan="2">
+	    <p style="font-size: 12px;font-family:arial;">
+      Use a '%' symbol as a wildcard in searches
+      (e.g., '%Constant%' would locate any phrase with the word
+      'Constant' embedded within it).
+	    </p>
+	  </td>
+	</tr>
+	</table>
\ No newline at end of file



More information about the Metacat-cvs mailing list