Ignore:
Timestamp:
2012-04-12T14:54:08+12:00 (12 years ago)
Author:
sjm84
Message:

Replacing some URLs with the RESTful versions

File:
1 edited

Legend:

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

    r25279 r25361  
    7373                    <xslt:attribute name='href'>
    7474                        <xslt:value-of select='$library_name'/>
     75                       
     76                        <!--
    7577                        <xsl:text>?a=b&amp;rt=r&amp;s=</xsl:text>
    7678                        <xslt:value-of select='/page/pageResponse/service/@name'/>
     
    8587                            <xsl:text>&amp;sib=1</xsl:text>
    8688                        </xslt:if>
     89                        -->
    8790                    </xslt:attribute>
    8891                    <xsl:apply-templates/>
     
    102105                    <xslt:value-of select="/page/pageRequest/paramList/param[@name='book']/@value"/>
    103106                </xslt:variable>
    104                 <xslt:choose>
    105                     <xslt:when test="$bookswitch = 'on' or $bookswitch = 'flashxml'">
    106                         <a>
    107                             <xslt:attribute name="href">
    108                                 <xslt:value-of select='$library_name'/>
    109                                 <xsl:text>?a=d&amp;ed=1&amp;book=on&amp;c=</xsl:text>
    110                                 <xslt:value-of select='/page/pageResponse/collection/@name'/>
    111                                 <xsl:text>&amp;d=</xsl:text>
    112                                 <xslt:value-of select='@nodeID'/>
    113                                 <xsl:text>&amp;dt=</xsl:text>
    114                                 <xslt:value-of select='@docType'/>
    115                                 <xslt:if test="@nodeType='leaf'">
    116                                     <xsl:text>&amp;sib=1</xsl:text>
    117                                 </xslt:if>
    118                                 <xsl:text>&amp;p.a=</xsl:text>
    119                                 <xslt:value-of select="/page/pageRequest/@action"/>
    120                                 <xsl:text>&amp;p.sa=</xsl:text>
    121                                 <xsl:value-of select="/page/pageRequest/@subaction"/>
    122                                 <xsl:text>&amp;p.s=</xsl:text>
    123                                 <xslt:value-of select="/page/pageResponse/service/@name"/>
    124                                 <xsl:text>#</xsl:text>
    125                                 <xslt:value-of select="@nodeID"/>
    126                             </xslt:attribute>
    127                             <xsl:apply-templates/>
    128                         </a>
    129                     </xslt:when>
    130                     <xslt:otherwise>
    131                         <a>
    132                             <xslt:attribute name="href">
    133                                 <xslt:value-of select='$library_name'/>
    134                                 <xsl:text>?a=d&amp;book=off</xsl:text>
    135                                 <xslt:if test="not(@docType = 'paged')">
    136                                     <xsl:text>&amp;ed=1</xsl:text>
    137                                 </xslt:if>
    138                                 <xsl:text>&amp;c=</xsl:text>                               
    139                                 <xslt:value-of select='/page/pageResponse/collection/@name'/>
    140                                 <xsl:text>&amp;d=</xsl:text>
    141                                 <xslt:value-of select='@nodeID'/>
    142                                 <xsl:text>&amp;dt=</xsl:text>
    143                                 <xslt:value-of select='@docType'/>
    144                                 <xslt:if test="@nodeType='leaf'">
    145                                     <xsl:text>&amp;sib=1</xsl:text>
    146                                 </xslt:if>
    147                                 <xsl:text>&amp;p.a=</xsl:text>
    148                                 <xslt:value-of select="/page/pageRequest/@action"/>
    149                                 <xsl:text>&amp;p.sa=</xsl:text>
    150                                 <xsl:value-of select="/page/pageRequest/@subaction"/>
    151                                 <xsl:text>&amp;p.s=</xsl:text>
    152                                 <xslt:value-of select="/page/pageResponse/service/@name"/>
    153                                 <xsl:text>#</xsl:text>
    154                                 <xslt:value-of select="@nodeID"/>
    155                             </xslt:attribute>
    156                             <xsl:apply-templates/>
    157                         </a>
    158                     </xslt:otherwise>
    159                 </xslt:choose>
     107                <a>
     108                    <xslt:attribute name="href">
     109                        <xslt:value-of select='$library_name'/>
     110                        <xsl:text>/collection/</xsl:text>
     111                        <xslt:value-of select='/page/pageResponse/collection/@name'/>
     112                        <xsl:text>/document/</xsl:text>
     113                        <xslt:value-of select='@nodeID'/>
     114                        <xslt:if test="$bookswitch = 'on' or $bookswitch = 'flashxml'">
     115                            <xsl:text>?book=on</xsl:text>
     116                        </xslt:if>
     117                    </xslt:attribute>
     118                    <xsl:apply-templates/>
     119                </a>
    160120            </xsl:otherwise>
    161121        </xsl:choose>
     
    167127                <img style="border:0px"><xsl:attribute name="src"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'bookshelf_image')"/></xsl:attribute></img>
    168128            </xsl:when>
    169             <xsl:when test="@type='document'">
     129            <xsl:when test="not(@type) or @type='document'">
    170130                <img style="border:0px"><xslt:attribute name="id">documentBasketBook<xslt:value-of select="/page/pageResponse/collection/@name"/>:<xslt:value-of select="@nodeID"/></xslt:attribute><xslt:attribute name="src"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'page_icon_image')"/></xslt:attribute></img>
    171131            </xsl:when>
Note: See TracChangeset for help on using the changeset viewer.