Foundry: Links on search results pane now point to the edit pane

git-svn-id: https://svn.libreccm.org/ccm/trunk@3077 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2015-01-15 12:51:17 +00:00
parent 99e722cd45
commit e5f3432bcb
1 changed files with 12 additions and 2 deletions

View File

@ -46,7 +46,7 @@
'show-graphic-score', 'show-graphic-score',
'true'))"> 'true'))">
<xsl:attribute name="style" <xsl:attribute name="style"
select="concat('background-image: ', foundry:gen-path('images/search/score-empty.gif', 'internal'), '; ', select="concat('background-image: url(', foundry:gen-path('images/search/score-empty.gif', 'internal'), '); ',
'background-repeat: no-repeat; ', 'background-repeat: no-repeat; ',
'width: ', foundry:get-setting('search', 'graphic-score-width', '50'), 'px; ')"/> 'width: ', foundry:get-setting('search', 'graphic-score-width', '50'), 'px; ')"/>
<div class="imgFull"> <div class="imgFull">
@ -69,7 +69,17 @@
</div> </div>
</xsl:if> </xsl:if>
<span> <span>
<a href="{./@url}"> <a>
<xsl:attribute name="href">
<xsl:choose>
<xsl:when test="/bebop:page/@class='cms-admin'">
<xsl:value-of select="concat($context-prefix, '/ccm/', ./@contentSectionName, '/admin/item.jsp?item_id=', ./@id, '&amp;setTab=1')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="./@url"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:value-of select="./@title"/> <xsl:value-of select="./@title"/>
</a> </a>
</span> </span>