Package org.dspace.sort

Examples of org.dspace.sort.OrderFormatDelegate


    /**
     * Generate a sort string for the given DC metadata
     */
    public static String makeSortString(String value, String language, String type)
    {
      OrderFormatDelegate delegate = null;
     
        // If there is no value, return null
        if (value == null)
            return null;

      // If a named index has been supplied
      if (type != null && type.length() > 0)
      {
        // Use a delegate if one is configured
          if ((delegate = OrderFormat.getDelegate(type)) != null)
          {
            return delegate.makeSortString(value, language);
          }

            // No delegates found, so apply defaults
            if (type.equalsIgnoreCase(OrderFormat.AUTHOR) && authorDelegate != null)
            {
View Full Code Here

TOP

Related Classes of org.dspace.sort.OrderFormatDelegate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.