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
ConstructorsConstructorDescriptionEmpty default constructorCloning constructor -
Method Summary
Modifier and TypeMethodDescriptionContains the SOLR field holding the values to listAn additional SOLR query.intgetTitle()Override default title to always show the selected facetFieldgetType()Return the type of this custom sidebar widget.voidsetFacetField(String facetField) Set the SOLR field for which to list valuesvoidsetFilterQuery(String filterQuery) Set the value ofgetFilterQuery()voidsetNumEntries(int numEntries) Set the number of field values displayed in the widgetMethods inherited from class io.goobi.viewer.model.cms.widgets.CustomSidebarWidget
clone, getAdminBackendUrl, getDescription, getId, getSelectedLocale, getShortDescription, getStyleClass, isCollapsed, isComplete, isEmpty, isHasShortDescription, isValid, setCollapsed, setId, setSelectedLocale, setStyleClass, setTitleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:CustomSidebarWidgetReturn the type of this custom sidebar widget. Must be implemented by subclasses ofCustomSidebarWidget- Overrides:
getTypein 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:
getTitlein classCustomSidebarWidget- Returns:
- the title
-