public class ResultUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ANTHRO_PLUS |
static String |
JSTOR |
| Constructor and Description |
|---|
ResultUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
normalize(String resultData,
String partDataName,
String database)
Normalize one 360 Search result data item.
|
static String |
normalizeAnthroPlusIssue(String issue)
Normalize the issue number (remove the "o." prefix)
|
static String |
normalizeAnthroPlusTitle(String title)
Normalize the title (remove trailing " /")
|
static String |
normalizeJstorPageRange(String range)
Normalize the page range ("pp. ", "p. " are removed)
|
static String |
normalizeJstorStartPage(String page)
Normalize the start page ("pp. ", "p. " are removed)
|
static String |
removeJstorPagePrefix(String page)
Remove leading "pages" prefix ("p. ", "pp. ")
|
static String |
removePrefix(String text,
String prefix)
Remove prefix text
|
public static final String ANTHRO_PLUS
public static final String JSTOR
public static String normalize(String resultData, String partDataName, String database)
resultdata - Result datapartDataName - Data element name (spage, creator, etc)databse - The origin database (JST, EAP, etc)public static String normalizeAnthroPlusIssue(String issue)
issue - The issue numberpublic static String normalizeAnthroPlusTitle(String title)
pages - The page range textpublic static String normalizeJstorPageRange(String range)
pages - The page range textpublic static String normalizeJstorStartPage(String page)
pages - The start page textpublic static String removeJstorPagePrefix(String page)
page - Page, page range, etc.Copyright © 2004–2020 Indiana University Library Information Technology. All rights reserved.