Ignore:
Timestamp:
2016-05-16T14:24:50+12:00 (8 years ago)
Author:
Georgiy Litvinov
Message:

Added collection groups. Config file in web/sites/localsite/groupConfig.xml
PageAction now send request to CollectionGroups service to retrieve information about collections and groups.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/gslib.xsl

    r30478 r30540  
    199199      </input>
    200200    </form>
     201  </xsl:template>
     202 
     203  <xsl:template name="groupLinkWithImage">
     204    <xsl:variable name="desc"><xsl:value-of select="description"/></xsl:variable>
     205    <xsl:variable name="group_href"><xsl:value-of select="$library_name"/>?a=p&amp;sa=home&amp;group=<xsl:value-of select="/page/pageRequest/paramList/param[@name='group']/@value"/>/<xsl:value-of select="@name"/></xsl:variable>
     206    <xsl:choose>
     207      <xsl:when test="backgroundImage">
     208        <a href="{$group_href}" title="{$desc}">
     209          <img class="groupLinkImage">
     210            <xsl:attribute name="alt"><xsl:value-of select="displayItem[@name='name']"/></xsl:attribute>
     211            <xsl:attribute name="src">sites/<xsl:value-of select="$site_name"/>/images/<xsl:value-of select="backgroundImage"/></xsl:attribute>
     212          </img>
     213        </a>
     214      </xsl:when>
     215      <xsl:otherwise>
     216        <a href="{$group_href}" title="{$desc}">
     217          <div class="groupLink ui-corner-all">
     218            <div class="groupLinkText ui-widget-content ui-corner-top">
     219                <xsl:value-of select="title"/>
     220            </div>
     221            <div style="height:15px;" class="ui-state-default ui-corner-bottom"><xsl:text> </xsl:text></div>
     222          </div>
     223        </a>
     224      </xsl:otherwise>
     225    </xsl:choose>
    201226  </xsl:template>
    202227 
Note: See TracChangeset for help on using the changeset viewer.