/** * Perform a standard browse, which will return a BrowseInfo * object that represents the results for the current page, the * total number of results, the range, and information to construct * previous and next links on any web page * * @param bs the scope of the browse * @return the results of the browse * @throws BrowseException if browse error */ public BrowseInfo browse(BrowserScope bs) throws BrowseException { log.debug(LogManager.getHeader(context, "browse", "")); // first, load the browse scope into the object this.scope = bs; // since we use it so much, get the browse index out of the // scope and store as a member browseIndex = scope.getBrowseIndex(); // now make the decision as to how to browse if (browseIndex.isMetadataIndex() && !scope.isSecondLevel()) { // this is a single value browse type that has not gone to // the second level (i.e. authors, not items by a given author) return browseByValue(scope); } else { // this is the full browse type or a browse that has gone to // the second level return browseByItem(scope); } }
/** * Get the total number of results for the browse. This is the same as * calling getTotalResults(false) * * @return total * @throws SQLException if database error * @throws BrowseException if browse error */ private int getTotalResults() throws SQLException, BrowseException { return getTotalResults(false); }
BrowseEngine be = new BrowseEngine(context); BrowseInfo binfo = be.browse(scope); List<Integer> iids = new ArrayList<Integer>(); for (BrowseItem bi : binfo.getBrowseItemResults())
BrowseEngine be = new BrowseEngine(context); BrowseInfo bi = be.browseMini(scope); Item[] results = bi.getItemResults(context);
int total = getTotalResults(); rawFocusValue = getJumpToValue(); String focusValue = normalizeJumpToValue(rawFocusValue); offset = getOffsetForValue(focusValue);
int total = getTotalResults(true); String rawFocusValue = null; if (offset < 1 && scope.hasJumpToValue() || scope.hasStartsWith()) { rawFocusValue = getJumpToValue();
BrowseEngine be = new BrowseEngine(context); BrowseInfo binfo = be.browse(scope);
BrowseEngine be = new BrowseEngine(context); this.recentSubmissionItems = be.browseMini(scope).getItemResults(context);
BrowseEngine be = new BrowseEngine(context); this.browseInfo = be.browse(params.scope);
BrowseEngine be = new BrowseEngine(context); BrowserScope bs = new BrowserScope(context); BrowseIndex bi = BrowseIndex.getItemBrowseIndex(); BrowseInfo results = be.browseMini(bs);
BrowseEngine be = new BrowseEngine(context); this.browseInfo = be.browse(params.scope);
BrowseEngine be = new BrowseEngine(context); this.recentSubmittedItems = be.browse(scope).getResults();
BrowseEngine be = new BrowseEngine(context); this.recentSubmissionItems = be.browse(scope).getResults();
bs.setBrowseLevel(1); BrowseEngine be = new BrowseEngine(context); BrowseInfo results = be.browse(bs); Item[] browseItems = results.getItemResults(context);