123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543 |
- <?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">
- <!-- Initialize utml -->
- <!-- =============================================================================================== -->
- <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt" nodelist="env,credential,system,http"/>
-
- <!-- Cleanup after a delete operation -->
- <!-- =============================================================================================== -->
- <xts:block id="removeParam" processor="XML" type="exec" dependency="formlogic_init" condition=".[root/env/param[@name='vrsn_del']='true']" mandatory="false">
- <xts:sequence>
- <xts:delete select="/root/env/param[@name='packed-output']"/>
- <xts:delete select="/root/env/param[@name='packed-langs']"/>
- <xts:delete select="/root/env/param[@name='vrsn_del']"/>
- <xts:delete select="/root/env/param[@name='ifrmcmd']"/>
- <xts:delete select="/root/env/param[starts-with(@name,'checkbox_')]"/>
- </xts:sequence>
- </xts:block>
-
- <!-- Get the versions -->
- <!-- =============================================================================================== -->
- <xts:block id="getVersions" processor="XSLT" type="exec" dependency="removeParam" mandatory="false">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
-
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 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"/>
- <xsl:template match="/root">
-
- <xsl:variable name="sortOrder">
- <xsl:choose>
- <xsl:when test="/root/env/param[@name = 's_version'] = 'na'">ascending</xsl:when>
- <xsl:otherwise>descending</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="maxObjects">
- <xsl:choose>
- <xsl:when test="string(/root/env/param[@name = 'm_pagertoversions']) !='' and string(/root/env/param[@name = 'm_pagerfromversions']) !=''"><xsl:value-of select="(/root/env/param[@name = 'm_pagertoversions'] - /root/env/param[@name = 'm_pagerfromversions']) + 1"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="/root/session/param[@name='linesPerPage']"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="skipObjects">
- <xsl:choose>
- <xsl:when test="/root/env/param[@name = 'm_pagerfromversions'] and /root/env/param[@name = 'm_pagerfromversions']!=''">
- <xsl:value-of select="(/root/env/param[@name = 'm_pagerfromversions'])-1"/>
- </xsl:when>
- <xsl:when test="/root/env/param[@name='m_versionssection']!=''">
- <xsl:choose>
- <xsl:when test="/root/env/param[@name='m_versionssection']!='-1'">
- <xsl:value-of select="((/root/env/param[@name='m_versionssection']) -1)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="($maxObjects) * -1"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>0</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <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>
- <cm:requests>
- <cm:query>
- <cm:search>
- <xsl:value-of select="/root/env/param[@name='m_obj']"/>
- </cm:search>
- <cm:properties>
- <cm:property name="permissions"/>
- </cm:properties>
- </cm:query>
- <cm:query>
- <cm:search>
- <xsl:choose>
- <xsl:when test="/root/env/param[@name='m_class'] = 'document'"><xsl:value-of select="/root/env/param[@name='m_obj']"/>/documentVersion[permission('read')][@shown='true']</xsl:when>
- <xsl:otherwise><xsl:value-of select="/root/env/param[@name='m_obj']"/>/reportVersion[permission('read')][@shown='true']<xsl:text/></xsl:otherwise>
- </xsl:choose>
- </cm:search>
- <cm:properties>
- <cm:property name="defaultName"/>
- <cm:property name="modificationTime"/>
- <cm:property name="searchPath"/>
- <cm:property name="permissions"/>
- <cm:property name="asOfTime"/>
- <cm:property name="position"/>
- <cm:property name="hidden"/>
- </cm:properties>
- <cm:sortBy>
- <cm:sort name="defaultName" order="{$sortOrder}"/>
- </cm:sortBy>
- <cm:options schemaInfo="true" maxObjects="{($maxObjects)+1}" skipObjects="{$skipObjects}"/>
- </cm:query>
- </cm:requests>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </xts:append>
- <xts:delete select="/root/env/param[@name='pagerfromversions']"/>
- <xts:delete select="/root/env/param[@name='pagertoversions']"/>
- <xts:delete select="/root/env/param[@name='pagerfrom_dversions']"/>
- <xts:delete select="/root/env/param[@name='pagerto_dversions']"/>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
-
- <!-- Response -->
- <!-- =============================================================================================== -->
- <xts:block id="format" mode="output" processor="XSLT" type="exec" mimeType="text/html" dependency="getVersions">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/formlogic.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:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- 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: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:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- exclude-result-prefixes="xsl cm cml pf xts xtsext lyt dp df cf cp utml">
-
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
-
- <xsl:variable name="mname" select="'versions.xts'"/>
- <pf:variables/>
-
- <xsl:template match="/root">
-
- <!--
- We use access permission on the report object (instad of each version) to determine if the user can delete.
- This assumes that the versions inherit security from the report
- -->
- <xsl:variable name="canWrite" select="contains(/root/cm:queryResponse/cm:queryReply[1]/*/cm:permissions,'write')"/>
-
- <xsl:variable name="browserTitle">
- <xsl:choose>
- <xsl:when test="key('env-param', 'm_class') = 'document'">
- <xts:string id="IDS_DOCUMENT_PREVIOUS_VERSION_MANAGE_VERSIONS_TITLE">
- <xts:param name="objectName">
- <span lang="{$contentLocale}"><xsl:value-of select="key('env-param', 'm_name')"/></span>
- </xts:param>
- </xts:string>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_PREVIOUS_VERSION_MANAGE_VERSIONS_TITLE">
- <xts:param name="objectName">
- <span lang="{$contentLocale}"><xsl:value-of select="key('env-param', 'm_name')"/></span>
- </xts:param>
- </xts:string>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text><dp:page longTitle="$browserTitle">
- <dp:meta>
- <pf:meta/>
- </dp:meta>
- <dp:script>
- <xsl:choose>
- <xsl:when test="/root/env/param[@name='m_class'] = 'document'"><pf:help/></xsl:when>
- <xsl:otherwise><pf:help context="HID_VIEW_REPORT_VERSION"/></xsl:otherwise>
- </xsl:choose>
- <script language="javascript">
- var sParamDelimiter = "<xsl:value-of select="xtsext:javascriptencode(string(key('system-param', 'delimiters')/@d1))"/>";
- var sNameValueDelimiter = "<xsl:value-of select="xtsext:javascriptencode(string(key('system-param', 'delimiters')/@d2))"/>";
- </script>
- <script language="javascript">
- <xsl:attribute name="src">
- <xsl:value-of select="$webcontent"/>/<xsl:value-of select="$app"/>/js/list.js<xsl:text/>
- </xsl:attribute>
- </script>
- <script language="JavaScript">
- <!-- Find out what object we are dealing with -->
- <xsl:variable name="objClass" select="xtsext:javascriptencode(string(/root/cm:queryResponse/cm:queryReply[1]/*/cm:objectClass))"/>
- var isDocumentObj = <xsl:value-of select="$objClass = 'document'"/>;
-
- function sort()
- {
- if ("<xsl:value-of select="xtsext:javascriptencode(string(key('env-param', 's_version')))"/>" == "" || "<xsl:value-of select="xtsext:javascriptencode(string(key('env-param', 's_version')))"/>" == "nd")
- document.pform.s_version.value = "na";
- else
- document.pform.s_version.value = "nd";
-
- document.pform.ps_nav_op.value = "maintain";
- document.pform.m.value = "<xsl:value-of select="$app"/>/<xsl:value-of select="$mname"/>";
- document.pform.submit();
- }
-
- function closePage()
- {
- var bNoObjectsFound = <xsl:value-of select="(count(/root/cm:queryResponse/cm:queryReply[2]/cm:reportVersion) = 0) and (count(/root/cm:queryResponse/cm:queryReply[2]/cm:documentVersion) = 0)"/>;
-
- if (bNoObjectsFound)
- {
- if (document.pform.backURL.value != "")
- document.location.href = document.pform.backURL.value;
- else
- document.location.href = "<xsl:value-of select="/root/http/param[@name='SCRIPT_NAME']"/>?<xsl:value-of select="key('system-param', 'COGNOSHome')"/>";
- }
- else
- {
- document.pform.ps_nav_op.value = "maintain";
- document.pform.m.value = "<xsl:value-of select="$app"/>/outputs.xts";
- document.pform.submit();
- }
- }
-
- function view(version)
- {
- document.pform.ps_nav_op.value = "maintain";
- document.pform.m.value = "<xsl:value-of select="$app"/>/outputs.xts";
- document.pform.reportVersionPath.value = version;
- if (document.pform.m_outputssection)
- document.pform.m_outputssection.value = 1;
- document.pform.submit();
- }
-
- function doDelete()
- {
- <!-- // check for no selection -->
- if (isEmptySelection('pform', 'checkbox_'))
- {
- alert("<xts:string id="IDS_ERR_DELETE_NO_SELECTION" encode="javascript"/>");
- return;
- }
-
- <!-- Prevent a delete all versions for document objects -->
- if (isDocumentObj && isDeleteAll())
- {
- var sErrorMsg = "<xts:string id="IDS_PREVIOUS_VERSION_DOCUMENT_DELETE_ERROR" encode="javascript"/>";
- alert(sErrorMsg);
- return;
- }
-
- <!--
- /*
- Reproduce the search path of the version being viewed using the path to the report (m_obj) and the version name.
- This path must match the pattern of the search path returned by CM so that we can successfully detect if a version being viewed is now getting deleted.
- */
- -->
- <xsl:variable name="activeVersion">
- <xsl:choose>
- <xsl:when test="key('env-param', 'versionName') and key('env-param', 'versionName') != ''">
- <xsl:value-of select="key('env-param', 'm_obj')"/>/reportVersion[@name='<xsl:value-of select="key('env-param', 'versionName')"/>']<xsl:text/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="key('env-param', 'reportVersionPath')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- var activeVersion = "<xsl:value-of select="xtsext:urlencode(string($activeVersion))"/>";
- var elements = document.pform.elements.length;
-
- <!-- // If an opened version is being deleted then remove any references to it ... -->
- for (var k = 0; k < elements; k++)
- {
- if (document.pform.elements[k].name.indexOf("checkbox") == 0 && document.pform.elements[k].checked && document.pform.elements[k].value == activeVersion)
- {
- <!-- // clear target version if it is being deleted -->
- document.pform.reportVersionPath.value = "";
- <!-- // Clear the name of a version being deleted if it is being referenced by name -->
- if (document.pform.versionName )
- document.pform.versionName.value = "";
-
- <!-- // clear page number -->
- if (document.pform.m_outputssection)
- document.pform.m_outputssection.value = 1;
- break;
- }
- }
-
- <!--Perform the delete after confirmation -->
- if ( confirm("<xts:string id="IDS_CONF_DELETE_MULTI" encode="javascript"/>") )
- {
- document.pform.ifrmcmd.value = "delete"; <!--set the operation, and submit it. -->
- document.pform.m_return.value = "<xsl:value-of select="concat($app, '/', $mname)"/>";
- document.pform.vrsn_del.value="true";
- document.pform.m.value="<xsl:value-of select="concat($app, '/submit.xts')"/>";
- document.pform.submit();
- }
- return;
- }
-
- <!-- Generic function to detect if the current delete operation will clear all version objects from the DataStore -->
- function isDeleteAll()
- {
- var nCheckedEntriesCount = 0;
- var nDisplayedEntriesCount = 0;
- var nFormFieldCount = document.pform.elements.length;
- for (var k = 0; k < nFormFieldCount; k++)
- {
- if (document.pform.elements[k].name.indexOf("checkbox_") == 0)
- {
- nDisplayedEntriesCount++;
- if (document.pform.elements[k].checked)
- nCheckedEntriesCount++;
- }
- }
-
- <!-- Position of the first entry. -->
- var nPositionOfFirstVersion = <xsl:value-of select="number(/root/cm:queryResponse/cm:queryReply[2]/*[1]/cm:position)"/>;
- <!-- Actual count of entries requested from CM. (We typically request the number of items in the LinesPerPage preference + 1) -->
- var nTotalCountOfItemsRequested = <xsl:value-of select="count(/root/cm:queryResponse/cm:queryReply[2]/*)"/>;
- <!-- Detect if we are currently looking at a "paged" list of entries (i.e. there are entries before or after. -->
- var bThereIsMoreBefore = (nPositionOfFirstVersion > 0);
- var bThereIsMoreAfter = (nTotalCountOfItemsRequested > nDisplayedEntriesCount);
-
- if (bThereIsMoreBefore || bThereIsMoreAfter)
- <!-- We must be paging - It is safe to "delete all" -->
- return false;
- if (nCheckedEntriesCount < nDisplayedEntriesCount)
- <!-- Not all items are tagged for delete - OK to proceed with delete operation -->
- return false;
-
- if (nCheckedEntriesCount == nDisplayedEntriesCount)
- return true;
-
- return false;
- }
- </script>
- </dp:script>
-
- <utml:form name="pform" method="post" action="{$gateway}">
- <utml:exclusion-list>
- <xsl:value-of select="' savedEnv '"/>
- </utml:exclusion-list>
- <utml:exclude-prefix>checkbox_</utml:exclude-prefix>
- <utml:input name="s_version" type="hidden" value=""/>
- <utml:input name="ifrmcmd" type="hidden" value=""/>
- <utml:input name="m_return" type="hidden" value=""/>
- <utml:input name="vrsn_del" type="hidden" value=""/>
- <utml:input name="method" type="hidden" value=""/>
- <utml:input name="m" type="hidden" value=""/>
-
- <dp:header>
- <dp:title><xsl:copy-of select="$browserTitle"/></dp:title>
- <dp:close><a href="javascript:closePage()"><dp:closeMarker/></a></dp:close>
- <dp:description>
- <xts:string id="IDS_PREVIOUS_VERSION_DELETE_VERSIONS"/>
- </dp:description>
- </dp:header>
-
- <lyt:layout style="1">
- <lyt:section>
- <xsl:choose>
- <xsl:when test="count(/root/cm:queryResponse/cm:queryReply[2]/cm:reportVersion) > 0 or (key('env-param', 'm_pagertoversions') != '')">
- <cf:main-pager-section name="versions" form="pform" width="100%" virtualPage="true">
- <cf:param name="item-path">/root/cm:queryResponse/cm:queryReply[2]/*</cf:param>
- <cf:param name="target">concat(concat($app,'/'),$mname)</cf:param>
- <cf:param name="lines-per-page"><xsl:value-of select="key('session-param', 'linesPerPage')"/></cf:param>
- <cf:param name="actions">
- <cp:action>
- <xsl:if test="$canWrite">
- <a href="javascript:if(window.preDeleteversions)preDeleteversions('pform','checkbox_');doDelete()"><xts:string id="IDS_DELETE"/></a>
- </xsl:if>
- </cp:action>
- </cf:param>
-
- <cf:param name="rows">
- <!-- Header ========================== -->
- <cp:tableHeader sort_track_type="page" session-name="s_version">
- <!-- Col 1 - Delete check box - only if has write permissions -->
- <cp:columnHeader width="16" toggleName="checkbox_"/>
- <!-- Col 2 - Versions (dates)-->
- <cp:columnHeader width="50%" sort="n">
- <cp:sortHref>javascript:sort()</cp:sortHref>
- <xts:string id="IDS_PREVIOUS_VERSION_VERSIONS"/>
- </cp:columnHeader>
-
- <!-- Col 5 - asOfTime -->
- <cp:columnHeader width="50%"><xts:string id="IDS_PREVIOUS_VERSION_ASOFTIME"/></cp:columnHeader>
- </cp:tableHeader>
-
-
- <!-- Content ========================== -->
- <cp:tableContent>
- <!-- Col 1 - Delete checkbox column content - only if has write permissions -->
- <cp:columnContent valign="top" position="start">
- <xsl:if test="$canWrite">
- <input type="checkbox" value="{xtsext:urlencode(string(cm:searchPath))}" name="checkbox_{position()}" id="checkbox_{position()}"/>
- </xsl:if>
- </cp:columnContent>
-
- <!-- Col 2 - Versions (dates)-->
- <cp:columnContent valign="top">
- <xsl:if test="string(cm:hidden)='true'">
- <xsl:attribute name="class">
- <xsl:text/>inactiveTableText<xsl:text/>
- </xsl:attribute>
- </xsl:if>
- <xsl:variable name="versionDisplayName" select="xtsext:formatDateFromUTC( string( cm:defaultName ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
- <xsl:choose>
- <xsl:when test="key('system-param', 'versions')/optimized">
- <a href="#" onclick="view('{xtsext:javascriptencode(string(cm:searchPath))}')"><xsl:value-of select="$versionDisplayName"/></a>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$versionDisplayName"/>
- </xsl:otherwise>
- </xsl:choose>
- </cp:columnContent>
-
- <!-- Col 5 - As of time -->
- <cp:columnContent valign="top">
- <xsl:value-of select="xtsext:formatDateFromUTC( string( cm:asOfTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
- </cp:columnContent>
- </cp:tableContent>
- </cf:param>
- </cf:main-pager-section>
- </xsl:when>
-
- <xsl:when test="(count(/root/cm:queryResponse/cm:queryReply[2]/cm:documentVersion) > 0) or (key('env-param', 'm_pagertoversions') != '')">
- <cf:main-pager-section name="versions" form="pform" width="100%" virtualPage="true">
- <cf:param name="item-path">/root/cm:queryResponse/cm:queryReply[2]/*</cf:param>
- <cf:param name="target">concat(concat($app,'/'),$mname)</cf:param>
- <cf:param name="lines-per-page"><xsl:value-of select="key('session-param', 'linesPerPage')"/></cf:param>
- <cf:param name="actions">
- <cp:action>
- <xsl:if test="$canWrite">
- <a href="javascript:if(window.preDeleteversions)preDeleteversions('pform','checkbox_');doDelete()"><xts:string id="IDS_DELETE"/></a>
- </xsl:if>
- </cp:action>
- </cf:param>
-
- <cf:param name="rows">
- <!-- Header ========================== -->
- <cp:tableHeader sort_track_type="page" session-name="s_version">
- <!-- Col 1 - Delete check box - only if has write permissions -->
- <cp:columnHeader width="5" toggleName="checkbox_"/>
- <!-- Col 2 - Versions (dates)-->
- <cp:columnHeader width="100%" sort="n">
- <cp:sortHref>javascript:sort()</cp:sortHref>
- <xts:string id="IDS_PREVIOUS_VERSION_VERSIONS"/>
- </cp:columnHeader>
-
- </cp:tableHeader>
-
-
- <!-- Content ========================== -->
- <cp:tableContent>
- <!-- Col 1 - Delete checkbox column content - only if has write permissions -->
- <cp:columnContent valign="top" position="start">
- <xsl:if test="$canWrite">
- <input type="checkbox" value="{xtsext:urlencode(string(cm:searchPath))}" name="checkbox_{position()}"/>
- </xsl:if>
- </cp:columnContent>
-
- <!-- Col 2 - Versions (dates)-->
- <cp:columnContent valign="top">
- <xsl:variable name="versionDisplayName" select="xtsext:formatDateFromUTC( string( cm:defaultName ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
- <xsl:choose>
- <xsl:when test="key('system-param', 'versions')/optimized">
- <a href="#" onclick="view('{xtsext:javascriptencode(string(cm:searchPath))}')"><xsl:value-of select="$versionDisplayName"/></a>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$versionDisplayName"/>
- </xsl:otherwise>
- </xsl:choose>
- </cp:columnContent>
-
- </cp:tableContent>
- </cf:param>
- </cf:main-pager-section>
- </xsl:when>
-
- <xsl:otherwise>
- <dp:list>
- <dp:section>
- <dp:text/>
- <dp:text tdClass="dialogHeaderText">
- <xts:string id="IDS_NO_SAVED_VERSIONS"/>
- <br/>
- </dp:text>
- </dp:section>
- </dp:list>
- </xsl:otherwise>
- </xsl:choose>
- </lyt:section>
- </lyt:layout>
-
-
- <!-- =================== F o o t e r ===================== -->
- <dp:footer>
- <df:button df:id="IDS_CLOSE" df:style="href" df:href="javascript:closePage()"/>
- </dp:footer>
-
- </utml:form>
- </dp:page>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!-- Debug -->
- <!-- ============================================================================= -->
- <xts:block id="debug" dependency="format" 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"/>
- <dbg:templates/>
- <xsl:template match="/">
- <dbg:dumpxml select="/root"/>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- </xts:morphlet>
|