From 5f39994250707aa0a318a3aad1728bca2e79868b Mon Sep 17 00:00:00 2001 From: "Maria Odea B. Ching" Date: Mon, 16 Feb 2009 07:31:44 +0000 Subject: [PATCH] [MRM-1043] o added row count in search criteria o cleaned up jsp git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@744832 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva/web/action/SearchAction.java | 10 +-- .../src/main/webapp/WEB-INF/jsp/results.jsp | 80 +++++++------------ 2 files changed, 32 insertions(+), 58 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/SearchAction.java b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/SearchAction.java index c917ce351..8b43995d9 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/SearchAction.java +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/SearchAction.java @@ -170,6 +170,7 @@ public class SearchAction searchFields.put( "artifactId", "Artifact ID" ); searchFields.put( "version", "Version" ); searchFields.put( "className", "Class/Package Name" ); + searchFields.put( "rowCount", "Row Count" ); super.clearErrorsAndMessages(); clearSearchFields(); @@ -182,18 +183,14 @@ public class SearchAction groupId = ""; version = ""; className = ""; + rowCount = 30; currentPage = 0; } // advanced search MRM-90 -- filtered search public String filteredSearch() throws MalformedURLException, RepositoryIndexException, RepositoryIndexSearchException - { - // TODO: - // - repositories must be provided as a select box instead of as a textfield! - // - what about the row count? - // - remove advancedSearch.jsp - + { if ( ( groupId == null || "".equals( groupId ) ) && ( artifactId == null || "".equals( artifactId ) ) && ( className == null || "".equals( className ) ) && ( version == null || "".equals( version ) ) ) @@ -210,7 +207,6 @@ public class SearchAction } SearchResultLimits limits = new SearchResultLimits( currentPage ); - limits.setPageSize( rowCount ); List selectedRepos = new ArrayList(); diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/results.jsp b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/results.jsp index ef195644d..d577b716c 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/results.jsp +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/results.jsp @@ -76,57 +76,35 @@
- - - - - - - -
- * To do a filtered or advanced search, select the criteria from the list below and click the icon. Specify the term you want to be matched in the created text field. -
- - - - - - - - - - - - - -
- -
- -
-
- - <%-- - - - - - - - - - - - - - - - Quick Search Page - - - --%> + + + + + + + +
+ * To do a filtered or advanced search, select the criteria from the list below and click the icon. Specify the term you want to be matched in the created text field. +
+ + + + + + + + + + + + + +
+ +
+ +
+