Ignore:
Timestamp:
2008-07-30T15:09:13+12:00 (16 years ago)
Author:
max
Message:

Solve the url issues after extracted gslib statements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/web/ui/xslt/library.xsl

    r16502 r16599  
    8181
    8282<xsl:template name="collection_url">
    83     <xsl:value-of select="$librarian" />?a=p&amp;sa=about&amp;c=<xsl:value-of select="@name" />
     83<xsl:value-of select="$librarian" />?a=p&amp;sa=about&amp;
     84c=<xsl:value-of select="@name" />
    8485</xsl:template>
    8586
    8687<xsl:variable name="site_homeUrl">
    87     <xsl:value-of select="$librarian" />?a=p&amp;sa=home
     88<xsl:value-of select="$librarian" />?a=p&amp;sa=home
    8889</xsl:variable>
    8990
     
    9394
    9495<xsl:variable name="collection_homeUrl">
    95     <xsl:value-of select="$librarian" />?a=p&amp;sa=about&amp;c=<xsl:value-of select="$collection"/>
     96<xsl:value-of select="$librarian" />?a=p&amp;sa=about&amp;
     97c=<xsl:value-of select="$collection"/>
    9698</xsl:variable>
    9799
     
    120122    </xsl:variable>
    121123   
    122     <xsl:value-of select="$librarian"/>?a=<xsl:value-of select="$serviceAction"/>&amp;rt=d&amp;s=<xsl:value-of select="@name"/>&amp;c=<xsl:value-of select="$collection"/>
     124<xsl:value-of select="$librarian"/>?
     125a=<xsl:value-of select="$serviceAction"/>&amp;rt=d&amp;
     126s=<xsl:value-of select="@name"/>&amp;
     127c=<xsl:value-of select="$collection"/>
    123128</xsl:template>
    124129
     
    134139
    135140<xsl:template name="classifier_url">
    136     <xsl:value-of select="$librarian"/>?a=b&amp;rt=r&amp;s=<xsl:value-of select="../../@name"/>&amp;c=<xsl:value-of select="$collection"/>&amp;cl=<xsl:value-of select="@name"/>
     141<xsl:value-of select="$librarian"/>?a=b&amp;rt=r&amp;
     142s=<xsl:value-of select="../../@name"/>&amp;
     143c=<xsl:value-of select="$collection"/>&amp;
     144cl=<xsl:value-of select="@name"/>
    137145</xsl:template>
    138146
     
    237245
    238246<xsl:value-of select="$librarian"/>
    239 ?a=b&amp;rt=r&amp;s=
    240 <xsl:value-of select="/page/pageResponse/service/@name"/>
    241 &amp;c=
    242 <xsl:value-of select="$collection"/>
    243 &amp;cl=
    244 <xsl:value-of select="@nodeID" /><xsl:if test="classifierNode|documentNode">.pr</xsl:if>
     247?a=b&amp;rt=r&amp;
     248s=<xsl:value-of select="/page/pageResponse/service/@name"/>&amp;
     249c=<xsl:value-of select="$collection"/>&amp;
     250cl=<xsl:value-of select="@nodeID" /><xsl:if test="classifierNode|documentNode">.pr</xsl:if>
    245251
    246252</xsl:template>
     
    256262<xsl:template name="documentNode_url">
    257263
    258 <xsl:value-of select="$librarian"/>
    259 ?a=d&amp;c=
    260 <xsl:value-of select="$collection"/>
    261 &amp;d=
    262 <xsl:value-of select="@nodeID"/>
    263 &amp;sib=1&amp;p.a=b&amp;p.s=ClassifierBrowse
    264 
    265 </xsl:template>
     264     
     265     
     266<xsl:value-of select="$librarian"/>?a=d&amp;
     267c=<xsl:value-of select="$collection"/>&amp;
     268d=<xsl:value-of select="@nodeID"/>&amp;
     269<!-- dt=<xsl:value-of select="@docType"/>&amp; -->
     270sib=1&amp;
     271p.a=b&amp;
     272p.s=ClassifierBrowse
     273
     274</xsl:template>
     275
     276
    266277
    267278
     
    294305
    295306<xsl:variable name="document_expanded_url">
    296     <xsl:value-of select="$librarian"/>?a=d&amp;
    297     c=<xsl:value-of select="$collection"/>&amp;
    298     d=<xsl:value-of select="$document_hash"/>&amp;
    299     ed=1
     307<xsl:value-of select="$librarian"/>?a=d&amp;
     308c=<xsl:value-of select="$collection"/>&amp;
     309d=<xsl:value-of select="$document_hash"/>&amp;
     310ed=1
    300311</xsl:variable>
    301312
    302313<xsl:variable name="document_collapsed_url">
    303     <xsl:value-of select="$librarian"/>?a=d&amp;
    304     c=<xsl:value-of select="$collection"/>&amp;
    305     d=<xsl:value-of select="$document_hash"/>
     314<xsl:value-of select="$librarian"/>?a=d&amp;
     315c=<xsl:value-of select="$collection"/>&amp;
     316d=<xsl:value-of select="$document_hash"/>
    306317</xsl:variable>
    307318
     
    358369
    359370<xsl:variable name="document_previousSection_url">
    360     <xsl:value-of select="$librarian"/>?a=d&amp;
    361     c=<xsl:value-of select="$collection"/>&amp;
    362     d=<xsl:value-of select="$document_previousSection/@nodeID"/>&amp;
    363     sib=1&amp;ec=1
     371<xsl:value-of select="$librarian"/>?a=d&amp;
     372c=<xsl:value-of select="$collection"/>&amp;
     373d=<xsl:value-of select="$document_previousSection/@nodeID"/>&amp;
     374sib=1&amp;
     375ec=1
    364376</xsl:variable>
    365377
     
    369381
    370382<xsl:variable name="document_nextSection_url">
    371     <xsl:value-of select="$librarian"/>?a=d&amp;
    372     c=<xsl:value-of select="$collection"/>&amp;
    373     d=<xsl:value-of select="$document_nextSection/@nodeID"/>&amp;
    374     sib=1&amp;ec=1
     383<xsl:value-of select="$librarian"/>?a=d&amp;
     384c=<xsl:value-of select="$collection"/>&amp;
     385d=<xsl:value-of select="$document_nextSection/@nodeID"/>&amp;
     386sib=1&amp;
     387ec=1
    375388</xsl:variable>
    376389
Note: See TracChangeset for help on using the changeset viewer.