Ignore:
Timestamp:
2018-12-03T13:03:10+13:00 (5 years ago)
Author:
kjdon
Message:

using restful URLs for groups now too. eg library/group/MyGroup. group hierarchy is now in url, for subgroups, and for collections inside a group. eg library/group/TopGroup/SubGroup, and library/collection/MyGroup/democol.

File:
1 edited

Legend:

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

    r32457 r32644  
    270270  <xsl:template name="groupHref">
    271271    <xsl:param name="path"/>
    272     <xsl:value-of select="$library_name"/>?a=p&amp;sa=home&amp;group=<xsl:value-of select="@path"/>
     272    <xsl:value-of select="$library_name"/>/group/<xsl:value-of select="@path"/>
    273273  </xsl:template>
    274274
    275275  <xsl:template name="groupLinkWithImage">
    276276    <xsl:variable name="desc"><xsl:value-of select="description"/></xsl:variable>
    277     <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>
     277    <xsl:variable name="group_href"><xsl:value-of select="$library_name"/>/group/<xsl:value-of select="@path"/></xsl:variable>
    278278   
    279279    <xsl:choose>
     
    308308  <xsl:template name="collectionLinkWithImage">
    309309    <xsl:variable name="desc"><xsl:value-of select="displayItemList/displayItem[@name='shortDescription']"/></xsl:variable>
    310     <xsl:variable name="coll_href"><xsl:value-of select="$library_name"/>/collection/<xsl:value-of select="@name"/>/page/about<xsl:choose><xsl:when test="libraryParamList/param">?<xsl:for-each select="libraryParamList/param"><xsl:value-of select="@name"/>=<xsl:value-of select="@default"/>&amp;</xsl:for-each></xsl:when></xsl:choose></xsl:variable>
     310    <xsl:variable name="coll_href"><xsl:value-of select="$library_name"/>/collection/<xsl:if test="/page/pageRequest/paramList/param[@name='group']"><xsl:value-of select="/page/pageRequest/paramList/param[@name='group']/@value"/>/</xsl:if><xsl:value-of select="@name"/>/page/about<xsl:choose><xsl:when test="libraryParamList/param">?<xsl:for-each select="libraryParamList/param"><xsl:value-of select="@name"/>=<xsl:value-of select="@default"/>&amp;</xsl:for-each></xsl:when></xsl:choose></xsl:variable>
    311311    <xsl:choose>
    312312      <xsl:when test="displayItemList/displayItem[@name='smallicon']">
Note: See TracChangeset for help on using the changeset viewer.