mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Merge pull request #10051 from saschaszott/saschaszott-patch-3
Code Cleanup in BrowseIndex
This commit is contained in:
@@ -543,19 +543,6 @@ public class BrowseIndex {
|
||||
return getTableName(false, false, true, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the name of the column that is used to store the default value column
|
||||
*
|
||||
* @return the name of the value column
|
||||
*/
|
||||
public String getValueColumn() {
|
||||
if (!isDate()) {
|
||||
return "sort_text_value";
|
||||
} else {
|
||||
return "text_value";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the name of the primary key index column
|
||||
*
|
||||
@@ -565,35 +552,6 @@ public class BrowseIndex {
|
||||
return "id";
|
||||
}
|
||||
|
||||
/**
|
||||
* Is this browse index type for a title?
|
||||
*
|
||||
* @return true if title type, false if not
|
||||
*/
|
||||
// public boolean isTitle()
|
||||
// {
|
||||
// return "title".equals(getDataType());
|
||||
// }
|
||||
|
||||
/**
|
||||
* Is the browse index type for a date?
|
||||
*
|
||||
* @return true if date type, false if not
|
||||
*/
|
||||
public boolean isDate() {
|
||||
return "date".equals(getDataType());
|
||||
}
|
||||
|
||||
/**
|
||||
* Is the browse index type for a plain text type?
|
||||
*
|
||||
* @return true if plain text type, false if not
|
||||
*/
|
||||
// public boolean isText()
|
||||
// {
|
||||
// return "text".equals(getDataType());
|
||||
// }
|
||||
|
||||
/**
|
||||
* Is the browse index of display type single?
|
||||
*
|
||||
|
Reference in New Issue
Block a user