Class FacetFieldSidebarWidget
java.lang.Object
io.goobi.viewer.model.cms.widgets.CustomSidebarWidget
io.goobi.viewer.model.cms.widgets.FacetFieldSidebarWidget
- All Implemented Interfaces:
IPolyglott
,Serializable
A subtype of
CustomSidebarWidget
to display a list of possible values of a given SOLR field and link to a search listing of items with a
specific value- Author:
- florian
- See Also:
-
Field Summary
Fields inherited from class io.goobi.viewer.model.cms.widgets.CustomSidebarWidget
id
-
Constructor Summary
ConstructorDescriptionEmpty default constructorCloning constructor -
Method Summary
Modifier and TypeMethodDescriptionContains the SOLR field holding the values to listAn additional SOLR query.int
getTitle()
Override default title to always show the selected facetFieldgetType()
Return the type of this custom sidebar widget.void
setFacetField
(String facetField) Set the SOLR field for which to list valuesvoid
setFilterQuery
(String filterQuery) Set the value ofgetFilterQuery()
void
setNumEntries
(int numEntries) Set the number of field values displayed in the widgetMethods inherited from class io.goobi.viewer.model.cms.widgets.CustomSidebarWidget
clone, getDescription, getId, getSelectedLocale, getStyleClass, isCollapsed, isComplete, isEmpty, isValid, setCollapsed, setId, setSelectedLocale, setStyleClass, setTitle
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.goobi.viewer.model.translations.IPolyglott
getLocales, isDefaultLocaleSelected, isSelected, setSelectedLocale
-
Constructor Details
-
FacetFieldSidebarWidget
public FacetFieldSidebarWidget()Empty default constructor -
FacetFieldSidebarWidget
Cloning constructor- Parameters:
o
-
-
-
Method Details
-
getFacetField
Contains the SOLR field holding the values to list- Returns:
- the facetField
-
setFacetField
Set the SOLR field for which to list values- Parameters:
facetField
- the facetField to set
-
getFilterQuery
An additional SOLR query. If this is not empty, only values of thegetFacetField()
are listed that are contained in documents meeting this query. This is also true for the linked result lists- Returns:
- the filterQuery
-
getCombinedFilterQuery
-
setFilterQuery
Set the value ofgetFilterQuery()
- Parameters:
filterQuery
- the filterQuery to set
-
getType
Description copied from class:CustomSidebarWidget
Return the type of this custom sidebar widget. Must be implemented by subclasses ofCustomSidebarWidget
- Overrides:
getType
in classCustomSidebarWidget
- Returns:
CustomWidgetType
-
getNumEntries
public int getNumEntries()- Returns:
- the number of field values displayed in the widget
-
setNumEntries
public void setNumEntries(int numEntries) Set the number of field values displayed in the widget- Parameters:
numEntries
-
-
getTitle
Override default title to always show the selected facetField- Overrides:
getTitle
in classCustomSidebarWidget
- Returns:
- the title
-