Changeset 32644

Show
Ignore:
Timestamp:
03.12.2018 13:03:10 (11 days 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.

Files:
1 modified

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']">