Class ShortViewServiceImpl

    • Method Detail

      • renderShortView

        public String renderShortView​(Individual individual,
                                      ShortViewService.ShortViewContext context,
                                      Map<String,​Object> modelMap,
                                      VitroRequest vreq)
        Description copied from interface: ShortViewService
        Render the short view template that applies to this individual in this context. The data in the modelMap can be used to populate the template, along with any additional data returned by custom data getters. If there are any problems, return a dummy piece of text that includes the label of the individual. Never return null or empty string. This method should not be called from within an ongoing Freemarker process. In that case, use getShortViewInfo() instead.
        Specified by:
        renderShortView in interface ShortViewService