]> source.dussan.org Git - archiva.git/commitdiff
[MRM-985]
authorMaria Odea B. Ching <oching@apache.org>
Wed, 29 Oct 2008 02:12:09 +0000 (02:12 +0000)
committerMaria Odea B. Ching <oching@apache.org>
Wed, 29 Oct 2008 02:12:09 +0000 (02:12 +0000)
o included boolean NOT search in search hints
o changed search hints to appear only when toggled (used jquery)

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@708752 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/quickSearch.jsp

index b9d0c70f5da722f8d3fc450e2d831b73a93650bc..6684296ede0a64d75d0ef39ab34e44673238a7a4 100644 (file)
   --%>
 
 <%@ taglib prefix="s" uri="/struts-tags" %>
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
+
 <html>
 <head>
   <title>Quick Search</title>
   <s:head/>
+  <script type="text/javascript" src="<c:url value='/js/jquery/jquery-1.2.6.pack.js'/>"></script>
+  <script type="text/javascript">
+    $(document).ready(function(){
+    
+    $("table.settings").hide();
+    $("a.expand").click(function(event){
+      event.preventDefault();
+      $(this).next().toggle("slow");
+    });
+  });
+  </script>
 </head>
 
 <s:if test="%{infoMessage != null}">
     <s:submit value="Search"/>
   </s:form>
 
-  <script type="text/javascript">
-    document.getElementById("quickSearch_q").focus();
-  </script>
-
   <s:url id="filteredSearchUrl" action="advancedSearch"/>
   <s:a href="%{filteredSearchUrl}">
     Advanced Search >>
   </p>
 </div>
 <div id="searchHint">
-  <p>
-    Enter your search terms. A variety of data will be searched for your keywords.<br/>
-    To search for Java classes, packages or methods, use the keyword <code>bytecode:</code>
-    before the term. For example: 
-    <code>bytecode:MyClass</code>, or:
-    <code>bytecode:myMethod</code>
-  </p>
+  
+  Enter your search terms. A variety of data will be searched for your keywords. <a class="expand" href="#"><img src="<c:url value="/images/icon_info_sml.gif"/>" /></a>
+  <table class="settings">
+    <tr>
+      <td>
+        <b>*</b> To search for Java classes, packages or methods, use the keyword <code>bytecode:</code>
+        before the term. For example: <code>bytecode:MyClass</code>, or <code>bytecode:myMethod</code><br/>  
+      </td>
+    </tr>
+    <tr>
+      <td>
+        <b>*</b> To perform a boolean <code>NOT</code> search, use the keyword <code>NOT</code> after your search
+         term, followed by the term you want to exclude. For example, to exclude artifacts with 
+         a dependency on the artifact you are searching for from showing up in the search results:  
+         <code>myQueryTerm NOT dependency</code> 
+      </td>
+    </tr>
+  </table>
+  
 </div>
 </div>
 </body>
-</html>
+</html>
\ No newline at end of file