Package io.goobi.viewer.managedbeans
Class SearchHeroBean
java.lang.Object
io.goobi.viewer.managedbeans.SearchHeroBean
- All Implemented Interfaces:
Serializable
Presentation data for the CMS search hero. Index facts are loaded at most once per request.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAn image slot with JavaBean accessors for Facelets expressions. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintgetHeading(String heading, String collectionsUrl) Links emphasized portions of trusted CMS heading markup to the collections.intgetSlots()
-
Constructor Details
-
SearchHeroBean
public SearchHeroBean()
-
-
Method Details
-
getHeading
Links emphasized portions of trusted CMS heading markup to the collections. Existing links are preserved, including emphasis inside a link or containing a link; none are nested or overwritten.- Parameters:
heading- trusted CMS heading HTML, or nullcollectionsUrl- destination for emphasized text that is not already linked- Returns:
- the heading fragment with collection links
-
getSlots
- Returns:
- the three immutable image-slot definitions in display order
-
getCollectionCount
public int getCollectionCount()- Returns:
- the number of top-level DC collections, or zero if the index cannot be reached
-
getFirstYear
public int getFirstYear()- Returns:
- the earliest indexed year, or -1 if unavailable
-
getLastYear
public int getLastYear()- Returns:
- the latest indexed year, or -1 if unavailable
-