Package org.dspace.sort
Class OrderFormatDate
- java.lang.Object
-
- org.dspace.sort.OrderFormatDate
-
- All Implemented Interfaces:
OrderFormatDelegate
public class OrderFormatDate extends Object implements OrderFormatDelegate
Standard date ordering delegate implementation. The only "special" need is to treat dates with less than 4-digit year.- Author:
- Andrea Bollini
-
-
Constructor Summary
Constructors Constructor Description OrderFormatDate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringmakeSortString(String value, String language)Prepare the appropriate sort string for the given value in the given language.
-
-
-
Method Detail
-
makeSortString
public String makeSortString(String value, String language)
Description copied from interface:OrderFormatDelegatePrepare the appropriate sort string for the given value in the given language. Language should be supplied with the ISO-6390-1 or ISO-639-2 standards. For example "en" or "eng".- Specified by:
makeSortStringin interfaceOrderFormatDelegate- Parameters:
value- the string valuelanguage- the language to interpret in- Returns:
- the sort string
-
-