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. +
+ + + + + + + + + + + + + +
+ +
+ +
+