}
SearchFields searchField = getModelMapper().map( searchRequest, SearchFields.class );
SearchResultLimits limits = new SearchResultLimits( 0 );
+ limits.setPageSize( searchRequest.getPageSize() );
// if no repos set we use ones available for the user
if ( searchField.getRepositories() == null || searchField.getRepositories().isEmpty() )
search.artifact.search.form.query.bundleExportService=Export Service
search.artifact.search.form.query.bundleImportPackage=Import Package
search.artifact.search.form.query.bundleRequireBundle=Require Bundle
+search.artifact.search.form.query.pageSize=Page Size
artifact.detail.tab.header.dependencies=Dependencies
artifact.detail.tab.header.metadatas=Metadata
artifact.detail.tab.header.mailing.list=Mailing Lists
var classifier= terms.length>3?terms[3]:"";
var packaging= terms.length>4?terms[4]:"";
var className= terms.length>5?terms[5]:"";
+ var pageSize= terms.length>6?terms[6]:"";
$.log("groupId:artifactId:version:classifier:packaging:className="+groupId+':'+artifactId+':'+version+':'+classifier+':'+packaging+':'+className);
var searchViewModel = new SearchViewModel();
var searchRequest = new SearchRequest();
searchRequest.classifier(classifier);
searchRequest.packaging(packaging);
searchRequest.className(className);
+ searchRequest.pageSize(pageSize);
//searchRequest.repositories=repos;
//searchRequest.selectedRepoIds=repos;
searchViewModel.searchRequest(searchRequest);
this.includePomArtifacts=ko.observable(true);
this.classifier=ko.observable();
+
+ // private int pageSize = 30;
+ this.pageSize = ko.observable( 30 );
}
/**
location+="/";
if(self.searchRequest().groupId()){
location+=self.searchRequest().groupId();
- }/*else{
- location+='~';
- }*/
+ }
if(self.searchRequest().artifactId()){
location+='~'+self.searchRequest().artifactId();
}else{
}else{
location+='~';
}
+ if(self.searchRequest().pageSize()){
+ location+='~'+self.searchRequest().pageSize();
+ }else{
+ location+='~';
+ }
$.log("location:"+location);
window.sammyArchivaApplication.setLocation(location);
data-bind="value: searchRequest().className"/>
</div>
</div>
+ <div class="control-group">
+ <label class="control-label" for="pageSize">${$.i18n.prop('search.artifact.search.form.query.pageSize')}</label>
+
+ <div class="controls">
+ <input type="text" class="defaults" id="pageSize" name="pageSize" size="50"
+ placeholder="my.pageSize"
+ data-bind="value: searchRequest().pageSize"/>
+ </div>
+ </div>
</fieldset>
<button type="submit" id="btn-advanced-search" class="btn btn-primary"