Class SearchHeroBean

java.lang.Object
io.goobi.viewer.managedbeans.SearchHeroBean
All Implemented Interfaces:
Serializable

@Named @RequestScoped public class SearchHeroBean extends Object implements Serializable
Presentation data for the CMS search hero. Index facts are loaded at most once per request.
See Also:
  • Constructor Details

    • SearchHeroBean

      public SearchHeroBean()
  • Method Details

    • getHeading

      public String getHeading(String heading, String collectionsUrl)
      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 null
      collectionsUrl - destination for emphasized text that is not already linked
      Returns:
      the heading fragment with collection links
    • getSlots

      public List<SearchHeroBean.Slot> 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