123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437 |
- <?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" includeConfig="true">
- <!--
- This morphlet (properties_basic.xts) is to show objects that don't quite fit the general properties mode.
- For example: output and documentContent. They will be shown in read-only mode and with limited
- information.
- Consists of the following blocks:
- formlogic_init - update various /root/env level parameters based on new or changed /root/env parameters.
- getTabs - build the /root/tabs/objects structure.
- buildMultiLang - build the /root/multiLang structure with /lang and /name leaf nodes.
- classNames - build the /root/objectClass/class structure.
- getContent - retrieve CM Information for this page.
- renderPage - render the general information properties tab page for an object specified in m_obj.
- -->
-
- <!--
- ===============================================================================================
- formlogic_init - standard form logic initialization
- ===============================================================================================
- -->
- <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt" nodelist="env,credential,system,http"/>
-
- <!-- Load object-specific property tabs map ============================================================== -->
- <xts:block id="getTabs" type="exec" mode="interpret" processor="XML" path="/portal/uiobjects_tabs.xml"/>
- <!--
- ===============================================================================================
- get_system_root - get system root from Configuration
- ===============================================================================================
- -->
- <xts:block id="get_system_root" type="exec" processor="XSLT" condition=".[/root/env/param[@name='m_class']='archiveLocation']" mandatory="false" mode="interpret">
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:template match="/">
- <!-- get file system root from the Configuration -->
- <xts:sequence>
- <xts:append>
- <xts:function name="getConfiguration">
- <xts:param name="archiveLocationFileSchemeRoot"/>
- </xts:function>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- getContent - get our data from Content Manager
- ===============================================================================================
- -->
- <xts:block id="getContent" processor="XSLT" type="exec" dependency="formlogic_init get_system_root">
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- 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/">
-
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <pf:variables/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <cm:search>
- <xsl:value-of select="/root/env/param[@name='m_obj']"/>
- </cm:search>
- <cm:properties>
- <cml:prop-general/>
- <cm:property name="owner"/>
- <cm:property name="name"/>
- <cm:property name="documentType"/>
- <cm:property name="hasChildren"/>
- <cm:property name="defaultPortalAction"/>
- <cm:property name="mostRecentEventList"/>
- <cm:property name="defaultOutputFormat"/>
- <cm:property name="executionFormat"/>
- <cm:property name="executionPrompt"/>
- <cm:property name="parent"/>
- <cm:property name="gateway"/>
- <cm:property name="format"/>
- </cm:properties>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!-- Build the multilingual XML structure /root/multiLangs/lang -->
- <xts:block id="buildMultiLang" dependency="getContent" type="exec" mode="interpret" processor="XSLT" path="/portal/multilingual.xml" condition=".[not(root/*[local-name()='queryResponse'][1] = '')]" mandatory="false"/>
-
- <xts:block id="missingObject" mode="output" processor="XSLT" type="exec" mimeType="text/html" dependency="formlogic_init getTabs getContent buildMultiLang classNames" condition=".[not(/root/*[local-name()='queryResponse']/*)]" mandatory="false" path="/portal/missing_object.xml">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
- </xts:block>
- <!--
- ===============================================================================================
- getObjects - get object class names
- ===============================================================================================
- -->
- <xts:block id="classNames" type="exec" mode="input" processor="XML" path="/portal/uiExtensions.xml">
- <xts:logicsheet path="/logicsheets/uiobjects/uiobjects_names.xslt"/>
- </xts:block>
- <!--
- ===============================================================================================
- renderPage - render the page
- ===============================================================================================
- -->
- <xts:block id="renderPage" mode="output" processor="XSLT" type="exec" mimeType="text/html" dependency="formlogic_init getTabs getContent buildMultiLang classNames" condition=".[/root/*[local-name()='queryResponse']/*]" mandatory="false">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/layout.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/permissions.xsl"/>
- <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:pf="http://developer.cognos.com/schemas/xts/pf"
- 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/"
- xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
- xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/"
- 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: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:bus="http://developer.cognos.com/schemas/bibus/3/"
- xmlns:pm="http://developer.cognos.com/schemas/xts/pm"
- exclude-result-prefixes="bus pf xts dt xsl cf cp df dp lyt cm utml pm xtsext">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <xsl:variable name="mname" select="'properties_basic.xts'"/>
- <pf:variables/>
- <pf:documentFormats/>
- <pf:gen-icon/>
- <xsl:variable name="the-object" select="/root/cm:queryResponse/*"/>
- <!-- we're looking at a subscriptionFolder or reportDataServiceAgentDefinition -->
- <xsl:variable name="start-at-path">
- <xsl:choose>
- <xsl:when test="starts-with($the-object/cm:searchPath, key('session-param', 'e_hp')) or (starts-with($the-object/cm:searchPath, '~'))">
- <xsl:value-of select="concat(key('session-param', 'e_hp'),'/folder')"/>
- </xsl:when>
- <xsl:when test="starts-with($the-object/cm:searchPath,'/content')">
- <xsl:value-of select="$defaultContentRoot"/>
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
- <cp:flyoutControl/>
-
- <xsl:variable name="has_read_permission" select="contains(/root/cm:queryResponse/*/cm:permissions, 'read')"/>
- <xsl:variable name="has_traverse_permission" select="contains(/root/cm:queryResponse/*/cm:permissions, 'traverse')"/>
- <xsl:variable name="theObjectName" select="string($the-object/cm:defaultName)"/>
- <xsl:variable name="browserTitle"><xts:string id="IDS_PROPERTIES_TITLE"><xts:param name="objectName"><span lang="{$contentLocale}"><xsl:value-of select="$theObjectName"/></span></xts:param></xts:string></xsl:variable>
-
- <xsl:variable name="rootFolder" select="key('session-param','e_proot')='' and key('session-param','e_mroot')=''"/>
- <xsl:variable name="rootDefault" select="/root/multiLangs/useLangAsDefault"/>
- <xsl:variable name="lang">
- <xsl:choose>
- <xsl:when test="key('env-param','pty_activeLang')!=''"><xsl:value-of select="key('env-param','pty_activeLang')"/></xsl:when>
- <xsl:when test="$rootDefault != 'NOMATCH'"><xsl:value-of select="$rootDefault"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="/root/multiLangs/name[position()=1]"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="activeLang">
- <xsl:choose>
- <xsl:when test="string(key('env-param','pty_activeLang'))!=''"><xsl:value-of select="key('env-param','pty_activeLang')"/></xsl:when>
- <xsl:when test="string(key('env-param','pty_del')) != ''"><xsl:value-of select="$lang"/></xsl:when>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="showOKCancel" select="false()"/>
-
- <!-- The objects (eg., shortcut) target object -->
- <xsl:variable name="target" select="$the-object/cm:target/*"/>
-
- <!-- start the output -->
- <xsl:template match="/root">
- <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text><dp:page longTitle="$browserTitle">
- <dp:meta>
- <pf:meta/>
- </dp:meta>
- <pf:script/>
- <script language="javascript" src="{$webcontent}/{$app}/js/CCflyoutMenu.js"/>
- <dp:script>
- <pf:help context="HID_PROPERTIES"/>
- </dp:script>
-
- <dp:header useBackURL="not($showOKCancel)">
- <dp:title><xsl:copy-of select="$browserTitle"/></dp:title>
- </dp:header>
- <!-- property tabs -->
- <df:propertiesTabs select="general">
- <df:hasRead><xsl:value-of select="$has_read_permission"/></df:hasRead>
- <df:hasTraverse><xsl:value-of select="$has_traverse_permission"/></df:hasTraverse>
- <df:hasUserProfile>false</df:hasUserProfile>
- <df:hasSetPolicy>false</df:hasSetPolicy>
- </df:propertiesTabs>
- <!-- description tabs -->
- <dp:description>
- <xts:string id="IDS_PROP_GEN_INTRO"/>
- </dp:description>
- <table border="0" cellspacing="0" cellpadding="0" width="100%"><tr>
- <td width="50%" valign="top">
- <lyt:layout style="1" width="100%">
- <!-- Class / Type -->
- <lyt:section>
- <dp:list width="100%">
- <dp:section>
- <dp:label width="15%"><xts:string id="IDS_PROP_TYPE"/></dp:label>
- <dp:text>
- <xsl:choose>
- <xsl:when test="not($rootFolder)">
- <xsl:choose>
- <xsl:when test="/root/objectClass/class[@name=string($the-object/cm:objectClass)][not($the-object/cm:userInterfaces) or $the-object/cm:userInterfaces/@nil or @userInterface=$the-object/cm:userInterfaces/cm:uiComponentEnum] != ''">
- <xsl:value-of select="/root/objectClass/class[@name=string($the-object/cm:objectClass)][not($the-object/cm:userInterfaces) or $the-object/cm:userInterfaces/@nil or @userInterface=$the-object/cm:userInterfaces/cm:uiComponentEnum]"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/root/objectClass/class[@name=string($the-object/cm:objectClass)]"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/root/objectClass/class[@name= 'folder']"/>
- </xsl:otherwise>
- </xsl:choose>
- </dp:text>
- </dp:section>
- </dp:list>
- </lyt:section>
- </lyt:layout>
- <!-- Name -->
- <lyt:layout style="1" width="100%">
- <lyt:section>
- <dp:list width="100%">
- <xsl:if test="$the-object/cm:defaultName">
- <dp:section>
- <dp:label valign="top" width="15%"><xts:string id="IDS_PROP_NAME"/></dp:label>
- <dp:text>
- <xsl:choose>
- <xsl:when test="$the-object/cm:defaultName[@modifiable = 'false'] and $the-object/cm:objectClass='namespace'">
- <xsl:value-of select="$the-object/cm:defaultName"/>
- </xsl:when>
- <xsl:when test="not(/root/env/param[starts-with(@name,'m_t_default_name_')])">
- <xsl:value-of select="$the-object/cm:name/*[@xml:lang=$lang]"/>
- </xsl:when>
- <xsl:when test="/root/env/param[@name= concat('m_t_default_name_',$lang)]">
- <xsl:value-of select="/root/env/param[@name = concat('m_t_default_name_',$lang)]"/>
- </xsl:when>
- </xsl:choose>
- </dp:text>
- </dp:section>
- </xsl:if>
- </dp:list>
- </lyt:section>
- </lyt:layout>
- <lyt:layout style="1" width="100%">
- <lyt:section>
- <dp:list width="100%">
- <!-- Location -->
- <!-- ============================================================ -->
- <dp:section>
- <dp:label valign="top" width="15%"><xts:string id="IDS_PROP_LOCATION"/></dp:label>
- <dp:text wrap="wrap" valign="top">
- <xsl:choose>
- <xsl:when test="$rootFolder">
- <xts:string id="IDS_ROOT"/>
- </xsl:when>
- <xsl:otherwise>
- <cf:do-the-path-link>
- <cf:param name="familytree">$the-object/cm:ancestors</cf:param>
- <cf:param name="familymember">$the-object/cm:defaultName</cf:param>
- <cf:param name="home"><xsl:value-of select="$start-at-path"/></cf:param>
- <cf:param name="onlyAncestors">true</cf:param>
- </cf:do-the-path-link>
- </xsl:otherwise>
- </xsl:choose>
- </dp:text>
- </dp:section>
- </dp:list>
- </lyt:section>
-
- <!-- Created -->
- <!-- ============================================================ -->
- <lyt:section>
- <dp:list width="100%">
- <dp:section>
- <dp:label valign="top" width="15%"><xts:string id="IDS_PROP_CREATED"/></dp:label>
- <dp:text wrap="wrap" valign="top">
- <xsl:value-of select="xtsext:formatDateFromUTC( string( $the-object/cm:creationTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ))"/>
- </dp:text>
- </dp:section>
- </dp:list>
- </lyt:section>
-
- <!-- Modified -->
- <!-- ============================================================ -->
- <lyt:section>
- <dp:list width="100%">
- <dp:section>
- <dp:label valign="top" width="15%"><xts:string id="IDS_PROP_MODIFIED"/></dp:label>
- <dp:text wrap="wrap" valign="top">
- <xsl:value-of select="xtsext:formatDateFromUTC(string( $the-object/cm:modificationTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
- </dp:text>
- </dp:section>
- </dp:list>
- </lyt:section>
-
- <!-- Search path -->
- <!-- ============================================================== -->
- <lyt:section>
- <dp:list width="100%">
- <dp:section>
- <dp:label valign="top" width="15%"><xts:string id="IDS_PROP_SEARPATH_LABEL"/></dp:label>
- <dp:text wrap="wrap" valign="top"><xsl:value-of select="$the-object/cm:searchPath"/></dp:text>
- </dp:section>
- </dp:list>
- </lyt:section>
- <!-- ID -->
- <!-- ============================================================== -->
- <lyt:section>
- <dp:list width="100%">
- <dp:section>
- <dp:label valign="top" width="15%"><xts:string id="IDS_PROP_ID_LABEL"/></dp:label>
- <dp:text wrap="wrap" valign="top"><xsl:value-of select="$the-object/cm:storeID"/></dp:text>
- </dp:section>
- </dp:list>
- </lyt:section>
-
- <!-- Language -->
- <!-- ============================================================== -->
- <lyt:section>
- <dp:list width="100%">
- <dp:section>
- <dp:label valign="top" width="15%"><xts:string id="IDS_PROP_LANGUAGE"/></dp:label>
- <dp:text wrap="wrap" valign="top">
- <!-- Build up the values that the user has currently defined -->
- <xsl:variable name="vals">
- <xsl:for-each select="/root/multiLangs/name">
- <xsl:if test="not(preceding-sibling::name = .)">
- <xsl:choose>
- <xsl:when test="position()!=last"><xsl:value-of select="concat(' ',string(.))"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="concat(' ',string(.),' ')"/></xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- </xsl:for-each>
- </xsl:variable>
- <xsl:variable name="actval">
- <xsl:value-of select="/root/config/param[@name='locale']/locale[@type='contentLocale' and string(id)=$lang]/displayName"/>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="$actval=''">
- <xsl:variable name="actval2"><xsl:value-of select="substring-before(substring-after($vals,' '),' ')"/></xsl:variable>
- <xsl:value-of select="/root/config/param[@name='locale']/locale[@type='contentLocale' and string(id)=$actval2]/displayName"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$actval"/>
- </xsl:otherwise>
- </xsl:choose>
- </dp:text>
- </dp:section>
- </dp:list>
- </lyt:section>
- </lyt:layout>
- </td>
- </tr><tr><td></td><td></td></tr>
- </table>
- <dp:footer>
- <df:button df:id="IDS_CLOSE" df:style="back-url"/>
- </dp:footer>
- </dp:page>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="ignoreFaultHandler" type="fault" processor="XSLT">
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" exclude-result-prefixes="xsl">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <ignoreFault/>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <!--
- ===============================================================================================
- debug - display debug information
- ===============================================================================================
- -->
- <xts:block id="debug" dependency="renderPage missingObject" condition=".[/root/session/param[@name='debug']='1']" type="exec" mode="output" processor="XSLT" mandatory="false" mimeType="text/html">
- <!-- get the debug logic sheet -->
- <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>
|