Changeset 25439

Show
Ignore:
Timestamp:
19.04.2012 16:06:41 (8 years ago)
Author:
sjm84
Message:

RESTful collection links

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/oran/transform/util.xsl

    r25417 r25439  
    5353    <xsl:if test="/page/pageResponse/collection"> 
    5454      <a> 
    55         <xsl:attribute name="href">./<xsl:value-of select="$library_name"/>?a=p&amp;sa=about&amp;c=<xsl:call-template name="collectionNameShort"/></xsl:attribute> 
     55        <xsl:attribute name="href">./<xsl:value-of select="$library_name"/>/collection/<xsl:call-template name="collectionNameShort"/>/page/about</xsl:attribute> 
    5656        <xsl:call-template name="collectionName"/> 
    5757      </a> 
     
    190190    <xsl:choose> 
    191191      <xsl:when test="displayItem[@name='icon']"> 
    192         <a href="{$library_name}?a=p&amp;sa=about&amp;c={@name}"> 
     192        <a href="{$library_name}/collection/{@name}/page/about"> 
    193193          <img class="collectionLinkImage"> 
    194194            <xsl:attribute name="alt"/> 
     
    204204      </xsl:when> 
    205205      <xsl:otherwise> 
    206         <a href="{$library_name}?a=p&amp;sa=about&amp;c={@name}"> 
     206        <a href="{$library_name}/collection/{@name}/page/about"> 
    207207          <div class="collectionLink"> 
    208208            <xsl:value-of select="displayItem[@name='name']"/>