/* * Creates a Map of the browse control options (sort by / ordering / results * per page / authors per item) */ Map<String, String> getControlParameters() throws UIException { Map<String, String> paramMap = new HashMap<String, String>(); paramMap.put(BrowseParams.SORT_BY, Integer.toString(this.scope.getSortBy())); paramMap.put(BrowseParams.ORDER, AbstractDSpaceTransformer.URLEncode(this.scope.getOrder())); paramMap.put(BrowseParams.RESULTS_PER_PAGE, Integer.toString(this.scope.getResultsPerPage())); paramMap.put(BrowseParams.ETAL, Integer.toString(this.etAl)); return paramMap; }
/* * Creates a map of the browse options common to all pages (type / value / * value language) */ Map<String, String> getCommonParameters() throws UIException { Map<String, String> paramMap = new HashMap<String, String>(); paramMap.put( BrowseParams.TYPE, AbstractDSpaceTransformer.URLEncode(scope.getBrowseIndex().getName())); if (scope.getFilterValue() != null) { paramMap.put( BrowseParams.FILTER_VALUE, AbstractDSpaceTransformer.URLEncode(scope.getFilterValue())); } if (scope.getFilterValueLang() != null) { paramMap.put( BrowseParams.FILTER_VALUE_LANG, AbstractDSpaceTransformer.URLEncode(scope.getFilterValueLang())); } return paramMap; }