org.dspace.sort
Class OrderFormat

java.lang.Object
  extended by org.dspace.sort.OrderFormat

public class OrderFormat
extends Object

Class implementing static helpers for anywhere that interacts with the sort columns (ie. ItemsByAuthor.sort_author, ItemsByTitle.sort_title) This class maps index 'types' to delegates that implement the sort string creation Types can be defined or configured using the plugin manager: plugin.named.org.dspace.sort.OrderFormatDelegate= org.dspace.sort.OrderFormatTitleMarc21=title org.dspace.sort.OrderFormatAuthor=author The following standard types have been defined by default, but can be reconfigured via the plugin manager: author = org.dspace.sort.OrderFormatAuthor title = org.dspace.sort.OrderFormatTitle text = org.dspace.sort.OrderFormatText IMPORTANT - If you change any of the orderings, you need to rebuild the browse sort columns (ie. run 'index-all', or 'dsrun org.dspace.browse.InitializeBrowse')

Version:
$Revision: 4497 $
Author:
Graham Triggs

Field Summary
static String AUTHOR
           
static String AUTHORITY
           
static String DATE
           
static String TEXT
           
static String TITLE
           
 
Constructor Summary
OrderFormat()
           
 
Method Summary
static String makeSortString(String value, String language, String type)
          Generate a sort string for the given DC metadata
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTHOR

public static final String AUTHOR
See Also:
Constant Field Values

TITLE

public static final String TITLE
See Also:
Constant Field Values

TEXT

public static final String TEXT
See Also:
Constant Field Values

DATE

public static final String DATE
See Also:
Constant Field Values

AUTHORITY

public static final String AUTHORITY
See Also:
Constant Field Values
Constructor Detail

OrderFormat

public OrderFormat()
Method Detail

makeSortString

public static String makeSortString(String value,
                                    String language,
                                    String type)
Generate a sort string for the given DC metadata



Copyright © 2010 DuraSpace. All Rights Reserved.