Codota Logo
BrowseIndex.isMetadataIndex
Code IndexAdd Codota to your IDE (free)

How to use
isMetadataIndex
method
in
org.dspace.browse.BrowseIndex

Best Java code snippets using org.dspace.browse.BrowseIndex.isMetadataIndex (Showing top 16 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: DSpace/DSpace

/**
 * @return Returns the number of metadata fields for this index
 */
public int getMetadataCount() {
  if (isMetadataIndex()) {
    return metadata.length;
  }
  return 0;
}
origin: DSpace/DSpace

/**
 * @param idx index
 * @return Returns the mdBits.
 */
public String[] getMdBits(int idx) {
  if (isMetadataIndex()) {
    return mdBits[idx];
  }
  return null;
}
origin: DSpace/DSpace

/**
 * Populate the internal array containing the bits of metadata, for
 * ease of use later
 */
public void generateMdBits() {
  try {
    if (isMetadataIndex()) {
      mdBits = new String[metadata.length][];
      for (int i = 0; i < metadata.length; i++) {
        mdBits[i] = interpretField(metadata[i], null);
      }
    }
  } catch (IOException e) {
    // it's not obvious what we really ought to do here
    //log.error("caught exception: ", e);
  }
}
origin: DSpace/DSpace

/**
 * Get the field for sorting associated with this index.
 *
 * @param isSecondLevel whether second level browse
 * @return sort field
 * @throws BrowseException if browse error
 */
public String getSortField(boolean isSecondLevel) throws BrowseException {
  String focusField;
  if (isMetadataIndex() && !isSecondLevel) {
    focusField = "sort_value";
  } else {
    if (sortOption != null) {
      focusField = "sort_" + sortOption.getNumber();
    } else {
      focusField = "sort_1";  // Use the first sort column
    }
  }
  return focusField;
}
origin: DSpace/DSpace

/**
 * Convert the value into an offset into the table for this browse
 *
 * @param value value
 * @return the focus value to use
 * @throws BrowseException if browse error
 */
private int getOffsetForDistinctValue(String value)
  throws BrowseException {
  if (!browseIndex.isMetadataIndex()) {
    throw new IllegalArgumentException("getOffsetForDistinctValue called when not a metadata index");
  }
  // now get the DAO to do the query for us, returning the highest
  // string value in the given column in the given table for the
  // item (I think)
  return dao.doDistinctOffsetQuery("sort_value", value, scope.isAscending());
}
origin: DSpace/DSpace

displayType = matcher.group(2);
if (isMetadataIndex()) {
  metadataAll = matcher.group(3);
  datatype = matcher.group(4);
origin: DSpace/DSpace

    sb.append(" sort column focus: ").append(focus);
} else if (browseIndex.isMetadataIndex()) {
  sb.append("Listing single column: ").append(browseIndex.getMetadata());
  if (isStartsWith()) {
if (browseIndex.isMetadataIndex() && !isSecondLevel()) {
  sb.append(valueListingString());
} else if (browseIndex.isItemIndex() || isSecondLevel()) {
origin: DSpace/DSpace

/**
 * 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);
  }
}
origin: org.dspace/dspace-jspui-api

if (bi.isMetadataIndex() && !scope.isSecondLevel())
origin: DSpace/DSpace

if (bi.isMetadataIndex()) {
origin: org.dspace/dspace-jspui-api

if (bi != null && bi.isMetadataIndex() && scope.isSecondLevel() && scope.getSortBy() <= 0)
origin: DSpace/DSpace

if (sortBy <= 0 && browseIndex.isMetadataIndex()) {
origin: org.dspace/dspace-xmlui-api

if (bix.isMetadataIndex())
origin: org.dspace/dspace-xmlui-api

if (bix.isMetadataIndex())
origin: org.dspace/dspace-xmlui-api

if (bix.isMetadataIndex())
origin: org.dspace/dspace-xmlui-api

if (bix.isMetadataIndex())
org.dspace.browseBrowseIndexisMetadataIndex

Javadoc

Is the browse index of display type single?

Popular methods of BrowseIndex

  • getItemBrowseIndex
  • getName
  • getSortOption
  • getWithdrawnBrowseIndex
  • isItemIndex
  • getBrowseIndex
  • getBrowseIndices
  • getDefaultOrder
  • getMetadata
  • isAuthorityIndex
  • isDate
  • isInternalIndex
  • isDate,
  • isInternalIndex,
  • <init>,
  • generateMdBits,
  • getDataType,
  • getDisplayType,
  • getDistinctTableName,
  • getMapTableName,
  • getMdBits

Popular in Java

  • Updating database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • onRequestPermissionsResult (Fragment)
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • Path (java.nio.file)
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now