123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: cpscrn
- (C) Copyright IBM Corp. 2005, 2012
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!--
- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
- -->
- <!-- $Header: //cpscrn/main/templates/cps4/portlets/utility/portlet-impl/bookmarks/view.xslt#1 $ -->
- <!-- $DateTime: 2008/10/22 11:12:04 $ -->
- <!-- $Change: 25109 $ -->
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:ui="http://developer.cognos.com/schemas/cps/logic/ui/1/"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- exclude-result-prefixes="ui xts xtsext">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:attribute-set name="anchor">
- <xsl:attribute name="class">cognos-anchor</xsl:attribute>
- <xsl:attribute name="onmouseover">window.status='';return true;</xsl:attribute>
- <xsl:attribute name="onmouseout">window.status='';return true;</xsl:attribute>
- </xsl:attribute-set>
- <ui:property name="target-frame" select="'target'"/>
- <xsl:attribute-set name="target">
- <xsl:attribute name="target">
- <xsl:choose>
- <xsl:when test="$open-links = 'new'">_blank</xsl:when>
- <xsl:when test="$open-links = 'current' and not($ui-is-myportal)">_top</xsl:when>
- <xsl:when test="$open-links = 'target'"><xsl:value-of select="$target-frame"/></xsl:when>
- <xsl:when test="$open-links = 'channel'"></xsl:when>
- <xsl:otherwise>_blank</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- </xsl:attribute-set>
- <ui:property name="open-links" select="'open_links'"/>
- <ui:property name="channel" select="'channel'"/>
- <xsl:template match="/">
- <script language="javascript">
- function wsrp_rewrite_select(href,e) {
- <xsl:if test="$open-links = 'channel'">
- document.wsrp_rewrite_form.url.value = href;
- document.wsrp_rewrite_form.submit();
- if (e.srcElement) {
- e.returnValue = false;
- } else {
- e.preventDefault();
- }
- </xsl:if>
- }
- </script>
- <xsl:choose>
- <xsl:when test="$open-links = 'channel'">
- <form name="wsrp_rewrite_form" method="post" action="wsrp_rewrite?wsrp-urlType=blockingAction&wsrp-interactionState=set:{ $channel }&wsrp-windowState={ $ui-window-state }/wsrp_rewrite">
- <input type="hidden" name="url" value=""/>
- <xsl:call-template name="render-urls"/>
- </form>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="render-urls"/>
- </xsl:otherwise>
- </xsl:choose>
-
- <ui:preview/>
- </xsl:template>
- <xsl:template name="render-urls">
- <table border="0" cellpadding="0" cellspacing="2">
- <xsl:for-each select="$ui-state-params[starts-with(@name, 'boo_url') and . != '']">
- <xsl:sort select="@name" order="ascending"/>
- <tr>
- <td class="portlet-font">
- <a xsl:use-attribute-sets="anchor target" href="{ . }" onclick="wsrp_rewrite_select('{xtsext:javascriptencode( string(.) ) }',event)">
- <xsl:variable name="boo-alias" select="concat('boo_alias', substring-after(@name, 'boo_url'))"/>
- <xsl:choose>
- <xsl:when test="$ui-state-params[@name = $boo-alias] != ''">
- <xsl:if test="$ui-portlet-isBidiEnabled='true'">
- <xsl:attribute name="dir">
- <xsl:value-of select="xtsext:getBTD($ui-state-params[@name = $boo-alias], $ui-portlet-baseTextDirection, $ui-portlet-product-locale)"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:value-of select="$ui-state-params[@name = $boo-alias]"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </a>
- </td>
- </tr>
- </xsl:for-each>
- </table>
- </xsl:template>
- </xsl:stylesheet>
|