123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: cogadmin
- (C) Copyright IBM Corp. 2014
- 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).
- -->
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:uic="http://developer.cognos.com/schemas/uic/presentation/markup/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:muws2="http://docs.oasis-open.org/wsdm/muws2-2.xsd" xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:resource-prop="http://developer.cognos.com/admin/properties" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:ns1="http://docs.oasis-open.org/wsdm/muws1-2.xsd" xmlns:admui="http://developer.cognos.com/schemas/xts/admui" xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2" exclude-result-prefixes="wsrf-rp resource-prop admui xtsext xsl ns1 uic SOAP-ENV muws2 xts">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
-
- <admui:variables/>
- <xsl:template match="/root" priority="2">
- <xsl:variable name="profiles" select="/root/profiles"/>
- <uic:fragment>
- <xsl:variable name="resultsMsg">
- <xsl:choose>
- <xsl:when test="$profiles/profile/importFault">
- <xsl:text><xts:string id="IDS_UIP_IMPORT_FAILED"/></xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text><xts:string id="IDS_UIP_IMPORT_SUCCEEDED"/></xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <div class="cogstyle-dialog-content">
- <div class="dialogHeaderText">
- <xsl:value-of select="$resultsMsg"/>
- </div>
- </div>
- <uic:table>
- <uic:header>
- <uic:row>
- <uic:column role="presentation"/>
- <uic:column width="20%" scope="col">
- <uic:text>
- <xts:string id="IDS_ADM_ACT_TABLE_HEADER_NAME"/>
- </uic:text>
- </uic:column>
- <uic:column width="20%" scope="col">
- <uic:text>
- <xts:string id="IDS_UIP_TABLE_HEADER_IMPORT_NAME"/>
- </uic:text>
- </uic:column>
- <uic:column width="80%" scope="col">
- <uic:text>
- <xts:string id="IDS_ADM_ACT_TABLE_HEADER_MESSAGE"/>
- </uic:text>
- </uic:column>
- </uic:row>
- </uic:header>
- <uic:body>
- <xsl:for-each select="$profiles/profile">
- <uic:row>
- <uic:column nowrap="nowrap">
- <uic:icon width="16" height="16">
- <uic:src>
- <admui:imageURL>
- <admui:image>
- <xsl:choose>
- <xsl:when test="importFault">
- <xsl:text>ps/cogadmin/images/msg_error.gif</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>ps/portal/images/checkmark.gif</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </admui:image>
- </admui:imageURL>
- </uic:src>
- </uic:icon>
- </uic:column>
- <uic:column nowrap="nowrap">
- <uic:text>
- <xsl:value-of select="@name"/>
- </uic:text>
- </uic:column>
- <uic:column nowrap="nowrap">
- <uic:text>
- <xsl:value-of select="@targetName"/>
- </uic:text>
- </uic:column>
- <uic:column nowrap="nowrap">
- <uic:text>
- <xsl:choose>
- <xsl:when test="importFault">
- <xsl:value-of select="importFault/*[local-name()='exception'][2]/*[local-name()='exceptionMsg']"/>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_UIP_IMPORT_VALIDATED"/>
- </xsl:otherwise>
- </xsl:choose>
- </uic:text>
- </uic:column>
- </uic:row>
- </xsl:for-each>
- </uic:body>
- </uic:table>
- <xsl:if test="not($profiles/profile/importFault)">
- <table class="cogstyle-dialog-content">
- <tr>
- <td>
- <uic:icon>
- <uic:src>
- <admui:imageURL>
- <admui:image>
- <xsl:text>ps/cogadmin/images/msg_warning.gif</xsl:text>
- </admui:image>
- </admui:imageURL>
- </uic:src>
- </uic:icon>
- </td>
- <td>
- <xsl:choose>
- <xsl:when test="/root/advancedSettings/configuration/property[@name='COGADMIN.UIPROFILES.DELETE_LEGACY_UIPROFILES_PAGE_AFTER_IMPORT']='false'">
- <xts:string id="IDS_UIP_IMPORT_REDIRECT_ALERT"/>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_UIP_IMPORT_REDIRECT_AND_DELETE_ALERT"/>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </tr>
- </table>
- </xsl:if>
- <script>
-
- var title='<xts:string id="IDS_UIP_IMPORT_UIPROFILES" encode="javascript"></xts:string>';
-
- var uiDialog = showModalDialog(ui_dialog.button.OK,_THIS_.div, title, 180, 810);
- uiDialog.processCommand = function (btnType){
- <xsl:if test="not($profiles/profile/importFault)">
- var bookletTabs = window.adminconsole_xmlbooklettabs;
- if(bookletTabs) {
- securityHTab = bookletTabs.getTab(1);
- securityHTab.refresh(true);
-
- libraryHTab = bookletTabs.getTab(3);
- if (libraryHTab.isLoaded()) {
- libraryHTab.refresh(true);
- var libraryVTabs = libraryHTab.getVTabs();
- libraryVTabs.activeTabID = ""; //This will cause the 1st vTab to be selected
- }
- libraryHTab.onclick();
- } else if (adminconsole_xmlbookletheaderrefreshAll) {
- adminconsole_xmlbookletheaderrefreshAll();
- } else {
- window.location.reload();
- }
- </xsl:if>
- uiDialog.destroy();
- return true;
- };
- </script>
- </uic:fragment>
- </xsl:template>
-
- <xsl:template match="node()" priority="-1">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:template>
-
- <xsl:template match="text()" priority="-1">
- <xsl:value-of select="."/>
- </xsl:template>
- </xsl:stylesheet>
|