123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: cpscrn
- (C) Copyright IBM Corp. 2005, 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).
- -->
- <!-- $Header: //cpscrn/main/templates/cps4/portlets/nav/portlet-impl/viewer/edit.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:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:ui="http://developer.cognos.com/schemas/cps/logic/ui/1/"
- xmlns:uix="http://developer.cognos.com/schemas/cps/logic/ui-ext/1/"
- xmlns:nav="http://developer.cognos.com/schemas/cps/navigation/1/"
- xmlns:utml="http://developer.cognos.com/schemas/cps/logic/form/1/"
- xmlns:trustedSession="java:com.cognos.portal.utils.TrustedSessionHelper"
- exclude-result-prefixes="xts xtsext ui uix nav utml">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
- <!-- declare global variables... -->
- <utml:variables/>
- <!-- create portal variable: $ui-consumer-info-->
- <ui:consumer/>
- <xsl:variable name="path-root" select="/root/portlet/consumer/layout/path/start"/>
- <xsl:variable name="path-separator" select="/root/portlet/consumer/layout/path/separator"/>
- <xsl:variable name="portlet-op" select="/root/envelope/SOAP-ENV:Envelope/SOAP-ENV:Body/*[1]"/>
- <xsl:variable name="portlet-registration-params" select="$portlet-op/wsrp:registrationContext/wsrp:registrationState/param"/>
- <xsl:variable name="consumerAgent" select="$portlet-registration-params[@name='consumerAgent']"/>
-
- <xsl:variable name="item" select="/root/SOAP-ENV:Envelope/SOAP-ENV:Body/nav:getItemResponse/nav:item | /root/SOAP-ENV:Envelope/SOAP-ENV:Body/nav:getItemResponse/nav:shortcut"/>
- <xsl:variable name="folder-id">
- <xsl:choose>
- <xsl:when test="$item/nav:parentId">
- <xsl:value-of select="$item/nav:parentId"/>
- </xsl:when>
- <xsl:otherwise>rootDefault</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="display-id-dep">
- <xsl:if test="$item/nav:deploymentId">
- <xsl:value-of select="$item/nav:deploymentId"/>
- </xsl:if>
- </xsl:variable>
- <xsl:variable name="display-id">
- <xsl:if test="$item/nav:id">
- <xsl:value-of select="$item/nav:id"/>
- </xsl:if>
- </xsl:variable>
- <ui:property name="use-title" select="'use_title'"/>
- <ui:property name="channel" select="'channel'"/>
- <ui:property name="display-action" select="'display_action'"/>
- <ui:property name="view-action" select="'view_action'"/>
- <ui:property name="display-settings-norm" select="'display_settings_norm'"/>
- <ui:property name="display-settings-max" select="'display_settings_max'"/>
- <ui:property name="viewer-resize" select="'viewer_resize'"/>
- <ui:property name="display-width" select="'display_width'"/>
- <ui:property name="display-height" select="'display_height'"/>
- <ui:property name="session-id" select="'session_id'"/>
-
- <ui:property name="publish-spec" select="'publish_spec'"/>
- <ui:property name="publish-no-prompt" select="'publish_no_prompt'"/>
- <ui:property name="discussion-spec" select="'discussion_spec'"/>
-
-
- <!-- CW hide property -->
- <xsl:variable name="cw-hide-value">
- <xsl:choose>
- <xsl:when test="key('utml-key-params','p_cw_hide') ">
- <xsl:value-of select="key('utml-key-params','p_cw_hide') "/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="ui-get-property">
- <xsl:with-param name="property-name" select="'cw_hide'"/>
- <xsl:with-param name="property-default" select="'banner,sidebar'"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:template match="/">
- <script language="javascript">
- function wsrp_rewrite_chooseReport(cmd) {
- var cForm = document.wsrp_rewrite_form;
- <utml:form-submit
- utml:formName="wsrp_rewrite_form"
- utml:targetPage="listreports"
- utml:operation="push"
- utml:validate="false"/>
- }
- function wsrp_rewrite_validate() {
- var msg1 = "<xts:string id="IDS_NAV_ERR_INVALID_CHANNEL_NAME" encode="javascript"/>";
- var msg2 = "<xts:string id="IDS_NAV_ERR_NUMBER_BETWEEN" encode="javascript"><xts:param name="min">1</xts:param><xts:param name="max">2000</xts:param></xts:string>";
- var cForm = document.wsrp_rewrite_form;
- if ( !wsrp_rewrite_isValidChannel(cForm.p_channel.value, false) ) {
- window.alert(msg1);
- cForm.p_channel.focus();
- return false;
- }
- if ( !wsrp_rewrite_isValidBoundary(cForm.p_display_height.value,1,2000, true) ) {
- window.alert(msg2);
- cForm.p_display_height.focus();
- return false;
- }
-
- if ( !wsrp_rewrite_isValidBoundary(cForm.p_display_width.value,1,2000, true) ) {
- window.alert(msg2);
- cForm.p_display_width.focus();
- return false;
- }
-
- return true;
- }
- function wsrp_rewrite_setup_norm()
- {
- var cForm = document.wsrp_rewrite_form;
- var v = cForm.tmp_toolbar_norm.checked ? cForm.tmp_toolbar_norm.value : "";
- cForm.p_display_settings_norm.value = v;
- }
- function wsrp_rewrite_setup_max()
- {
- var cForm = document.wsrp_rewrite_form;
- var v = cForm.tmp_toolbar_max.checked ? cForm.tmp_toolbar_max.value : "";
- cForm.p_display_settings_max.value = v;
- }
- <xsl:if test="$consumerAgent = 'liferay'">
- function wsrp_rewrite_viewer_resize()
- {
- var cForm = document.wsrp_rewrite_form;
- var v = cForm.tmp_viewer_resize.checked ? cForm.tmp_viewer_resize.value : "";
- cForm.p_viewer_resize.value = v;
- }
- </xsl:if>
- function wsrp_rewrite_selectViewAction(){
- document.getElementById("wsrp_rewrite_radio_view_action").checked=true;
- }
- function wsrp_rewrite_setup_cw_hide(){
- var cForm = document.wsrp_rewrite_form;
- var v = cForm.tmp_cs_banner_hide.checked ? (cForm.tmp_cs_banner_hide.value + ',') : "";
- v += cForm.tmp_cs_tabs_hide.checked ? (cForm.tmp_cs_tabs_hide.value + ',') : "";
- v += cForm.tmp_cs_ga_hide.checked ? (cForm.tmp_cs_ga_hide.value + ',') : "";
- v += cForm.tmp_cs_sidebar_hide.checked ? (cForm.tmp_cs_sidebar_hide.value + ',') : "";
- v += cForm.tmp_cs_collaboration_hide.checked ? (cForm.tmp_cs_collaboration_hide.value + ',') : "";
- cForm.p_cw_hide.value = v;
- }
- </script>
- <uix:script-isValidChannel/>
- <uix:script-isValidBoundary/>
- <ui:about/>
- <ui:help/>
- <xsl:variable name="editRegion"><xts:string id="IDS_PRO_UIX_EDITMODE_REGION_TITLE_VIEWER" encode="html"/></xsl:variable>
- <div role="region" aria-label="{$editRegion}">
- <utml:form name="wsrp_rewrite_form" action="wsrp_rewrite?wsrp-urlType=blockingAction/wsrp_rewrite" method="post" utml:maintainPrevNavState="true">
-
- <utml:input type="hidden" name="cps-authToken" utml:update="false">
- <utml:value>
- <xsl:value-of select="trustedSession:staticGenerateAuthToken(string(/root/cookies/cookie[@name='usersessionid']))"/>
- </utml:value>
- </utml:input>
-
- <utml:input type="hidden" name="p_display_settings_norm">
- <utml:value>
- <xsl:value-of select="$display-settings-norm"/>
- </utml:value>
- </utml:input>
-
- <utml:input type="hidden" name="p_display_settings_max">
- <utml:value>
- <xsl:value-of select="$display-settings-max"/>
- </utml:value>
- </utml:input>
-
- <utml:input type="hidden" name="p_display_id_dep" utml:update="false">
- <utml:value>
- <xsl:value-of select="$display-id-dep"/>
- </utml:value>
- </utml:input>
-
- <utml:input type="hidden" name="p_session_id" utml:update="true">
- <utml:value>
- <xsl:value-of select="$session-id"/>
- </utml:value>
- </utml:input>
-
-
- <utml:input type="hidden" name="tmp_folder_id" utml:update="false">
- <utml:value>
- <xsl:value-of select="$folder-id"/>
- </utml:value>
- </utml:input>
-
- <ui:page>
- <ui:page-description><xts:string id="IDS_NAV_EDT_DESC_VIEWER"/></ui:page-description>
- <ui:page-section>
- <ui:page-sub-section-group>
- <xsl:if test="/root/portlet/consumer/supportTitle = 'true'">
- <ui:page-sub-section>
- <ui:page-sub-section-title><xts:string id="IDS_PRO_UIX_LABEL_TITLE"/></ui:page-sub-section-title>
- <ui:page-sub-section-content>
- <utml:radio-group name="p_use_title">
- <utml:default-value>
- <xsl:value-of select="$use-title"/>
- </utml:default-value>
- <xsl:variable name="rglable"><xts:string id="IDS_PRO_UIX_LABEL_TITLE" encode="html"/></xsl:variable>
- <table border="0" cellspacing="0" cellpadding="1" role="presentation">
- <tbody role="radiogroup" aria-label="{$rglable}">
- <tr>
- <td valign="top">
- <utml:input id="wsrp_rewrite_IDS_NAV_EDT_LABEL_USE_ENTRY" type="radio" value="false" class="portlet-form-field"/>
- </td>
- <td class="portlet-form-field"><label for="wsrp_rewrite_IDS_NAV_EDT_LABEL_USE_ENTRY"><xts:string id="IDS_NAV_EDT_LABEL_USE_ENTRY"/></label></td>
- </tr>
- <tr>
- <td valign="top">
- <utml:input id="wsrp_rewrite_IDS_PRO_UIX_LABEL_TYPE_TITLE" type="radio" value="true" class="portlet-form-field"/>
- </td>
- <td class="portlet-form-field"><label for="wsrp_rewrite_IDS_PRO_UIX_LABEL_TYPE_TITLE"><xts:string id="IDS_PRO_UIX_LABEL_TYPE_TITLE"/></label></td>
- </tr>
- <tr>
- <td valign="top" rowspan="2">
- <br/>
- </td>
- <td>
- <uix:title onfocus="wsrp_rewrite_form.p_use_title[1].checked = true;"/>
- </td>
- </tr>
- </tbody>
- </table>
- </utml:radio-group>
- </ui:page-sub-section-content>
- </ui:page-sub-section>
- </xsl:if>
-
- <ui:page-sub-section>
- <ui:page-sub-section-title><xts:string id="IDS_NAV_EDT_LABEL_ENTRY"/></ui:page-sub-section-title>
- <ui:page-sub-section-content>
- <table border="0" cellspacing="0" cellpadding="1" role="presentation">
- <tr>
- <td class="portlet-form-field">
- <utml:input type="hidden" name="p_display_id">
- <utml:value>
- <xsl:value-of select="$display-id"/>
- </utml:value>
- </utml:input>
- <xsl:choose>
- <xsl:when test="/root/errorResponse">
- <xsl:text/><xts:string id="IDS_NAV_EDT_LABEL_REPORT_DELETED"/><xsl:text/>
- <div class="portlet-msg-error">
- <font color="red">
- <xsl:value-of select="/root/errorResponse/message"/>
- </font>
- </div>
- </xsl:when>
- <xsl:when test="$display-id = '' or not($item)">
- <xsl:text/><xts:string id="IDS_NAV_EDT_LABEL_NO_REPORT_SELECTED"/><xsl:text/>
- </xsl:when>
- <xsl:otherwise>
- <table border="0" cellpadding="3" cellspacing="0" role="presentation">
- <tr>
- <td>
- <img border="0" width="16" height="16" src="{ $item/nav:imgURL }" alt="{ $item/nav:screenTip }" title="{ $item/nav:screenTip }">
- <xsl:if test="$item/nav:hidden = 'true'">
- <ui:add-hidden-opacity-style/>
- </xsl:if>
- </img>
- </td>
- <td class="portlet-form-field">
- <xsl:value-of select="$path-root"/>
- <xsl:apply-templates select="$item/nav:fullPath"/>
- <xsl:value-of select="$item/nav:name"/>
- </td>
- </tr>
- </table>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </tr>
- <tr>
- <td class="portlet-form-field">
- <a xsl:use-attribute-sets="anchor" href="javascript:wsrp_rewrite_chooseReport();"><xts:string id="IDS_NAV_EDT_LINK_SELECT_REPORT"/></a>
- </td>
- </tr>
- </table>
- </ui:page-sub-section-content>
- </ui:page-sub-section>
-
- <ui:page-sub-section tailing-space="false">
-
- <ui:page-sub-section-title><xts:string id="IDS_NAV_EDT_LABEL_CHANNEL_NAME"/></ui:page-sub-section-title>
-
- <ui:page-sub-section-content>
- <table border="0" cellspacing="0" cellpadding="1" role="presentation">
- <tr>
- <td class="portlet-msg-info"><label for="wsrp_rewrite_p_channel" ><xts:string id="IDS_NAV_EDT_DESC_CHANNEL_NAME"/></label></td>
- </tr>
- <tr>
- <td>
- <utml:input id="wsrp_rewrite_p_channel" class="portlet-form-input-field" type="text" size="20" name="p_channel">
- <utml:value>
- <xsl:value-of select="$channel"/>
- </utml:value>
- </utml:input>
- </td>
- </tr>
- </table>
- </ui:page-sub-section-content>
- </ui:page-sub-section>
- </ui:page-sub-section-group>
- </ui:page-section>
-
- <ui:page-section>
- <ui:page-section-divider><xts:string id="IDS_NAV_EDT_GROUP_REPORT_OPTIONS"/></ui:page-section-divider>
- <ui:page-sub-section-group>
- <ui:page-sub-section>
- <ui:page-sub-section-title><xts:string id="IDS_NAV_EDT_LABEL_PORTLET_ACTION"/></ui:page-sub-section-title>
- <ui:page-sub-section-content>
- <xsl:variable name="view-only" select="$item/nav:type='document'"/>
- <xsl:variable name="display-action-value">
- <xsl:choose>
- <xsl:when test="key('utml-key-params','p_display_action') ">
- <xsl:value-of select="key('utml-key-params','p_display_action') "/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$display-action"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="view-action-value">
- <xsl:choose>
- <xsl:when test="key('utml-key-params','p_view_action') ">
- <xsl:value-of select="key('utml-key-params','p_view_action') "/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$view-action"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <utml:radio-group name="p_display_action" utml:update="false">
- <table border="0" cellspacing="0" cellpadding="1" role="presentation">
- <xsl:variable name="rgl"><xts:string id="IDS_NAV_EDT_LABEL_PORTLET_ACTION" encode="html"/></xsl:variable>
- <tbody role="radiogroup" aria-label="{$rgl}">
- <tr>
- <td>
- <utml:input type="radio" aria-labelledby="wsrp_rewrite_IDS_NAV_EDT_ACTION_SHOW_RUN" value="prompt">
- <xsl:choose>
- <xsl:when test="$view-only">
- <xsl:attribute name="disabled">disabled</xsl:attribute>
- </xsl:when>
- <xsl:when test="$display-action-value = 'prompt'">
- <xsl:attribute name="checked">checked</xsl:attribute>
- </xsl:when>
- </xsl:choose>
- </utml:input>
- </td>
- <td class="portlet-form-field" id="wsrp_rewrite_IDS_NAV_EDT_ACTION_SHOW_RUN"><xts:string id="IDS_NAV_EDT_ACTION_SHOW_RUN"/></td>
- </tr>
- <tr>
- <td>
- <utml:input type="radio" aria-labelledby="wsrp_rewrite_IDS_NAV_EDT_ACTION_RUN" value="run">
- <xsl:choose>
- <xsl:when test="$view-only">
- <xsl:attribute name="disabled">disabled</xsl:attribute>
- </xsl:when>
- <xsl:when test="$display-action-value = 'run'">
- <xsl:attribute name="checked">checked</xsl:attribute>
- </xsl:when>
- </xsl:choose>
- </utml:input>
- </td>
- <td class="portlet-form-field" id="wsrp_rewrite_IDS_NAV_EDT_ACTION_RUN"><xts:string id="IDS_NAV_EDT_ACTION_RUN"/></td>
- </tr>
- <tr>
- <td>
- <utml:input aria-labelledby="wsrp_rewrite_IDS_NAV_EDT_ACTION_VIEW" type="radio" value="view" id="wsrp_rewrite_radio_view_action">
- <xsl:if test="$view-only or $display-action-value = 'view'">
- <xsl:attribute name="checked">checked</xsl:attribute>
- </xsl:if>
- </utml:input>
- </td>
- <td class="portlet-form-field" id="wsrp_rewrite_IDS_NAV_EDT_ACTION_VIEW"><xts:string id="IDS_NAV_EDT_ACTION_VIEW"/></td>
- </tr>
- </tbody>
- <tbody>
- <tr>
- <td></td>
- <td>
- <ui:page-sub-section-group>
- <ui:page-sub-section>
- <ui:page-sub-section-title><label for="wsrp_rewrite_IDS_NAV_EDT_ACTION_VIEW_NO_OUTPUT_LABEL"><xts:string id="IDS_NAV_EDT_ACTION_VIEW_NO_OUTPUT_LABEL"/></label></ui:page-sub-section-title>
- <ui:page-sub-section-content>
- <utml:select id="wsrp_rewrite_IDS_NAV_EDT_ACTION_VIEW_NO_OUTPUT_LABEL" name="p_view_action" size="1" onchange="wsrp_rewrite_selectViewAction()" class="portlet-form-field">
- <utml:default-value>
- <xsl:value-of select="$view-action-value"/>
- </utml:default-value>
- <utml:option value="run">
- <xts:string id="IDS_NAV_EDT_ACTION_RUN"/>
- </utml:option>
- <utml:option value="prompt">
- <xts:string id="IDS_NAV_EDT_ACTION_SHOW_RUN"/>
- </utml:option>
- </utml:select>
- </ui:page-sub-section-content>
- </ui:page-sub-section>
- </ui:page-sub-section-group>
- </td>
- </tr>
- </tbody>
- </table>
- </utml:radio-group>
- </ui:page-sub-section-content>
- </ui:page-sub-section>
-
- <ui:page-sub-section tailing-space="false">
- <ui:page-sub-section-title><xts:string id="IDS_NAV_EDT_LABEL_SHOW_TOOLBAR"/></ui:page-sub-section-title>
- <ui:page-sub-section-content>
- <table border="0" cellspacing="0" cellpadding="1" role="presentation">
- <tr>
- <td class="portlet-form-field">
- <utml:input id="wsrp_rewrite_IDS_NAV_EDT_LABEL_SHOW_TOOLBAR_NORMAL" name="tmp_toolbar_norm" type="checkbox" value="t" onclick="wsrp_rewrite_setup_norm()">
- <xsl:if test="contains( $display-settings-norm, 't')">
- <xsl:attribute name="checked"/>
- </xsl:if>
- </utml:input>
- </td>
- <td class="portlet-form-field"><label for="wsrp_rewrite_IDS_NAV_EDT_LABEL_SHOW_TOOLBAR_NORMAL"><xts:string id="IDS_NAV_EDT_LABEL_SHOW_TOOLBAR_NORMAL"/></label></td>
- </tr>
- <tr>
- <td class="portlet-form-field">
- <utml:input id="wsrp_rewrite_IDS_NAV_EDT_LABEL_SHOW_TOOLBAR_MAXIMIZED" name="tmp_toolbar_max" type="checkbox" value="t" onclick="wsrp_rewrite_setup_max()">
- <xsl:if test="contains( $display-settings-max, 't')">
- <xsl:attribute name="checked"/>
- </xsl:if>
- </utml:input>
- </td>
- <td class="portlet-form-field"><label for="wsrp_rewrite_IDS_NAV_EDT_LABEL_SHOW_TOOLBAR_MAXIMIZED"><xts:string id="IDS_NAV_EDT_LABEL_SHOW_TOOLBAR_MAXIMIZED"/></label></td>
- </tr>
- </table>
- </ui:page-sub-section-content>
- </ui:page-sub-section>
- </ui:page-sub-section-group>
- </ui:page-section>
-
-
-
-
- <ui:page-section>
- <ui:page-section-divider><xts:string id="IDS_NAV_EDT_GROUP_WORKSPACE_OPTIONS"/></ui:page-section-divider>
- <ui:page-sub-section-group>
- <ui:page-sub-section tailing-space="false">
- <ui:page-sub-section-title><xts:string id="IDS_NAV_EDT_LABEL_WORKSPACE_HIDE_OPTIONS"/></ui:page-sub-section-title>
- <ui:page-sub-section-content>
- <utml:input name="p_cw_hide" type="hidden">
- <utml:value>
- <xsl:value-of select="$cw-hide-value"/>
- </utml:value>
- </utml:input>
-
- <table border="0" cellspacing="0" cellpadding="1" role="presentation">
- <tr>
- <td class="portlet-form-field">
- <utml:input id="wsrp_rewrite_IDS_NAV_EDT_LABEL_WORKSPACE_HIDE_BANNER" name="tmp_cs_banner_hide" type="checkbox" value="banner" onclick="wsrp_rewrite_setup_cw_hide()">
- <xsl:if test="contains( $cw-hide-value, 'banner')">
- <xsl:attribute name="checked"/>
- </xsl:if>
- </utml:input>
- </td>
- <td class="portlet-form-field"><label for="wsrp_rewrite_IDS_NAV_EDT_LABEL_WORKSPACE_HIDE_BANNER"><xts:string id="IDS_NAV_EDT_LABEL_WORKSPACE_HIDE_BANNER"/></label></td>
- </tr>
- <tr>
- <td class="portlet-form-field">
- <utml:input id="wsrp_rewrite_IDS_NAV_EDT_LABEL_WORKSPACE_HIDE_TABS" name="tmp_cs_tabs_hide" type="checkbox" value="tabs" onclick="wsrp_rewrite_setup_cw_hide()">
- <xsl:if test="contains( $cw-hide-value, 'tabs')">
- <xsl:attribute name="checked"/>
- </xsl:if>
- </utml:input>
- </td>
- <td class="portlet-form-field"><label for="wsrp_rewrite_IDS_NAV_EDT_LABEL_WORKSPACE_HIDE_TABS"><xts:string id="IDS_NAV_EDT_LABEL_WORKSPACE_HIDE_TABS"/></label></td>
- </tr>
- <tr>
- <td class="portlet-form-field">
- <utml:input id="wsrp_rewrite_IDS_NAV_EDT_LABEL_WORKSPACE_HIDE_GLOBALAREA" name="tmp_cs_ga_hide" type="checkbox" value="globalarea" onclick="wsrp_rewrite_setup_cw_hide()">
- <xsl:if test="contains( $cw-hide-value, 'globalarea')">
- <xsl:attribute name="checked"/>
- </xsl:if>
- </utml:input>
- </td>
- <td class="portlet-form-field"><label for="wsrp_rewrite_IDS_NAV_EDT_LABEL_WORKSPACE_HIDE_GLOBALAREA"><xts:string id="IDS_NAV_EDT_LABEL_WORKSPACE_HIDE_GLOBALAREA"/></label></td>
- </tr>
- <tr>
- <td class="portlet-form-field">
- <utml:input id="wsrp_rewrite_IDS_NAV_EDT_LABEL_WORKSPACE_HIDE_SIDEBAR" name="tmp_cs_sidebar_hide" type="checkbox" value="sidebar" onclick="wsrp_rewrite_setup_cw_hide()">
- <xsl:if test="contains( $cw-hide-value, 'sidebar')">
- <xsl:attribute name="checked"/>
- </xsl:if>
- </utml:input>
- </td>
- <td class="portlet-form-field"><label for="wsrp_rewrite_IDS_NAV_EDT_LABEL_WORKSPACE_HIDE_SIDEBAR"><xts:string id="IDS_NAV_EDT_LABEL_WORKSPACE_HIDE_SIDEBAR"/></label></td>
- </tr>
- <tr>
- <td class="portlet-form-field">
- <utml:input id="wsrp_rewrite_IDS_NAV_EDT_LABEL_WORKSPACE_HIDE_COLLABORATION" name="tmp_cs_collaboration_hide" type="checkbox" value="collaboration" onclick="wsrp_rewrite_setup_cw_hide()">
- <xsl:if test="contains( $cw-hide-value, 'collaboration')">
- <xsl:attribute name="checked"/>
- </xsl:if>
- </utml:input>
- </td>
- <td class="portlet-form-field"><label for="wsrp_rewrite_IDS_NAV_EDT_LABEL_WORKSPACE_HIDE_COLLABORATION"><xts:string id="IDS_NAV_EDT_LABEL_WORKSPACE_HIDE_COLLABORATION"/></label></td>
- </tr>
- </table>
- </ui:page-sub-section-content>
- </ui:page-sub-section>
- </ui:page-sub-section-group>
- </ui:page-section>
-
-
- <xsl:if test="$consumerAgent = 'sharepoint'">
- <script language="javascript" src="{$ui-webcontent}cps4/cpsweb/cpsweb.js"/>
- <script language="javascript" src="{$ui-webcontent}cps4/cpsweb/sp/collaboration.js"/>
- <script language="javascript">
-
- var wsrp_rewrite_messages = {
- 'IDS_SP_ERROR_LABEL' :'<xts:string id="IDS_SP_ERROR_LABEL" encode="javascript"/>',
- 'IDS_SP_DOCUMENT_NAME_LABEL' :'<xts:string id="IDS_SP_DOCUMENT_NAME_LABEL" encode="javascript"/>',
- 'IDS_SP_DOCUMENT_NAME_TOOLTIP' :'<xts:string id="IDS_SP_DOCUMENT_NAME_TOOLTIP" encode="javascript"/>',
- 'IDS_SP_OK' :'<xts:string id="IDS_SP_OK" encode="javascript"/>',
- 'IDS_SP_CANCEL' :'<xts:string id="IDS_SP_CANCEL" encode="javascript"/>',
- 'IDS_SP_OBJECT_TYPE_SITE' :'<xts:string id="IDS_SP_OBJECT_TYPE_SITE" encode="javascript"/>',
- 'IDS_SP_OBJECT_TYPE_FOLDER' :'<xts:string id="IDS_SP_OBJECT_TYPE_FOLDER" encode="javascript"/>',
- 'IDS_SP_OBJECT_TYPE_DOCUMENT_LIBRARY' :'<xts:string id="IDS_SP_OBJECT_TYPE_DOCUMENT_LIBRARY" encode="javascript"/>',
- 'IDS_SP_OBJECT_TYPE_DISCUSSION_LIST' :'<xts:string id="IDS_SP_OBJECT_TYPE_DISCUSSION_LIST" encode="javascript"/>',
- 'IDS_SP_EDT_SELECT_DLG_DISCUSSION_TITLE' :'<xts:string id="IDS_SP_EDT_SELECT_DLG_DISCUSSION_TITLE" encode="javascript"/>',
- 'IDS_SP_EDT_SELECT_DLG_LOCATION_TITLE' :'<xts:string id="IDS_SP_EDT_SELECT_DLG_LOCATION_TITLE" encode="javascript"/>',
- 'IDS_SP_MENU_RUN_PUBLISH' :'<xts:string id="IDS_SP_MENU_RUN_PUBLISH" encode="javascript"/>',
- 'IDS_SP_MENU_VERSIONS' :'<xts:string id="IDS_SP_MENU_VERSIONS" encode="javascript"/>',
- 'IDS_SP_RUNNING_REPORT' :'<xts:string id="IDS_SP_RUNNING_REPORT" encode="javascript"/>',
- 'IDS_SP_CANNOT_RUN_REPORT' :'<xts:string id="IDS_SP_CANNOT_RUN_REPORT" encode="javascript"/>',
- 'IDS_SP_DOCUMENT_PUBLISHED': '<xts:string id="IDS_SP_DOCUMENT_PUBLISHED" encode="javascript"><xts:param name="doc">$1</xts:param><xts:param name="doclib">$2</xts:param></xts:string>',
- 'IDS_SP_DISCUSSION_STARTED' :'<xts:string id="IDS_SP_DISCUSSION_STARTED" encode="javascript"/>',
- 'IDS_SP_DISCUSSION_BODY' :'<xts:string id="IDS_SP_DISCUSSION_BODY" encode="javascript"><xts:param name="title">$1</xts:param></xts:string>',
- 'IDS_SP_VIEW_DOCUMENT_ALT' :'<xts:string id="IDS_SP_VIEW_DOCUMENT_ALT" encode="javascript"/>',
- 'IDS_SP_VIEW_DOCUMENT_LIBRARY_ALT' :'<xts:string id="IDS_SP_VIEW_DOCUMENT_LIBRARY_ALT" encode="javascript"/>',
- 'IDS_SP_MENU_DISCUSS_START' :'<xts:string id="IDS_SP_MENU_DISCUSS_START" encode="javascript"/>',
- 'IDS_SP_MENU_DISCUSS_SHOW_RELATED' :'<xts:string id="IDS_SP_MENU_DISCUSS_SHOW_RELATED" encode="javascript"/>',
- 'IDS_SP_DOCUMENT_PUBLISH_EXISTS':'<xts:string id="IDS_SP_DOCUMENT_PUBLISH_EXISTS" encode="javascript"><xts:param name="doc">$1</xts:param></xts:string>',
- 'IDS_SP_ERROR_CLEAR':'<xts:string id="IDS_SP_ERROR_CLEAR" encode="javascript"></xts:string>'
- };
-
-
- function wsrp_rewrite_updateSelection(id, name, image, imageTitle) {
- document.getElementById(id).innerHTML = name;
- if (image){
- document.getElementById(id + '_image').innerHTML = '<img src="'+image+'" title="'+imageTitle+'" alt="'+imageTitle+'"/>';
- }else{
- document.getElementById(id + '_image').innerHTML = '';
- }
- }
-
- function wsrp_rewrite_createSelectionDlg(id, specInput, listType, isHideListFolders){
- var dlg= new com_ibm_cognos_cps.sp.SelectDialog({
- title: '<xts:string id="IDS_SP_EDT_SELECT_DLG_LOCATION_TITLE" encode="javascript"/>',
- height:350,
- width: 500,
- canSelectReadOnly: true,
-
- messages: wsrp_rewrite_messages,
- okCallback: function(data){
- specInput.value = data.selectionSpec;
- if (specInput.value != '') {
- var cForm = document.wsrp_rewrite_form;
- if (!cForm && !cForm.p_publish_no_prompt) {
- cForm.p_publish_no_prompt.disabled = false;
- }
- }
- wsrp_rewrite_updateSelection(id, data.fullName, data.image, data.typeLabel);
- },
- objectTree: new com_ibm_cognos_cps.sp.ObjectTree( {
- listType: listType,
- allowNoWriteItems: true,
- autoErrorRecovery: true,
- isShowRootWeb: true,
- isHideListFolders: isHideListFolders,
- selectionSpec:specInput.value
- })
- });
-
- dlg.initialize(function(){
-
- if (!dlg.objectTree.error){
- document.getElementById(id + '_select').style.display = '';
- if (specInput.value !== ''){
- // the object tree will try to revert to a location that the use has permission.. The UI should show the original settings.
- var selection = dlg.ignoredSelection ? dlg.ignoredSelection : dlg.selection;
- wsrp_rewrite_updateSelection(id, selection.fullName, selection.image, selection.typeLabel);
- }else {
- wsrp_rewrite_updateSelection(id, '<xts:string id="IDS_NAV_EDT_LABEL_NO_REPORT_SELECTED" encode="javascript"/>');
-
- }
- }else {
- wsrp_rewrite_updateSelection(id, '<xts:string id="IDS_NAV_EDT_LABEL_NO_REPORT_SELECTED" encode="javascript"/>');
- }
- });
- return dlg;
-
- }
-
-
- function wsrp_rewrite_chooseDiscussionLocation() {
- wsrp_rewrite_discussion_dlg.show();
- }
-
- function wsrp_rewrite_choosePublishLocation() {
- wsrp_rewrite_publish_dlg.show();
- }
-
-
-
-
-
-
-
- // Delay the loading until the SP form rewrite is complete (after page load)
- function _wsrp_loadSPSolution(){
-
- var loadCollaborationSection = function(count){
- document.getElementById('wsrp_collaboration_section').style.display='';
- var cForm = document.wsrp_rewrite_form;
- // Wait until the form is initialized
- if (!cForm && !cForm.p_publish_spec){
- if (count < 10){
- setTimeout(function() {
- loadCollaborationSection(count+1);
- }, 500);
- return;
- } else {
- return;
- }
- }
-
- window.wsrp_rewrite_publish_dlg = wsrp_rewrite_createSelectionDlg(
- 'wsrp_rewrite_publish_selection',
- cForm.p_publish_spec,
- SP.ListTemplateType.documentLibrary,
- false);
-
- window.wsrp_rewrite_discussion_dlg = wsrp_rewrite_createSelectionDlg(
- 'wsrp_rewrite_discussion_selection',
- cForm.p_discussion_spec,
- SP.ListTemplateType.discussionBoard,
- true);
-
-
- }
-
- com_ibm_cognos_cps.sp.executeWhenLoaded( function(){
- loadCollaborationSection(1);
- });
-
- }
- if (window.attachEvent) {
- window.attachEvent("onload", _wsrp_loadSPSolution);
- } else if (window.addEventListener) {
- window.addEventListener("load", _wsrp_loadSPSolution, null);
- }
-
- </script>
-
- <div id="wsrp_collaboration_section" style="display:none">
- <ui:page-section>
- <ui:page-section-divider><xts:string id="IDS_SP_EDT_GROUP_COLLABORATION_OPTIONS"/></ui:page-section-divider>
- <ui:page-section-desc><div style="padding:5px"><xts:string id="IDS_SP_EDT_GROUP_COLLABORATION_DESCRIPTION"/></div></ui:page-section-desc>
- <ui:page-sub-section-group>
- <ui:page-sub-section>
- <ui:page-sub-section-title><xts:string id="IDS_SP_EDT_DOCUMENT_LIBRARY"/></ui:page-sub-section-title>
- <ui:page-sub-section-content>
-
- <table border="0" cellspacing="0" cellpadding="1" role="presentation">
- <tr>
- <td class="portlet-form-field">
- <utml:input type="hidden" name="p_publish_spec">
- <utml:value>
- <xsl:value-of select="$publish-spec"/>
- </utml:value>
- </utml:input>
- <table border="0" cellpadding="3" cellspacing="0" role="presentation">
- <tr>
- <td id="wsrp_rewrite_publish_selection_image">
- <img src="{$ui-webcontent}cps4/portlets/nav/images/action_busy.gif">
- <xsl:attribute name="title"><xts:string id="IDS_NAV_EDT_LOADING"/></xsl:attribute>
- <xsl:attribute name="alt"><xts:string id="IDS_NAV_EDT_LOADING"/></xsl:attribute>
- </img>
- </td>
- <td class="portlet-form-field">
- <div id="wsrp_rewrite_publish_selection"><xts:string id="IDS_NAV_EDT_LOADING"/></div>
- </td>
- </tr>
- </table>
-
- </td>
- </tr>
- <tr>
- <td class="portlet-form-field">
- <a xsl:use-attribute-sets="anchor" style="display:none" id="wsrp_rewrite_publish_selection_select" href="javascript:wsrp_rewrite_choosePublishLocation();"><xts:string id="IDS_NAV_EDT_LINK_SELECT_REPORT"/></a>
- </td>
- </tr>
- </table>
- </ui:page-sub-section-content>
- </ui:page-sub-section>
-
- <ui:page-sub-section>
- <ui:page-sub-section-content>
- <table role="presentation">
- <tr>
- <td>
- <utml:input type="checkbox" name="p_publish_no_prompt" value="true">
- <xsl:if test="$publish-no-prompt = 'true'">
- <xsl:attribute name="checked"/>
- </xsl:if>
- <xsl:if test="$publish-spec = ''">
- <xsl:attribute name="disabled"/>
- </xsl:if>
- </utml:input>
- </td>
- <td>
- <xts:string id="IDS_SP_EDT_PUBLISH_NO_PROMPT"/>
- </td>
- </tr>
- </table>
- </ui:page-sub-section-content>
- </ui:page-sub-section>
-
- <ui:page-sub-section>
- <ui:page-sub-section-title><xts:string id="IDS_SP_EDT_DOCUMENT_DISCUSSION"/></ui:page-sub-section-title>
- <ui:page-sub-section-content>
-
- <table border="0" cellspacing="0" cellpadding="1" role="presentation">
- <tr>
- <td class="portlet-form-field">
- <utml:input type="hidden" name="p_discussion_spec">
- <utml:value>
- <xsl:value-of select="$discussion-spec"/>
- </utml:value>
- </utml:input>
- <table border="0" cellpadding="3" cellspacing="0" role="presentation">
- <tr>
- <td id="wsrp_rewrite_discussion_selection_image">
- <img src="{$ui-webcontent}cps4/portlets/nav/images/action_busy.gif">
- <xsl:attribute name="title"><xts:string id="IDS_NAV_EDT_LOADING"/></xsl:attribute>
- <xsl:attribute name="alt"><xts:string id="IDS_NAV_EDT_LOADING"/></xsl:attribute>
- </img>
- </td>
- <td class="portlet-form-field">
- <div id="wsrp_rewrite_discussion_selection"><xts:string id="IDS_NAV_EDT_LOADING"/></div>
- </td>
- </tr>
- </table>
-
- </td>
- </tr>
- <tr>
- <td class="portlet-form-field">
- <a xsl:use-attribute-sets="anchor" style="display:none" id="wsrp_rewrite_discussion_selection_select" href="javascript:wsrp_rewrite_chooseDiscussionLocation();"><xts:string id="IDS_NAV_EDT_LINK_SELECT_REPORT"/></a>
- </td>
- </tr>
- </table>
- </ui:page-sub-section-content>
- </ui:page-sub-section>
-
- </ui:page-sub-section-group>
- </ui:page-section>
- </div>
- </xsl:if>
-
- <ui:page-section>
- <ui:page-section-divider><xts:string id="IDS_NAV_COM_GROUP_VIEWING_OPTIONS"/></ui:page-section-divider>
- <ui:page-sub-section-group>
- <ui:page-sub-section>
- <ui:page-sub-section-title><label for="wsrp_rewrite_IDS_NAV_EDT_LABEL_WIDTH"><xts:string id="IDS_NAV_EDT_LABEL_WIDTH"/></label></ui:page-sub-section-title>
- <ui:page-sub-section-content>
- <table border="0" cellspacing="0" cellpadding="1" role="presentation">
- <tr>
- <td>
- <utml:input id="wsrp_rewrite_IDS_NAV_EDT_LABEL_WIDTH" class="portlet-form-input-field" type="text" size="10" name="p_display_width">
- <utml:value>
- <xsl:value-of select="$display-width"/>
- </utml:value>
- </utml:input>
- </td>
- </tr>
- </table>
- </ui:page-sub-section-content>
- </ui:page-sub-section>
-
- <ui:page-sub-section>
- <ui:page-sub-section-title><label for="wsrp_rewrite_p_display_height"><xts:string id="IDS_NAV_EDT_LABEL_HEIGHT"/></label></ui:page-sub-section-title>
- <ui:page-sub-section-content>
- <table border="0" cellspacing="0" cellpadding="1" role="presentation">
- <tr>
- <td>
- <utml:input id="wsrp_rewrite_p_display_height" class="portlet-form-input-field" type="text" size="10" name="p_display_height">
- <utml:value>
- <xsl:value-of select="$display-height"/>
- </utml:value>
- </utml:input>
- </td>
- </tr>
- </table>
- </ui:page-sub-section-content>
- </ui:page-sub-section>
-
- <!-- Chart resize option for the viewer running in Liferay portal -->
- <xsl:if test="$consumerAgent = 'liferay'">
- <ui:page-sub-section>
- <!--<ui:page-sub-section-title><xts:string id="IDS_NAV_EDT_LABEL_VIEWER_RESIZE"/></ui:page-sub-section-title>-->
- <ui:page-sub-section-content>
- <utml:input type="hidden" name="p_viewer_resize">
- <utml:value>
- <xsl:value-of select="$viewer-resize"/>
- </utml:value>
- </utml:input>
- <table border="0" cellspacing="0" cellpadding="1" role="presentation">
- <tr>
- <td class="portlet-form-field">
- <utml:input id="wsrp_rewrite_IDS_NAV_EDT_LABEL_VIEWER_RESIZE_ENABLE" name="tmp_viewer_resize" type="checkbox" value="t" onclick="wsrp_rewrite_viewer_resize()">
- <xsl:if test="contains( $viewer-resize, 't')">
- <xsl:attribute name="checked"/>
- </xsl:if>
- </utml:input>
- </td>
- <td class="portlet-form-field"><label for="wsrp_rewrite_IDS_NAV_EDT_LABEL_VIEWER_RESIZE_ENABLE"></label><xts:string id="IDS_NAV_EDT_LABEL_VIEWER_RESIZE_ENABLE"/></td>
- </tr>
- </table>
- </ui:page-sub-section-content>
- </ui:page-sub-section>
- </xsl:if>
-
- <!-- SAP-HACK-START -->
- <ui:admin-settings/>
- <!-- SAP-HACK-END -->
- </ui:page-sub-section-group>
- </ui:page-section>
- </ui:page>
- </utml:form>
- </div>
- </xsl:template>
- <xsl:template match="nav:pathStep">
- <xsl:value-of select="nav:name"/>
- <xsl:value-of select="$path-separator"/>
- <xsl:apply-templates select="nav:pathStep"/>
- </xsl:template>
- </xsl:stylesheet>
|