123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2005, 2013
- 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).
- -->
- <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/portal.xml, messages/portalRL.xml">
- <!-- Navigation control -->
- <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt" nodelist="env,credential,system,http"/>
-
- <xts:block id="checkSharedPagesChanged" processor="XSLT" type="exec" dependency="formlogic_init" condition=".[/root/env/param[@name='sharedPagesChanged'] = 'addPagelet']" mandatory="false" >
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
-
- <xsl:template match="/">
- <xts:sequence>
- <xts:append select="/root/env">
- <param name='controller_state'>addSharedPageEntries|navigate</param>
- </xts:append>
- <xts:append select="/root/env">
- <param xmlns="" name='m_sharedPagesPagersection'>1</param>
- </xts:append>
- <xts:append select="/root/env">
- <param xmlns="" name='addPageletsMode'></param>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <xts:block
- id="callAddDialog"
- nodelist="requestParams,env, http, session, credential, cookies, header, user"
- processor="XSLT"
- type="exec"
- dependency="checkSharedPagesChanged"
- condition=".[ /root/env/param[@name='controller_state'] != '' ]"
- mandatory="false" >
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:dlgctrl="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/controller-templates/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:req-params="http://developer.cognos.com/schemas/request/params"
- exclude-result-prefixes="xsl dlgctrl xtsext req-params">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
-
- <xsl:key name="request-param" match="/root/*[local-name()='requestParams']/*[local-name()='param']" use="@name"/>
-
- <xsl:template match="/">
- <xts:sequence>
- <dlgctrl:XTS2Request>
- <dlgctrl:target>/portal/addEntries/add_entries.xts</dlgctrl:target>
- <dlgctrl:stackName>addSharedPageEntriesStack</dlgctrl:stackName>
- <req-params:param name="defaultTarget">/portal/preferences/mypages.xts</req-params:param>
- <req-params:param name="titlePostfix"><xsl:value-of select="/root/session/param[@name = 'e_user']"/></req-params:param>
- <req-params:param name="defaultSearchPath">/</req-params:param>
- <req-params:param name="showUsers">false</req-params:param>
- <req-params:param name="addEntriesUI">mypages</req-params:param>
- <req-params:param name="allowDuplicates">false</req-params:param>
- <req-params:param name="returnProperties">
- <req-params:property name="name"/>
- <req-params:property name="permissions"/>
- <req-params:property name="searchPath"/>
- <req-params:property name="storeID"/>
- </req-params:param>
- <req-params:param name="typeDialog">false</req-params:param>
- <req-params:param name="selectableRootObjects">true</req-params:param>
- <req-params:param name="allowRootBrowsing">true</req-params:param>
- </dlgctrl:XTS2Request>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <!--
- ===============================================================================================
- processReponse - Process the response from the callMorphlet block and either displays
- the markup or processes the results
- ===============================================================================================
- -->
- <xts:block
- id="processAddDialogResponse"
- nodelist="output,http,env,system,user,morphletResponse,credential,cookies"
- path="/portal/addEntries/logicsheets/process_added_entries.xslt"
- processor="XSLT"
- dependency="callAddDialog"
- type="exec"
- condition=".[ /root/env/param[@name='controller_state'] != '' ]"
- mandatory="false">
- <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- </xts:block>
-
- <!-- Content request to get basic preferences -->
- <xts:block id="getContent" processor="XSLT" type="exec" dependency="formlogic_init processAddDialogResponse" condition=".[not(/root/mode='addEntries')]" mandatory="false">
- <xts:logicsheet path="portal/preferences/common/request/request.xslt"/>
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:rdr="http://developer.cognos.com/schemas/xts/rdr/" xmlns:xts="http://developer.cognos.com/schemas/xts/">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <cml:object-predicates/>
- <xsl:template match="/root">
- <rdr:Requests>
- <rdr:Request type="preferences" mode="preferences">
- <rdr:searchPath>~</rdr:searchPath>
- </rdr:Request>
- </rdr:Requests>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!-- need to get the pagelet list to display in the mypges tab. It must include the welcome page, -->
- <!-- public folder page, private folder page, and all custom pages -->
- <!-- Content request to get basic preferences -->
- <xts:block id="createPageletList" processor="XSLT" type="exec" dependency="formlogic_init getContent" condition=".[not(/root/mode='addEntries')]" mandatory="true">
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:xts="http://developer.cognos.com/schemas/xts/">
- <xsl:key name="system-param" match="/root/system/param" use="@name"/>
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append>
- <!-- create the list based on the m_pp_shared_pages variable if it was passed in. If not then use the cm's pages -->
- <xsl:choose>
- <xsl:when test="/root/env/param[@name='m_pp_shared_pages']">
- <!-- the list was passed in so lets unpack it -->
- <xsl:value-of select="xtsext:web64decode(xtsext:cafaction('sign_unwrap', string(/root/env/param[@name='m_pp_shared_pages'])),true())" disable-output-escaping="yes"/>
- </xsl:when>
- <xsl:otherwise>
- <!-- the list was not passed in so we must look at cm for the portalPages list -->
- <sharedPagesListForDisplay>
- <xsl:for-each select="/root/cm:queryResponse/cm:queryReply[1]/cm:account/cm:portalPages/*">
- <pagelet>
- <xsl:copy-of select="@*|*"/>
- </pagelet>
- </xsl:for-each>
- </sharedPagesListForDisplay>
- </xsl:otherwise>
- </xsl:choose>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <!-- if we have a resequence response or and kind of response then we need to -->
- <!-- modify the shared pages. So create a new sharepageslist chunk based on the updated -->
- <!-- data and delete the old shared pages -->
- <!-- this block gets executed only if the env incudes sharedPagesChanged -->
- <xts:block id="updatePageletList" processor="XSLT" type="exec" path="/portal/preferences/common/processing/updateSharedPagesList.xslt" dependency="createPageletList" mandatory="false" condition=".[(/root/newEntries or (/root/env/param[@name='sharedPagesChanged'] and /root/env/param[@name='sharedPagesChanged']!= ''))] "/>
- <!-- response (from flyout) -->
- <xts:block id="formatRedirect" mode="output" processor="XSLT" type="exec" mimeType="text/html" condition=".[not(/root/mode='addEntries') and ((/root/AddPageletResponse) or (/root/AddPageletCancel))]" dependency="formlogic_init getContent createPageletList updatePageletList" mandatory="false">
- <xts:logicsheet path="portal/preferences/common/response/mypagesredirect.xslt"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/confirm.xslt"/>
- <xts:logicsheet path="logicsheets/formlogic_lite.xslt"/>
- <xts:logicsheet path="logicsheets/validation.xslt"/> <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/" xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/" xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/" xmlns:dc="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/confirm/1/" xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/" xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/" xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:rdb="http://developer.cognos.com/schemas/xts/rdb" exclude-result-prefixes="rdb xsl cm df dp pf dc utml xts xtsext lyt cf cp">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <!-- current file name -->
- <xsl:variable name="mname" select="'preferences/mypages.xts'"/>
- <!-- define the current object we are using -->
- <xsl:variable name="the-object" select="/root/cm:queryResponse/cm:queryReply[1]/*"/>
- <xsl:template match="/root">
- <xsl:variable name="browserTitle">
- <xts:string id="IDS_PREFERENCES"/>
- </xsl:variable>
- <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text><dp:page longTitle="$browserTitle">
- <dp:meta>
- <pf:meta/>
- <xsl:if test="/root/AddPageletCancel">
- <!-- if the cancel button was pressed on the addentries dialog and -->
- <!-- this dialog was called from the flyout menu, then we have to -->
- <!-- redirect to the back-url -->
- <META HTTP-EQUIV="Refresh">
- <xsl:attribute name="CONTENT">0; URL=<xsl:value-of select="/root/env/param[@name='backURL']"/></xsl:attribute>
- </META>
- </xsl:if>
- </dp:meta>
- <form name="testform" method="get">
- <xsl:attribute name="action"><xsl:value-of select="/root/env/param[@name = 'backURL']"/></xsl:attribute>
- </form>
- <utml:form name="pform" method="post" action="{$gateway}">
- <utml:input type="hidden" name="errURL" utml:update="false">
- <utml:value>
- <xsl:value-of select="/root/env/param[@name = 'backURL']"/>
- </utml:value>
- </utml:input>
- <utml:input type="hidden" name="ps_nav_op" value="" utml:update="false"/>
- <utml:input type="hidden" name="ifrmcmd" value="save" utml:update="false"/>
- <utml:input type="hidden" name="sharedPagesChanged" value="" utml:update="false"/>
- <rdb:preferences mode="preferences"/>
- </utml:form>
- </dp:page>
- </xsl:template>
- <pf:serialize-xml/>
- <pf:variables/>
- <pf:gen-icon/>
- </xsl:stylesheet>
- </xts:block>
-
- <!-- Response (from preferences page)-->
- <xts:block id="format" mode="output" processor="XSLT" type="exec" mimeType="text/html" condition=".[not(/root/mode='addEntries') and (not((/root/AddPageletResponse) or (/root/AddPageletCancel)))]" dependency="formlogic_init getContent createPageletList updatePageletList" mandatory="false">
- <xts:logicsheet path="portal/preferences/common/response/mypages.xslt"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/confirm.xslt"/>
- <xts:logicsheet path="logicsheets/formlogic_lite.xslt"/>
- <xts:logicsheet path="logicsheets/validation.xslt"/>
- <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
-
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
- xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
- xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/"
- xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
- xmlns:dc="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/confirm/1/"
- xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
- xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
- xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:rdb="http://developer.cognos.com/schemas/xts/rdb"
- exclude-result-prefixes="rdb xsl cm df dp pf dc utml xts xtsext lyt cf cp">
-
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <!-- current file name -->
- <xsl:variable name="mname" select="'preferences/mypages.xts'"/>
- <!-- define the current object we are using -->
- <xsl:variable name="the-object" select="/root/cm:queryResponse/cm:queryReply[1]/*"/>
- <xsl:variable name="isNamedAccountReadOnly" select="(not(contains($the-object/cm:permissions,'write')) and ($is-named='1'))"/>
- <pf:modalVariables/>
-
- <xsl:template match="/root">
- <xsl:variable name="browserTitle">
- <xts:string id="IDS_PREFERENCES"/>
- </xsl:variable>
- <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text><dp:page longTitle="$browserTitle">
- <dp:meta>
- <pf:meta/>
- </dp:meta>
- <dp:script>
- <pf:help context="HID_PERSONALIZE"/>
- </dp:script>
- <utml:form name="pform" method="post" action="{$gateway}">
- <utml:read-only><xsl:value-of select="$isNamedAccountReadOnly"/></utml:read-only>
- <utml:input type="hidden" name="ps_nav_op" value="" utml:update="false"/>
- <utml:input type="hidden" name="ifrmcmd" value="save" utml:update="false"/>
- <utml:input type="hidden" name="sharedPagesChanged" value="" utml:update="false"/>
- <dp:header>
- <dp:title>
- <xsl:value-of select="$browserTitle"/>
- </dp:title>
- </dp:header>
- <!-- Tab bar -->
- <df:personalizeTabs select="mypages"/>
-
- <!-- Intro text -->
- <dp:description>
- <xts:string id="IDS_PERS_TAB_MYPAGES_INTRO"/>
- </dp:description>
- <!-- Body -->
- <rdb:preferences mode="preferences" />
-
- <!-- Footer -->
- <dp:footer>
- <xsl:if test="$isNamedAccountReadOnly != 'true'">
- <df:button df:id="IDS_OK" utml:validate="true" df:style="submit"/>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="$isModal">
- <df:button df:id="IDS_CANCEL" df:style="href" df:href="javascript:processModalCommand('cancel')" onclick="{$dc-confirm-cancel}"/>
- </xsl:when>
- <xsl:otherwise>
- <df:button df:id="IDS_CANCEL" df:style="back-url" onclick="{$dc-confirm-cancel}"/>
- </xsl:otherwise>
- </xsl:choose>
- </dp:footer>
- </utml:form>
- </dp:page>
- </xsl:template>
-
- <pf:serialize-xml/>
- <pf:variables/>
- <pf:gen-icon/>
- </xsl:stylesheet>
- </xts:block>
- <!-- Debug Block -->
- <xts:block id="debug" dependency="format formatRedirect createPageletList" condition=".[/root/session/param[@name='debug']='1']" type="exec" mode="output" processor="XSLT" mandatory="false" mimeType="text/html">
- <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/" exclude-result-prefixes="dbg">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <xsl:template match="/">
- <dbg:dumpxml select="/root"/>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- </xts:morphlet>
|