1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2005, 2015
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!--
- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
- -->
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns: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:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:upfront="http://developer.cognos.com/schemas/upfront/"
- xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:cms="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cms/1/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- 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:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
- xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
- xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
- xmlns:x="x"
- xmlns:out="dummy-uri"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="cml xsl lyt dt dp cm upfront utml xts cms pf cf cp send x xtsext df">
- <xsl:output method="xml" encoding="UTF-8" indent="no"/>
- <xsl:namespace-alias stylesheet-prefix="out" result-prefix="xsl"/>
- <!--
- dt:retention
- dt:dateControlStylesheet
- dt:dateControlScripts
- dt:selectDeselectAll
- dt:jobUpdateSequence
- dt:updateOptions
- dt:jobSortSteps
- dt:jobClearOptions
- dt:jobExecuteCommand
- dt:jobAddNewItems
- dt:jobSetSequence
- dt:jobEncodeList
- dt:encodeEmailRunOptions
- dt:appendDeliveryText
- dt:generateEmailTo
- dt:generateDefaultScheduleParams
- dt:generateUIHelpersFromOptions
- dt:promptDescription
- dt:runOptionValidation
- dt:runOptionJavaScriptInit
- dt:localizedFloatTextBox
- -->
- <!-- dt:FloatTextBoxJavaScript and dt:localizedFloatTextBox are used when the input text box takes a float value.
- In some locales like German and French the decimal separator is a comma and not a period. We create 2 input fields.
- The hidden field contains the number in neutral form (with period). The other one holds the display value. What gets
- formatted for display to the user is the value in the display box. What gets submitted to CM is the value of the hidden
- element. -->
- <xsl:template match="dt:FloatTextBoxJavaScript">
- <script language="javascript">
- <!-- sParseByDataType and initParsingRegularExpressions functions are defined in prompting javascript file CText.js -->
- <!-- init the values before calling the sParseByDataType() -->
- initParsingRegularExpressions();
- function setHiddenParam(e)
- {
- var form = document.pform;
- var hiddenFormName = e.name.substring(14);
- var changedHiddenFormName = "changed_" + hiddenFormName;
- form.elements[hiddenFormName].value = sParseByDataType(e.value,"number",true);
- if (form.elements[changedHiddenFormName])
- {
- form.elements[changedHiddenFormName].value=1;
- }
- }
- function getDisplayBoxName(form,formElement)
- {
- if (formElement != null)
- {
- floatDisplayBoxName = "_FLOATDISPLAY_"+formElement.name;
- if (form.elements[floatDisplayBoxName] != null)
- return floatDisplayBoxName;
- }
- return null;
- }
- </script>
- </xsl:template>
- <xsl:template match="dt:paperSizeInputFields">
- <out:template name="paperSizeInputFields">
- <out:param name="widthValue"/>
- <out:param name="heightValue"/>
- <out:param name="utml-form-name"/>
- <out:param name="form-read-only"/>
- <out:param name="isUnitInchSelected"/>
- <out:param name="isUnitCentimeterSelected"/>
- <dp:input>
- <dp:section1 id="LABEL_FOR_PROP_PAGE_SIZE_WIDTH">
- <xts:string id="IDS_PROP_PAGE_SIZE_WIDTH"/>
- </dp:section1>
- <dp:section2>
- <out:call-template name="localizedFloatTextBox">
- <out:with-param name="ariaLabelledBy" select="'LABEL_FOR_PROP_PAGE_SIZE_WIDTH'"/>
- <out:with-param name="eName" select="'m_p_width'"/>
- <out:with-param name="eValue" select="$widthValue"/>
- <out:with-param name="utml-form-name" select="$utml-form-name"/>
- <out:with-param name="form-read-only" select="$form-read-only"/>
- <out:with-param name="class" select="'smallInput'"/>
- <out:with-param name="dropZeroDecimal" select="'true'"/>
- </out:call-template>
- </dp:section2>
- </dp:input>
- <dp:input>
- <dp:section1 id="LABEL_FOR_PROP_PAGE_SIZE_HEIGHT">
- <xts:string id="IDS_PROP_PAGE_SIZE_HEIGHT"/>
- </dp:section1>
- <dp:section2>
- <out:call-template name="localizedFloatTextBox">
- <out:with-param name="ariaLabelledBy" select="'LABEL_FOR_PROP_PAGE_SIZE_HEIGHT'"/>
- <out:with-param name="eName" select="'m_p_height'"/>
- <out:with-param name="eValue" select="$heightValue"/>
- <out:with-param name="utml-form-name" select="$utml-form-name"/>
- <out:with-param name="form-read-only" select="$form-read-only"/>
- <out:with-param name="class" select="'smallInput'"/>
- <out:with-param name="dropZeroDecimal" select="'true'"/>
- </out:call-template>
- </dp:section2>
- </dp:input>
- <dp:input>
- <dp:section1 id="LABEL_FOR_PROP_PAGE_SIZE_UNIT">
- <xts:string id="IDS_PROP_PAGE_SIZE_UNIT"/>
- </dp:section1>
- <dp:section2>
- <utml:select name="m_p_unit" class="smallInput" aria-labelledby="LABEL_FOR_PROP_PAGE_SIZE_UNIT" >
- <utml:option value="in">
- <out:if test="$isUnitInchSelected">
- <out:attribute name="selected">selected</out:attribute>
- </out:if>
- <xts:string id="IDS_EPS_INCHES"/>
- </utml:option>
- <utml:option value="cm">
- <out:if test="$isUnitCentimeterSelected">
- <out:attribute name="selected">selected</out:attribute>
- </out:if>
- <xts:string id="IDS_EPS_CENTIMETERS"/>
- </utml:option>
- </utml:select>
- </dp:section2>
- </dp:input>
- </out:template>
- </xsl:template>
- <xsl:template match="dt:localizedFloatTextBox">
- <out:template name="localizedFloatTextBox">
- <out:param name="ariaLabelledBy"/>
- <out:param name="eName"/>
- <out:param name="eValue"/>
- <out:param name="toolTip"/>
- <out:param name="readOnly" select="'false'"/>
- <out:param name="utml-form-name"/>
- <out:param name="form-read-only"/>
- <out:param name="class"/>
- <out:param name="dropZeroDecimal" select="'false'"/>
- <out:variable name="numberPattern">
- <out:if test="$dropZeroDecimal = 'false'"><xsl:value-of select="string('#,##0.0################')"/></out:if>
- </out:variable>
- <utml:input type="hidden" utml:update="false">
- <xsl:if test="@track and @track='true'">
- <utml:track>true</utml:track>
- </xsl:if>
- <utml:name>
- <out:value-of select="$eName"/>
- </utml:name>
- <utml:value>
- <out:value-of select="$eValue"/>
- </utml:value>
- </utml:input>
- <utml:input type="text" size="10" onBlur="javascript:setHiddenParam(this)" utml:update="false" lang="{'{$contentLocale}'}">
- <out:if test="$ariaLabelledBy != ''">
- <out:attribute name="aria-labelledby"><out:value-of select="$ariaLabelledBy"/></out:attribute>
- </out:if>
- <out:if test="normalize-space($toolTip) != ''">
- <out:attribute name="title"><out:value-of select="normalize-space($toolTip)"/></out:attribute>
- </out:if>
- <out:if test="$class != ''">
- <out:attribute name="class"><out:value-of select="$class"/></out:attribute>
- </out:if>
- <xsl:if test="@track and @track='true'">
- <utml:track>true</utml:track>
- </xsl:if>
- <utml:name>
- <out:value-of select="concat('_FLOATDISPLAY_',$eName)"/>
- </utml:name>
- <utml:value>
- <out:if test="$eValue!=''">
- <out:value-of select="xtsext:formatNumber($eValue,$numberPattern,string($contentLocale), number(1))"/>
- </out:if>
- </utml:value>
- <utml:read-only>
- <out:value-of select="$readOnly"/>
- </utml:read-only>
- </utml:input>
- </out:template>
- </xsl:template>
- <!--
- dt:selectDeselectAll
- Define the javascript functions: selectall() and deselectall().
- -->
- <xsl:template match="dt:selectDeselectAll">
- <script language="javascript" src="{'{$webcontent}'}/{'{$app}'}/js/list.js"/>
- <script language="javascript">
- function selectall(prefix)
- {
- if (prefix && prefix != '')
- {
- var form = document.pform;
- for (var i = 0; i < form.elements.length; i++)
- {
- if (form.elements[i].checked == false && form.elements[i].name.indexOf(prefix) == 0)
- {
- form.elements[i].checked = true;
- }
- }
- }
- }
- function deselectall(prefix)
- {
- if (prefix && prefix != '')
- {
- var form = document.pform;
- for (var i = 0; i < form.elements.length; i++)
- {
- if (form.elements[i].checked == true && form.elements[i].name.indexOf(prefix) == 0)
- {
- form.elements[i].checked = false;
- }
- }
- }
- }
- </script>
- </xsl:template>
-
- <xsl:template match="dt:checkMandatoryScript">
- function checkMandatory(obj, label)
- {
- obj.value = trim(obj.value);
- if (obj.value == '')
- {
- <out:variable name="errmsg">
- <xts:string id="IDS_ERR_MANDATORY" encode="javascript">
- <xts:param name="field">" + label + "</xts:param>
- </xts:string>
- </out:variable>
- window.alert("<out:value-of select="normalize-space($errmsg)"/>");
- if( obj.type != "hidden" && obj.style.display != "none" && !obj.disabled ) {
- obj.focus();
- }
- return false;
- }
- return true;
- }
- </xsl:template>
- <!--
- dt:retention -
- -->
- <xsl:template match="dt:retention">
- <xsl:variable name="dt_class" select="@class"/>
- <xsl:variable name="dt_trackchange" select="@trackchange"/>
- <out:variable name="dt_class"><xsl:value-of select="@class"/></out:variable>
- <xsl:variable name="dt_rg_name" select="concat('rg_retention_', $dt_class)"/>
- <script language="javascript">
- function onClickDuration<xsl:value-of select="@class"/>(durationSelected)
- {
- var frm = document.pform;
- frm.maxNumber_<xsl:value-of select="$dt_class"/>.disabled = durationSelected;
- frm.duration_<xsl:value-of select="$dt_class"/>.disabled = !durationSelected;
- frm.durationSelect_<xsl:value-of select="$dt_class"/>.disabled = !durationSelected;
- }
- </script>
- <out:variable name="retentionRule" select="$the-object/cm:retentions/cm:retentionRule[@objectClass=$dt_class]"/>
- <!-- maxDuration has form of P#M for months of P#D for days -->
- <out:variable name="days">
- <out:if test="not(key('env-param', '{$dt_rg_name}'))">
- <out:value-of select="substring-before(substring-after($retentionRule/@maxDuration,'P'),'D')"/>
- </out:if>
- </out:variable>
- <out:variable name="months">
- <out:if test="not(key('env-param', '{$dt_rg_name}'))">
- <out:value-of select="substring-before(substring-after($retentionRule/@maxDuration,'P'),'M')"/>
- </out:if>
- </out:variable>
- <out:variable name="occurrence_selected" select="(($retentionRule/@maxObjects > 0 and not(key('env-param', '{$dt_rg_name}'))) or (key('env-param', '{$dt_rg_name}')='maxNumber') or not($retentionRule)) or ($days='' and $months='' and not(key('env-param','{concat('duration_', $dt_class)}')))"/>
- <out:variable name="daysDisplay"><xts:string id="IDS_PROP_DAYS"/></out:variable>
- <out:variable name="monthsDisplay"><xts:string id="IDS_PROP_MONTHS"/></out:variable>
-
- <!-- A11y support need labels mapping with ids but keeping the ids unique -->
- <xsl:variable name="dur">dur<xsl:value-of select="position()"/></xsl:variable>
- <xsl:variable name="sel">sel<xsl:value-of select="position()"/></xsl:variable>
- <xsl:variable name="optD">optD<xsl:value-of select="position()"/></xsl:variable>
- <xsl:variable name="optM">optM<xsl:value-of select="position()"/></xsl:variable>
- <xsl:variable name="retentionHint">retentionHint<xsl:value-of select="position()"/></xsl:variable>
- <dp:choice title="{@title}" id="{$dt_rg_name}_radiogroup">
- <span class="dialogHeaderText" tabindex="0" aria-labelledby="{$retentionHint}"><xts:string id="IDS_PROP_RETENTION_HINT"/></span>
- <span style="position: absolute;margin-left: -9999px; margin-top: -9999px;" id="{$retentionHint}"><xts:string id="{@title}"/> <xts:string id="IDS_PROP_RETENTION_HINT"/></span>
- <out:choose>
- <out:when test="contains($the-object/cm:permissions, 'write')">
- <utml:radio-group name="{$dt_rg_name}">
- <utml:default-value>
- <out:choose>
- <out:when test="$occurrence_selected">maxNumber</out:when>
- <out:otherwise>duration</out:otherwise>
- </out:choose>
- </utml:default-value>
- <dp:section1>
- <utml:input type="radio" name="{$dt_rg_name}" value="maxNumber" checked="true" tabindex="0" aria-labelledby="lbl_{$dt_rg_name}_maxNumber">
- <xsl:attribute name="onclick">onClickDuration<xsl:value-of select="@class"/>(false);</xsl:attribute>
- <out:attribute name="title"><xts:string id="{@label}"/></out:attribute>
- </utml:input>
- </dp:section1>
- <dp:section2 id="lbl_{$dt_rg_name}_maxNumber">
- <div>
- <dp:group>
- <dp:groupItem><xts:string id="IDS_PROP_NUMBER_VERSIONS"/></dp:groupItem>
- <dp:groupItem><dp:text/></dp:groupItem>
- <dp:groupItem>
- <utml:input type="text" name="{concat('maxNumber_', $dt_class)}" size="3" maxlength="3" utml:track="true" validateobject="{$dt_rg_name}">
- <out:attribute name="title"><xts:string id="IDS_PROP_NUMBER_VERSIONS"/></out:attribute>
- <xsl:if test="string($dt_trackchange)!=''">
- <out:attribute name="onchange"><xsl:value-of select="$dt_trackchange"/></out:attribute>
- </xsl:if>
- <out:if test="not($occurrence_selected)">
- <out:attribute name="disabled">true</out:attribute>
- </out:if>
- <utml:value>
- <out:choose>
- <out:when test="$retentionRule/@maxObjects and not(key('env-param', '{$dt_rg_name}'))">
- <out:value-of select="$retentionRule/@maxObjects"/>
- </out:when>
- <out:when test="$days='' and $months='' and not(key('env-param', '{$dt_rg_name}'))">0</out:when>
- <out:when test="$days='' and $months='' and key('env-param','{$dt_rg_name}')='duration'">0</out:when>
- </out:choose>
- </utml:value>
- </utml:input>
- </dp:groupItem>
- </dp:group>
- </div>
- </dp:section2>
- <dp:section1>
- <div>
- <utml:input type="radio" name="{$dt_rg_name}" value="duration" tabindex="0" aria-labelledby="lbl_{$dt_rg_name}_duration">
- <xsl:attribute name="onclick">
- onClickDuration<xsl:value-of select="@class"/>(true);
- </xsl:attribute>
- <out:attribute name="title">
- <xts:string id="{@label}"/>
- </out:attribute>
- </utml:input>
- </div>
- </dp:section1>
- <dp:section2 id="lbl_{$dt_rg_name}_duration">
- <div>
- <out:variable name="str_durationUnits">
- <xts:string id="IDS_PROP_DURATION_UNITS"/>
- </out:variable>
- <dp:group>
- <dp:groupItem>
- <label for="{$dur}">
- <xts:string id="IDS_PROP_DURATION"/>
- </label>
- <xts:string id="IDS_PROP_DURATION_DUMMY">
- <xts:param name="duraTime">
- <dp:groupItem>
- <dp:text/>
- </dp:groupItem>
- <dp:groupItem>
- <utml:input type="text" name="{concat('duration_', $dt_class)}" size="3" maxlength="3" validateobject="{$dt_rg_name}" id="{$dur}">
- <xsl:if test="string($dt_trackchange)!=''">
- <out:attribute name="onchange">
- <xsl:value-of select="$dt_trackchange"/>
- </out:attribute>
- </xsl:if>
- <out:if test="$occurrence_selected or ($days='' and $months='' and not(key('env-param', '{concat('duration_', $dt_class)}')))">
- <out:attribute name="disabled">true</out:attribute>
- </out:if>
- <utml:value>
- <out:choose>
- <out:when test="$days!=''">
- <out:value-of select="$days"/>
- </out:when>
- <out:when test="$months!=''">
- <out:value-of select="$months"/>
- </out:when>
- </out:choose>
- </utml:value>
- </utml:input>
- </dp:groupItem>
- </xts:param>
- <xts:param name="duraSpacer">
- <dp:groupItem>
- <dp:text/>
- </dp:groupItem>
- </xts:param>
- <xts:param name="duraType">
- <dp:groupItem>
- <utml:select name="{concat('durationSelect_', $dt_class)}" id="{$sel}">
- <out:attribute name="aria-label">
- <out:value-of select="$str_durationUnits"/>
- </out:attribute>
- <out:if test="$occurrence_selected or ($days='' and $months='' and not(key('env-param', '{concat('durationSelect_', $dt_class)}')))">
- <out:attribute name="disabled">true</out:attribute>
- </out:if>
- <utml:option value="days" id="{$optD}">
- <out:if test="$days!='' or key('env-param','{concat('durationSelect_',$dt_class)}')='days' or not(key('env-param','{concat('durationSelect_',$dt_class)}'))">
- <out:attribute name="selected">selected</out:attribute>
- </out:if>
- <label for="{$optD}">
- <out:value-of select="$daysDisplay"/>
- </label>
- </utml:option>
- <utml:option value="months" id="{$optM}">
- <out:if test="$months!='' or key('env-param','{concat('durationSelect_',$dt_class)}')='months'">
- <out:attribute name="selected">selected</out:attribute>
- </out:if>
- <label for="{$optM}">
- <out:value-of select="$monthsDisplay"/>
- </label>
- </utml:option>
- </utml:select>
- </dp:groupItem>
- </xts:param>
- </xts:string>
- </dp:groupItem>
- </dp:group>
- </div>
- </dp:section2>
- </utml:radio-group>
- </out:when>
- <out:otherwise>
- <out:choose>
- <out:when test="$occurrence_selected">
- <dp:section1>
- <div>
- <xts:string id="IDS_PROP_NUMBER_VERSIONS_READONLY">
- <xts:param name="maxNumber">
- <out:value-of select="$retentionRule/@maxObjects"/>
- </xts:param>
- </xts:string>
- </div>
- </dp:section1>
- </out:when>
- <out:otherwise>
- <dp:section1>
- <out:choose>
- <out:when test="$days != '' ">
- <xts:string id="IDS_PROP_DAYS_READONLY">
- <xts:param name="numDays">
- <out:value-of select="$days"/>
- </xts:param>
- </xts:string>
- </out:when>
- <out:otherwise>
- <xts:string id="IDS_PROP_MONTHS_READONLY">
- <xts:param name="numMonths">
- <out:value-of select="$months"/>
- </xts:param>
- </xts:string>
- </out:otherwise>
- </out:choose>
- </dp:section1>
- </out:otherwise>
- </out:choose>
- </out:otherwise>
- </out:choose>
- </dp:choice>
- </xsl:template>
- <xsl:template match="dt:cmmPostBackForm">
- <form name="cmmform" method="post" action="{'{$gateway}'}">
- <input type="hidden" name="b_action" value="mms.run"/>
- <input type="hidden" name="path" value="/controller"/>
- <out:if test="key('env-param','pid')">
- <input type="hidden" name="pid">
- <out:attribute name="value"><out:value-of select="key('env-param','pid')"/></out:attribute>
- </input>
- </out:if>
- <out:if test="key('env-param','cmm.originalURLRedirect')">
- <input type="hidden" name="cmm.originalURLRedirect">
- <out:attribute name="value"><out:value-of select="key('env-param','cmm.originalURLRedirect')"/></out:attribute>
- </input>
- </out:if>
- <out:if test="key('env-param','defaultName')">
- <input type="hidden" name="defaultName">
- <out:attribute name="value"><out:value-of select="key('env-param','defaultName')"/></out:attribute>
- </input>
- </out:if>
- <out:if test="key('env-param','defaultLocation')">
- <input type="hidden" name="defaultLocation">
- <out:attribute name="value"><out:value-of select="key('env-param','defaultLocation')"/></out:attribute>
- </input>
- </out:if>
- <out:if test="key('env-param','defaultLocationDisplay')">
- <input type="hidden" name="defaultLocationDisplay">
- <out:attribute name="value"><out:value-of select="key('env-param','defaultLocationDisplay')"/></out:attribute>
- </input>
- </out:if>
- <out:if test="key('env-param','defaultDescription')">
- <input type="hidden" name="defaultDescription">
- <out:attribute name="value"><out:value-of select="key('env-param','defaultDescription')"/></out:attribute>
- </input>
- </out:if>
- <out:if test="key('env-param','defaultScreenTip')">
- <input type="hidden" name="defaultScreenTip">
- <out:attribute name="value"><out:value-of select="key('env-param','defaultScreenTip')"/></out:attribute>
- </input>
- </out:if>
- <out:if test="key('env-param','cancelURL')">
- <input type="hidden" name="cancelURL">
- <out:attribute name="value"><out:value-of select="key('env-param','cancelURL')"/></out:attribute>
- </input>
- </out:if>
- <out:if test="key('env-param','cmm.SafeMode')">
- <input type="hidden" name="cmm.SafeMode">
- <out:attribute name="value"><out:value-of select="key('env-param','cmm.SafeMode')"/></out:attribute>
- </input>
- </out:if>
- </form>
- </xsl:template>
- <!--
- ===============================================================================================
- modify the sequences of the steps.
- ===============================================================================================
- -->
- <xsl:template match="dt:jobUpdateSequence">
- <out:template match="/">
- <xts:sequence>
- <out:for-each select="/root/env/param[@name='entriesSortOrder']">
- <out:variable name="dispSeq">
- <out:value-of select="substring-before(. , ',')"/>
- </out:variable>
- <out:variable name="objGuid">
- <out:value-of select="substring-after(. , ',')"/>
- </out:variable>
- <xts:replace>
- <xsl:attribute name="select">
- <xsl:text>/root/steps/*[local-name()='queryResponse' and namespace-uri()='http://developer.cognos.com/schemas/xts-cm/1/']/*[*[local-name()='guid' and string()='{$objGuid}']]/*[local-name() = 'displaySequence']</xsl:text>
- </xsl:attribute>
- <displaySequence><out:value-of select="$dispSeq"/></displaySequence>
- </xts:replace>
- <!-- mark this step as updated -->
- <out:if test="not(/root/steps/cm:queryResponse/*[x:guid=$objGuid and (x:added|x:updated)])">
- <xts:append>
- <xsl:attribute name="select">
- <xsl:text>/root/steps/*[local-name()='queryResponse' and namespace-uri()='http://developer.cognos.com/schemas/xts-cm/1/']/*[*[local-name()='guid' and string()='{$objGuid}']]</xsl:text>
- </xsl:attribute>
- <x:updated/>
- </xts:append>
- </out:if>
- </out:for-each>
- <xts:replace select="/root/steps">
- <steps>
- <queryResponse xmlns="http://developer.cognos.com/schemas/xts-cm/1/">
- <xts:transform src="transforms/portal/jobDefinition/sortJobSteps.xslt" processor="XSLT">
- <steps>
- <xts:queryNode select="/root/steps/*[local-name()='queryResponse' and namespace-uri()='http://developer.cognos.com/schemas/xts-cm/1/']/*"/>
- </steps>
- </xts:transform>
- </queryResponse>
- </steps>
- </xts:replace>
- <xts:delete select="/root/env/param[@name='modifySequence' or @name = 'jobSteps' or @name = 'entriesSortOrder']"/>
- </xts:sequence>
- </out:template>
- </xsl:template>
- <!--
- ===============================================================================================
- updateOptions
- Will update the job or step options with the params in the env.
- ===============================================================================================
- -->
- <xsl:template match="dt:updateOptions">
- <out:template match="/">
- <xts:sequence>
- <!-- if the user hit the OK button -->
- <out:choose>
- <out:when test="key('env-param','userHitOK') = 'true'">
- <out:choose>
- <!-- visited the job options dialog -->
- <out:when test="key('env-param','run_options_visited') = 'true'">
- <xts:delete select="/root/jobOptions/*[local-name()='options' or local-name()='UIHelpers' or local-name()='parameters']"/>
-
- <!-- if the override default report options checkbox isn't checked, and outputFormat is not overriden then delete all the report options from the env -->
- <out:if test="not(key('env-param','override_default_options')='true' or key('env-param','override_outputFormat_option')='true')">
- <xts:delete select="/root/env/param[starts-with(@name,'m_ro_') or starts-with(@name, 'm_pdf_') or starts-with(@name, 'm_arc_')]"/>
- </out:if>
- <out:if test="(key('env-param','override_default_options')='true' or key('env-param','override_outputFormat_option')='true') and key('env-param','m_ro_promptCacheMode')='create'">
- <xts:delete select="/root/env/param[(starts-with(@name,'m_ro_') or starts-with(@name, 'm_pdf_') or starts-with(@name, 'm_arc_')) and (@name!='m_ro_promptCacheMode') and (@name!='m_ro_outputLocale')]"/>
- </out:if>
-
- <out:if test="not(key('env-param','override_default_content_task_options')='true')">
- <xts:delete select="/root/env/param[starts-with(@name,'ctro_runoption')]"/>
- </out:if>
- <out:if test="not(key('env-param','override_default_deployment_options')='true')">
- <xts:delete select="/root/env/param[starts-with(@name,'deploymentro_upgrade')]"/>
- <xts:delete select="/root/env/param[starts-with(@name,'deploymentro_preserveStoreIDs')]"/>
- </out:if>
-
- <out:if test="not(key('env-param','override_default_index_update_task_options')='true')">
- <xts:delete select="/root/env/param[starts-with(@name,'m_io_force')]"/>
- <xts:delete select="/root/env/param[starts-with(@name,'m_io_indexObjectTypes')]"/>
- <xts:delete select="/root/env/param[starts-with(@name,'m_io_indexReferencedData')]"/>
- <xts:delete select="/root/env/param[starts-with(@name,'m_io_indexModeledData')]"/>
- </out:if>
-
- <xts:append select="/root/jobOptions">
- <xts:transform src="transforms/portal/options/buildOptions.xslt" processor="XSLT">
- <root>
- <xts:transform src="transforms/portal/options/buildOptionItems.xslt" processor="XSLT">
- <root>
- <xts:queryNode select="/root/env"/>
- <xts:transform name="XML" src="portal/options.xml"/>
- <contentLocale><out:value-of select="$contentLocale"/></contentLocale>
- <out:if test="key('env-param','deliveryOptions') != ''">
- <deliveryOptions>
- <out:value-of select="xtsext:web64decode( xtsext:cafaction('sign_unwrap', string( key('env-param','deliveryOptions') )), true() )" disable-output-escaping="yes"/>
- </deliveryOptions>
- </out:if>
- <out:if test="key('env-param','mobileOptions') != ''">
- <mobileOptions>
- <out:value-of select="xtsext:web64decode( xtsext:cafaction('sign_unwrap', string( key('env-param','mobileOptions') )), true() )" disable-output-escaping="yes"/>
- </mobileOptions>
- </out:if>
- <optionType>runOptions</optionType>
- <out:if test="key('env-param','override_default_options')='true' or key('env-param','override_outputFormat_option')='true'">
- <optionType>genericOptions</optionType>
- </out:if>
- <optionType>powerPlay8JobOptions</optionType>
- <optionType>pdfOptions</optionType>
- <optionType>archiveOptions</optionType>
- <out:if test="key('env-param','override_default_content_task_options')='true'">
- <optionType>contentTaskOptions</optionType>
- </out:if>
- <out:if test="key('env-param','override_default_deployment_options')='true'">
- <optionType>deploymentOptions</optionType>
- </out:if>
- <out:if test="key('env-param','override_default_index_update_task_options')='true'">
- <optionType>indexOptions</optionType>
- </out:if>
- <genDefaults>false</genDefaults>
- <batchOptions>true</batchOptions>
- </root>
- </xts:transform>
- </root>
- </xts:transform>
- <out:if test="key('env-param','override_default_options')='true' or key('env-param','override_outputFormat_option')='true'">
- <xsl:call-template name="dt:buildUIHelper">
- <xsl:with-param name="default" select="'false()'"/>
- <xsl:with-param name="jobDefinition" select="'true()'"/>
- </xsl:call-template>
- </out:if>
- </xts:append>
-
- <xts:delete select="/root/env/param[@name='jobOptions']"/>
- </out:when>
- <!-- visited the step options dialog -->
- <out:when test="key('env-param','step_options_visited') = 'true'">
- <out:variable name="current-step" select="/root/env/param[@name='current_step']"/>
- <xts:delete>
- <xsl:attribute name="select">
- <xsl:text>/root/steps/*/*/*[local-name() = 'displaySequence' and string()='{$current-step}']/../*[local-name()='parameters' or local-name()='options' or local-name()='UIHelpers']</xsl:text>
- </xsl:attribute>
- </xts:delete>
-
- <!-- if the override default report options checkbox isn't checked, then delete all the m_ro_ from the env except m_ro_promptCacheMode -->
- <out:if test="not(key('env-param','override_default_options')='true' or key('env-param','override_outputFormat_option')='true')">
- <xts:delete select="/root/env/param[(starts-with(@name,'m_ro_') or starts-with(@name, 'm_pdf_') or starts-with(@name, 'm_arc_')) and (@name!='m_ro_promptCacheMode')]"/>
- </out:if>
- <out:if test="(key('env-param','override_default_options')='true' or key('env-param','override_outputFormat_option')='true') and key('env-param','m_ro_promptCacheMode')='create'">
- <xts:delete select="/root/env/param[(starts-with(@name,'m_ro_') or starts-with(@name,'m_go_') or starts-with(@name, 'm_pdf_') or starts-with(@name, 'm_arc_')) and (@name!='m_ro_promptCacheMode') and (@name!='m_ro_outputLocale')]"/>
- </out:if>
-
- <out:if test="key('env-param','override_default_options')='true' or key('env-param','override_outputFormat_option')='true' or key('env-param','override_default_parameters')='true' or key('env-param','m_ro_promptCacheMode')">
- <xts:append>
- <xsl:attribute name="select">
- <xsl:text>/root/steps/*/*/*[local-name() = 'displaySequence' and string()='{$current-step}']/..</xsl:text>
- </xsl:attribute>
- <out:if test="key('env-param','override_default_options')='true' or key('env-param','override_outputFormat_option')='true' or key('env-param','m_ro_promptCacheMode')">
- <xts:transform src="transforms/portal/options/buildOptions.xslt" processor="XSLT">
- <root>
- <xts:transform src="transforms/portal/options/buildOptionItems.xslt" processor="XSLT">
- <root>
- <xts:queryNode select="/root/env"/>
- <xts:transform name="XML" src="portal/options.xml"/>
- <contentLocale><out:value-of select="$contentLocale"/></contentLocale>
- <out:choose>
- <out:when test="key('env-param','step_class')='contentTask'">
- <optionType>contentTaskOptions</optionType>
- </out:when>
- <out:when test="key('env-param','step_class')='importDeployment'">
- <optionType>deploymentOptions</optionType>
- </out:when>
- <out:when test="key('env-param','step_class')='indexUpdateTask'">
- <optionType>indexOptions</optionType>
- </out:when>
- <out:otherwise>
- <out:if test="key('env-param','deliveryOptions') != ''">
- <deliveryOptions>
- <out:value-of select="xtsext:web64decode( xtsext:cafaction('sign_unwrap', string( key('env-param','deliveryOptions') )), true() )" disable-output-escaping="yes"/>
- </deliveryOptions>
- </out:if>
- <out:if test="key('env-param','mobileOptions') != ''">
- <mobileOptions>
- <out:value-of select="xtsext:web64decode( xtsext:cafaction('sign_unwrap', string( key('env-param','mobileOptions') )), true() )" disable-output-escaping="yes"/>
- </mobileOptions>
- </out:if>
- <out:choose>
- <out:when test="contains(' powerPlay8Report powerPlay8ReportView ', concat(' ', key('env-param', 'step_class'), ' '))">
- <optionType>powerPlay8Options</optionType>
- </out:when>
- <out:otherwise>
- <optionType>runOptions</optionType>
- </out:otherwise>
- </out:choose>
- <optionType>pdfOptions</optionType>
- <out:if test="key('env-param','override_default_options')='true' or key('env-param','override_outputFormat_option')='true'">
- <optionType>genericOptions</optionType>
- </out:if>
- <optionType>archiveOptions</optionType>
- </out:otherwise>
- </out:choose>
- <out:if test="not(key('env-param','override_default_options') or key('env-param','override_outputFormat_option')='true') and key('env-param','m_ro_promptCacheMode')='none'">
- <genDefaults>false</genDefaults>
- </out:if>
- <batchOptions>true</batchOptions>
- <jobDefaultSaveOutputOption><out:value-of select="/root/jobOptions/options/value/item[name='saveOutput']/value"/></jobDefaultSaveOutputOption>
- </root>
- </xts:transform>
- </root>
- </xts:transform>
- </out:if>
-
- <out:if test="((key('env-param','m_ro_promptCacheMode')='none' or not(key('env-param','m_ro_promptCacheMode'))) and (key('env-param','override_default_parameters')='true' or key('env-param','m_rp_parameters') ) and key('env-param','m_rp_parameters')!='')">
- <out:value-of select="xtsext:web64decode( string(key('env-param','m_rp_parameters')), true() )" disable-output-escaping="yes"/>
- </out:if>
-
- <xsl:call-template name="dt:buildUIHelper">
- <xsl:with-param name="default" select="'false()'"/>
- <xsl:with-param name="jobDefinition" select="'false()'"/>
- <xsl:with-param name="parameters" select="'key("env-param","override_default_parameters")="true"'"/>
- </xsl:call-template>
-
- <out:if test="count(/root/steps//cm:jobStepDefinition[cm:displaySequence=$current-step][x:added]) = 0 and count(/root/steps//cm:jobStepDefinition[cm:displaySequence=$current-step][x:updated]) = 0">
- <x:updated/>
- </out:if>
- </xts:append>
- </out:if>
-
- <!-- delete the web64 blob for job steps. This will make sure that it get repopulated -->
- <xts:delete select="/root/env/param[@name = 'jobSteps']"/>
- </out:when>
- </out:choose>
-
- <!-- done with the params returned from the step options or job options, so replace the env -->
- <out:if test="key('env-param','jobDefinitionEnv') != ''">
- <xts:delete select="/root/env/param[not(starts-with(@name, 'stack_') or @name = 'ps_nav_source' or @name = 'ps_nav_stack' or @name = 'm' or @name = 'ps_nav_op')]"/>
- <xts:append select="/root/env">
- <out:value-of select="xtsext:web64decode( xtsext:cafaction('sign_unwrap', string( key('env-param','jobDefinitionEnv') )), true() )" disable-output-escaping="yes"/>
- </xts:append>
- </out:if>
- </out:when>
- <out:otherwise>
- <!-- done with the params returned from the step options or job options, so replace the env -->
- <out:if test="key('env-param','jobDefinitionEnv') != ''">
- <xts:replace select="/root/env">
- <out:value-of select="xtsext:web64decode( xtsext:cafaction('sign_unwrap', string( key('env-param','jobDefinitionEnv') )), true() )" disable-output-escaping="yes"/>
- </xts:replace>
- </out:if>
- </out:otherwise>
- </out:choose>
- </xts:sequence>
- </out:template>
- </xsl:template>
- <!--
- dt:generateUIHelpersFromOptions
- generates the summary information using options from CM
- -->
- <xsl:template match="dt:generateUIHelpersFromOptions" name="dt:generateUIHelpersFromOptions">
- <out:template name="dt:generateUIHelpersFromOptions">
- <out:param name="queryReplyPath"/>
- <out:param name="saveAsPath"/> <!-- used to generate the default saveAs when dealing with scheduled reports -->
- <out:param name="deliveryInfo"/>
- <out:param name="deliveryReplyPosition" select="1"/>
- <out:param name="appendPath"/>
- <out:param name="currentReply" select="1"/>
- <out:param name="steps"/>
- <out:param name="genParams" select="false()"/>
-
- <out:variable name="optionItems" select="$queryReplyPath[position()=$currentReply]/*[local-name()='options']/*[local-name()='value']/*"/>
- <out:variable name="emailRecipientOptionItems" select="$queryReplyPath[position()=$currentReply]/*[local-name()='options']/*[local-name()='value']/*[contains(@*[local-name()='type'],'bus:deliveryOptionSearchPathMultipleObjectArray')]"/>
- <out:variable name="mobileRecipientOptionItems" select="$queryReplyPath[position()=$currentReply]/*[local-name()='options']/*[local-name()='value']/*[contains(@*[local-name()='type'],'bus:mobileOptionSearchPathMultipleObjectArray')]"/>
- <out:variable name="email" select="$optionItems[./*[local-name()='name']='email']/*[local-name()='value'] = 'true'"/>
- <out:variable name="mobile" select="$optionItems[./*[local-name()='name']='mobile']/*[local-name()='value'] = 'true'"/>
- <out:variable name="a11y" select="$optionItems[./*[local-name()='name']='http://developer.cognos.com/ceba/constants/systemOptionEnum#accessibilityFeatures']/*[local-name()='value']='true'"/>
- <!-- deliveryOptions recipients -->
- <out:variable name="typedRecipients" select="$optionItems[./*[local-name()='name' and (.='toAddress' or .='ccAddress' or .='bccAddress')]]/*[local-name()='value']/*"/>
- <out:variable name="typedRecipientsCount" select="count($typedRecipients)"/>
- <out:variable name="selectedRecipients" select="$emailRecipientOptionItems[./*[local-name()='name' and (.='to' or .='cc' or .='bcc')]]/*[local-name()='value']/*"/>
- <out:variable name="selectedRecipientsCount" select="count($selectedRecipients)"/>
- <!-- mobileOptions recipients -->
- <out:variable name="mobileRecipients" select="$mobileRecipientOptionItems[./*[local-name()='name' and (.='to')]]/*[local-name()='value']/*"/>
- <out:variable name="mobileRecipientsCount" select="count($mobileRecipients)"/>
- <!-- runOptions recipients, Baltic way of storing email recipients -->
- <out:variable name="old_typedRecipients" select="$optionItems[./*[local-name()='name' and .='emailToAddress']]/*[local-name()='value']/*"/>
- <out:variable name="old_typedRecipientsCount" select="count($old_typedRecipients)"/>
- <out:variable name="old_selectedRecipients" select="$optionItems[./*[local-name()='name' and .='emailTo']]/*[local-name()='value']/*"/>
- <out:variable name="old_selectedRecipientsCount" select="count($old_selectedRecipients)"/>
- <out:variable name="recipientCount">
- <out:choose>
- <out:when test="($typedRecipientsCount + $selectedRecipientsCount) = 0">
- <out:value-of select="$old_typedRecipientsCount + $old_selectedRecipientsCount"/>
- </out:when>
- <out:otherwise>
- <out:value-of select="$typedRecipientsCount + $selectedRecipientsCount"/>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <!--
- find out if we had to query for the email recipient for this step. Set a value of 0 or 1 so it can be added to the
- current reply count used to keep track of what query we're looking at.
- -->
- <out:variable name="queriedEmail">
- <out:choose>
- <!-- if we only have 1 recipient and it's a reference to another object -->
- <out:when test="$typedRecipientsCount = 0 and $selectedRecipientsCount = 1">
- <xsl:value-of select="1"/>
- </out:when>
- <out:when test="$typedRecipientsCount = 0 and $selectedRecipientsCount = 0 and $old_typedRecipientsCount = 0 and $old_selectedRecipientsCount = 1">
- <xsl:value-of select="1"/>
- </out:when>
- <out:otherwise>
- <xsl:value-of select="0"/>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <!--
- find out if we had to query for the printer name for this step. Set a value of 0 or 1 so it can be added to the
- current reply count used to keep track of what query we're looking at.
- -->
- <out:variable name="queriedPrinter">
- <out:choose>
- <out:when test="$optionItems[./*[local-name()='name']='print']/*[local-name()='value'] = 'true' and $optionItems[./*[local-name()='name']='printer']/*[local-name()='value'] != ''">
- <xsl:value-of select="1"/>
- </out:when>
- <out:otherwise>
- <xsl:value-of select="0"/>
- </out:otherwise>
- </out:choose>
- </out:variable>
-
- <!--
- find out if we had to query for the saveAs information for this step. Set a value of 0 or 1 so it can be added to the
- current reply count used to keep track of what query we're looking at.
- -->
- <out:variable name="queriedSaveAs">
- <out:choose>
- <out:when test="$optionItems[./*[local-name()='name']='saveAs']/*[local-name()='parentSearchPath'] != ''">
- <xsl:value-of select="1"/>
- </out:when>
- <out:otherwise>
- <xsl:value-of select="0"/>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="newPath">
- <out:value-of select="$appendPath"/>[<out:value-of select="$currentReply"/>]
- </out:variable>
- <out:variable name="hasRecipients">
- <out:choose>
- <out:when test="$recipientCount='0'">false</out:when>
- <out:otherwise>true</out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="hasMobileRecipients">
- <out:choose>
- <out:when test="$mobileRecipientsCount='0'">false</out:when>
- <out:otherwise>true</out:otherwise>
- </out:choose>
- </out:variable>
-
- <out:variable name="emailSummary">
- <xsl:call-template name="dt:generateEmailSummary">
- <xsl:with-param name="jobDefinition" select="'$queryReplyPath[position()=$currentReply]/*[local-name()="objectClass"]="jobDefinition"'"/>
- <xsl:with-param name="emailAsAttachment" select="'$optionItems[./*[local-name()="name"]="emailAsAttachment"]/*[local-name()="value"]="true"'"/>
- <xsl:with-param name="emailAsURL" select="'$optionItems[./*[local-name()="name"]="emailAsURL"]/*[local-name()="value"]="true"'"/>
- </xsl:call-template>
- </out:variable>
-
- <out:variable name="mobileSummary">
- <xsl:call-template name="dt:generateMobileSummary">
- <xsl:with-param name="jobDefinition" select="'$queryReplyPath[position()=$currentReply]/*[local-name()="objectClass"]="jobDefinition"'"/>
- </xsl:call-template>
- </out:variable>
- <out:variable name="printerSummary">
- <out:choose>
- <out:when test="$queriedPrinter = '1' and $deliveryInfo != ''">
- <out:value-of select="$deliveryInfo/*[local-name()='queryReply' and position() = ($deliveryReplyPosition + $queriedEmail)]/*/*[local-name()='defaultName']"/>
- </out:when>
- <out:when test="$optionItems[./*[local-name()='name']='print']/*[local-name()='value'] = 'true' and $optionItems[./*[local-name()='name']='printerAddress']/*[local-name()='value'] != ''">
- <out:value-of select="$optionItems[./*[local-name()='name']='printerAddress']/*[local-name()='value']"/>
- </out:when>
- </out:choose>
- </out:variable>
- <!-- get the PDF option summary -->
- <out:variable name="PDFOptionSummary">
- <xsl:call-template name="dt:buildPDFOptionSummary">
- <xsl:with-param name="orientation" select="'$optionItems[./*[local-name()="name"]="outputPageOrientation"]/*[local-name()="value"]'"/>
- <xsl:with-param name="paperSize" select="'$optionItems[./*[local-name()="name"]="outputPageDefinition"]/*[local-name()="value"]'"/>
- <xsl:with-param name="userPassword" select="'$optionItems[./*[local-name()="name"]="userPassword"]/*[local-name()="value"]'"/>
- <xsl:with-param name="ownerPassword" select="'$optionItems[./*[local-name()="name"]="ownerPassword"]/*[local-name()="value"]'"/>
- </xsl:call-template>
- </out:variable>
-
- <out:variable name="formatSummary">
- <xsl:call-template name="dt:buildFormatSummary">
- <xsl:with-param name="formats" select="'$optionItems[./*[local-name()="name"]="outputFormat"]/*[local-name()="value"]/*'"/>
- <xsl:with-param name="PDFSummary" select="'$PDFOptionSummary'"/>
- <xsl:with-param name="htmlSelected" select="'true()'"/>
- <xsl:with-param name="XLSSelected" select="'true()'"/>
- <xsl:with-param name="enableSelection" select="'$optionItems[./*[local-name()="name"]="selectionBasedFeatures"]/*[local-name()="value"]'"/>
- <xsl:with-param name="verticalElements" select="'$optionItems[./*[local-name()="name"]="verticalElements"]/*[local-name()="value"]'"/>
- </xsl:call-template>
- </out:variable>
-
- <out:variable name="burstSummary">
- <xsl:call-template name="dt:buildBurstSummary">
- <xsl:with-param name="burstDistribution" select="'$optionItems[./*[local-name()="name"]="burstDistribution"]/*[local-name()="value"]'"/>
- <xsl:with-param name="burstQueryPrefetch" select="'$optionItems[./*[local-name()="name"]="burstQueryPrefetch"]/*[local-name()="value"]'"/>
- <xsl:with-param name="burstKeyLimit" select="'$optionItems[./*[local-name()="name"]="burstKeyLimit"]/*[local-name()="value"]'"/>
- </xsl:call-template>
- </out:variable>
- <out:variable name="a11ySummary">
- <out:if test="$a11y">
- <xts:string id="IDS_PROP_RUN_A11Y_SUPPORT"/>
- </out:if>
- </out:variable>
-
- <out:variable name="archiveOptionSummary">
- <xsl:call-template name="dt:buildArchiveOptionSummary">
- <xsl:with-param name="name" select="'$optionItems[./*[local-name()="name"]="filenameStub"]/*[local-name()="value"]'"/>
- <xsl:with-param name="location" select="'$optionItems[./*[local-name()="name"]="archiveLocation"]/*[local-name()="value"]'"/>
- <xsl:with-param name="conflict" select="'$optionItems[./*[local-name()="name"]="conflictResolution"]/*[local-name()="value"]'"/>
- </xsl:call-template>
- </out:variable>
-
- <xts:append select="{'{$newPath}'}">
- <out:choose>
- <out:when test="not($genParams)">
- <xsl:element name="UIHelpers">
- <xsl:element name="emailRecipients">
- <xsl:call-template name="dt:generateEmailRecipientSummary"/>
- </xsl:element>
- <xsl:element name="emailRecipientsCount"><out:value-of select="$recipientCount"/></xsl:element>
- <xsl:element name="hasRecipients"><out:value-of select="$hasRecipients"/></xsl:element>
- <xsl:element name="emailSummary"><out:value-of select="$emailSummary"/></xsl:element>
- <xsl:element name="mobileRecipients">
- <xsl:call-template name="dt:generateMobileRecipientSummary"/>
- </xsl:element>
- <xsl:element name="mobileRecipientsCount"><out:value-of select="$mobileRecipientsCount"/></xsl:element>
- <xsl:element name="hasMobileRecipients"><out:value-of select="$hasMobileRecipients"/></xsl:element>
- <xsl:element name="mobileSummary"><out:value-of select="$mobileSummary"/></xsl:element>
- <xsl:element name="printerSummary"><out:value-of select="$printerSummary"/></xsl:element>
- <xsl:element name="saveAsSummary"><xsl:call-template name="dt:saveAsSummary"/></xsl:element>
- <xsl:element name="formatSummary"><out:value-of select="$formatSummary"/></xsl:element>
- <xsl:element name="burstSummary"><out:value-of select="$burstSummary"/></xsl:element>
- <xsl:element name="a11ySummary"><out:value-of select="$a11ySummary"/></xsl:element>
- <out:if test="$archiveOptionSummary != ''">
- <xsl:element name="saveToFileSystemSummary">
- <xts:string id="IDS_OTHERRUN_SAVE_FILE_SYSTEM"/>
- <xsl:text> (</xsl:text>
- <out:value-of select="$archiveOptionSummary"/>
- <xsl:text>)</xsl:text>
- </xsl:element>
- </out:if>
- <xsl:call-template name="dt:promptSummaryText">
- <xsl:with-param name="parameterPath" select="'$queryReplyPath[position()=$currentReply]/*[local-name()="parameters"]'"/>
- </xsl:call-template>
-
- <xsl:element name="parameterDescription"><out:value-of select="$visibleDescription"/></xsl:element>
- <out:if test="string-length($description) > 45">
- <xsl:element name="parameterDescriptionToLong">true</xsl:element>
- </out:if>
- </xsl:element>
- </out:when>
- <out:otherwise>
- <xsl:element name="param">
- <xsl:attribute name="name">emailDescription</xsl:attribute>
- <xsl:call-template name="dt:generateEmailRecipientSummary"/>
- </xsl:element>
- <xsl:element name="param">
- <xsl:attribute name="name">emailRecipientsCount</xsl:attribute>
- <out:value-of select="$recipientCount"/>
- </xsl:element>
- <xsl:element name="param">
- <xsl:attribute name="name">hasRecipients</xsl:attribute>
- <out:value-of select="$hasRecipients"/>
- </xsl:element>
- <xsl:element name="param">
- <xsl:attribute name="name">emailSummary</xsl:attribute>
- <out:value-of select="$emailSummary"/>
- </xsl:element>
- <xsl:element name="param">
- <xsl:attribute name="name">mobileDescription</xsl:attribute>
- <xsl:call-template name="dt:generateMobileRecipientSummary"/>
- </xsl:element>
- <xsl:element name="param">
- <xsl:attribute name="name">mobileRecipientsCount</xsl:attribute>
- <out:value-of select="$mobileRecipientsCount"/>
- </xsl:element>
- <xsl:element name="param">
- <xsl:attribute name="name">hasMobileRecipients</xsl:attribute>
- <out:value-of select="$hasMobileRecipients"/>
- </xsl:element>
- <xsl:element name="param">
- <xsl:attribute name="name">mobileSummary</xsl:attribute>
- <out:value-of select="$mobileSummary"/>
- </xsl:element>
- <xsl:element name="param">
- <xsl:attribute name="name">printerSummary</xsl:attribute>
- <out:value-of select="$printerSummary"/>
- </xsl:element>
- <xsl:element name="param">
- <xsl:attribute name="name">saveAsPathText</xsl:attribute>
- <xsl:call-template name="dt:saveAsSummary"/>
- </xsl:element>
- <xsl:element name="param">
- <xsl:attribute name="name">formatSummary</xsl:attribute>
- <out:value-of select="$formatSummary"/>
- </xsl:element>
- <xsl:element name="param">
- <xsl:attribute name="name">burstSummary</xsl:attribute>
- <out:value-of select="$burstSummary"/>
- </xsl:element>
- <xsl:element name="param">
- <xsl:attribute name="name">a11ySummary</xsl:attribute>
- <out:value-of select="$a11ySummary"/>
- </xsl:element>
- <xsl:element name="param">
- <xsl:attribute name="name">saveToFileSystemSummary</xsl:attribute>
- <xts:string id="IDS_OTHERRUN_SAVE_FILE_SYSTEM"/>
- <xsl:text> (</xsl:text>
- <out:value-of select="$archiveOptionSummary"/>
- <xsl:text>)</xsl:text>
- </xsl:element>
- </out:otherwise>
- </out:choose>
- </xts:append>
- <out:if test="$steps and ($currentReply < count($steps))">
- <out:call-template name="dt:generateUIHelpersFromOptions">
- <out:with-param name="deliveryReplyPosition" select="$deliveryReplyPosition + $queriedEmail + $queriedSaveAs + $queriedPrinter"/>
- <out:with-param name="queryReplyPath" select="$queryReplyPath"/>
- <out:with-param name="saveAsPath" select="$saveAsPath"/>
- <out:with-param name="deliveryInfo" select="$deliveryInfo"/>
- <out:with-param name="appendPath" select="$appendPath"/>
- <out:with-param name="currentReply" select="$currentReply + 1"/>
- <out:with-param name="steps" select="$steps"/>
- <out:with-param name="genParams" select="$genParams"/>
- </out:call-template>
- </out:if>
- </out:template>
- </xsl:template>
- <xsl:template name="dt:saveAsSummary">
- <out:if test="not($queryReplyPath[position()=$currentReply]/*[local-name()='objectClass'] = 'jobDefinition')">
- <out:choose>
- <out:when test="$queriedSaveAs = '1'">
- <out:if test="$deliveryInfo != ''">
- <!-- Determine if the current path points to the personal folder space (We need a session element to make this determination) -->
- <out:variable name="path" select="$optionItems[./*[local-name()='name']='saveAs']/*[local-name()='parentSearchPath']"/>
- <!-- For personal folder destinations, render the path starting at the directory/namespace/account/folder ancestor. -->
- <out:variable name="rootPath">
- <out:choose>
- <out:when test="starts-with($path,'~') or starts-with($path,key('session-param', 'e_hp'))"><out:value-of select="'~/folder'"/></out:when>
- <out:otherwise><out:value-of select="$defaultContentRoot"/></out:otherwise>
- </out:choose>
- </out:variable>
-
- <cf:do-the-path-link>
- <cf:param name="familytree">$deliveryInfo/*[local-name()='queryReply' and position() = ($deliveryReplyPosition + $queriedEmail + $queriedPrinter)]/*/*[local-name()='ancestors']</cf:param>
- <cf:param name="familymember">$deliveryInfo/*[local-name()='queryReply' and position() = ($deliveryReplyPosition + $queriedEmail + $queriedPrinter)]/*/*[local-name()='defaultName']</cf:param>
- <cf:param name="home"><out:value-of select="$rootPath"/></cf:param>
- </cf:do-the-path-link>
- </out:if>
- </out:when>
- <!-- dealing with step objects and we don't have a saveAs options, so use the defaults for the summary -->
- <out:when test="$queryReplyPath[position()=$currentReply]/*[local-name()='stepObject']">
- <!-- Determine if the current path points to the personal folder space (We need a session element to make this determination) -->
- <out:variable name="path" select="$queryReplyPath[position()=$currentReply]/*[local-name()='stepObject']/*/*[local-name()='searchPath']"/>
- <!-- For personal folder destinations, render the path starting at the directory/namespace/account/folder ancestor. -->
- <out:variable name="rootPath">
- <out:choose>
- <out:when test="starts-with($path,'~') or starts-with($path,key('session-param', 'e_hp'))"><out:value-of select="'~/folder'"/></out:when>
- <out:otherwise><out:value-of select="$defaultContentRoot"/></out:otherwise>
- </out:choose>
- </out:variable>
- <cf:do-the-path-link>
- <cf:param name="familytree">$queryReplyPath[position()=$currentReply]/*[local-name()='stepObject']/*/*[local-name()='ancestors']</cf:param>
- <cf:param name="familymember">$queryReplyPath[position()=$currentReply]/*[local-name()='stepObject']/*/*[local-name()='defaultName']</cf:param>
- <cf:param name="home"><out:value-of select="$defaultContentRoot"/></cf:param>
- <cf:param name="onlyAncestors">true</cf:param>
- </cf:do-the-path-link>
- </out:when>
- <!-- don't have a saveAs options, so use the defaults for the summary -->
- <out:when test="$saveAsPath != ''">
- <!-- Determine if the current path points to the personal folder space (We need a session element to make this determination) -->
- <out:variable name="path" select="$saveAsPath/*[local-name()='searchPath']"/>
- <!-- For personal folder destinations, render the path starting at the directory/namespace/account/folder ancestor. -->
- <out:variable name="rootPath">
- <out:choose>
- <out:when test="starts-with($path,'~') or starts-with($path,key('session-param', 'e_hp'))"><out:value-of select="'~/folder'"/></out:when>
- <out:otherwise><out:value-of select="$defaultContentRoot"/></out:otherwise>
- </out:choose>
- </out:variable>
- <cf:do-the-path-link>
- <cf:param name="familytree">$saveAsPath/*[local-name()='ancestors']</cf:param>
- <cf:param name="familymember">$saveAsPath/*[local-name()='defaultName']</cf:param>
- <cf:param name="home"><out:value-of select="$defaultContentRoot"/></cf:param>
- <cf:param name="onlyAncestors">true</cf:param>
- </cf:do-the-path-link>
- </out:when>
- </out:choose>
- </out:if>
- </xsl:template>
- <xsl:template name="dt:generateEmailRecipientSummary">
- <out:choose>
- <!-- recipient count of 0 -->
- <out:when test="$recipientCount='0'">
- <xts:string id ="IDS_OTHERRUN_EMAIL_NO_RECIPIENTS"/>
- </out:when>
- <!-- more then 1 recipient -->
- <out:when test="$recipientCount > 1">
- <xts:string id="IDS_OTHERRUN_EMAIL_RECIPIENT_COUNT">
- <xts:param name="numPeople">
- <out:value-of select="$recipientCount"/>
- </xts:param>
- </xts:string>
- </out:when>
- <!-- only one recipient -->
- <out:otherwise>
- <out:choose>
- <!-- if the recipient email was typed in -->
- <out:when test="$typedRecipientsCount = '1'">
- <out:value-of select="$typedRecipients"/>
- </out:when>
- <out:otherwise>
- <xts:transform src="transforms/portal/emailOptions/generateRecipientsSummary.xslt" processor="XSLT">
- <xts:param name="messageBase">/messages/portal.xml</xts:param>
- <xts:param name="messageBase">/messages/portalRL.xml</xts:param>
- <root>
- <queryResponse>
- <out:if test="$deliveryInfo!=''">
- <out:copy-of select="$deliveryInfo/*[local-name()='queryReply' and position() = $deliveryReplyPosition]"/>
- </out:if>
- </queryResponse>
- <asParam>false</asParam>
- </root>
- </xts:transform>
- </out:otherwise>
- </out:choose>
- </out:otherwise>
- </out:choose>
- </xsl:template>
- <xsl:template name="dt:generateMobileRecipientSummary">
- <out:choose>
- <!-- recipient count of 0 -->
- <out:when test="$mobileRecipientsCount='0'">
- <xts:string id ="IDS_OTHERRUN_MOBILE_NO_RECIPIENTS"/>
- </out:when>
- <!-- more then 1 recipient -->
- <out:when test="$mobileRecipientsCount > 0">
- <xts:string id="IDS_OTHERRUN_MOBILE_RECIPIENT_COUNT">
- <xts:param name="numPeople">
- <out:value-of select="$mobileRecipientsCount"/>
- </xts:param>
- </xts:string>
- </out:when>
- </out:choose>
- </xsl:template>
- <!--
- dt:generateEmailSummary generates the appropriate email summary
- -->
- <xsl:template name="dt:generateEmailSummary" match="dt:generateEmailSummary">
- <xsl:param name="jobDefinition" select="false()"/>
- <xsl:param name="emailAsAttachment" select="false()"/>
- <xsl:param name="emailAsURL" select="false()"/>
- <out:variable name="genEmailSum_jobDefinition">
- <xsl:choose>
- <xsl:when test="@jobDefinition"><out:value-of select="{@jobDefinition}"/></xsl:when>
- <xsl:otherwise><out:value-of select="{$jobDefinition}"/></xsl:otherwise>
- </xsl:choose>
- </out:variable>
- <out:variable name="genEmailSum_emailAsAttachment">
- <xsl:choose>
- <xsl:when test="@emailAsAttachment"><out:value-of select="{@emailAsAttachment}"/></xsl:when>
- <xsl:otherwise><out:value-of select="{$emailAsAttachment}"/></xsl:otherwise>
- </xsl:choose>
- </out:variable>
- <out:variable name="genEmailSum_emailAsURL">
- <xsl:choose>
- <xsl:when test="@emailAsURL"><out:value-of select="{@emailAsURL}"/></xsl:when>
- <xsl:otherwise><out:value-of select="{$emailAsURL}"/></xsl:otherwise>
- </xsl:choose>
- </out:variable>
- <out:choose>
- <out:when test="$genEmailSum_jobDefinition = 'true' or (key('env-param','genJobDefinitionSummary') ='true')">
- <out:choose>
- <out:when test="$genEmailSum_emailAsAttachment = 'false' and $genEmailSum_emailAsURL = 'false'">
- <xts:string id="IDS_OTHERRUN_DELIVERY_NOTIFY_MULTIPLE_REPORTS"/>
- </out:when>
- <out:when test="$genEmailSum_emailAsAttachment = 'true' and $genEmailSum_emailAsURL = 'false'">
- <xts:string id="IDS_OTHERRUN_DELIVERY_REPORTS"/>
- </out:when>
- <out:when test="$genEmailSum_emailAsAttachment = 'false' and $genEmailSum_emailAsURL = 'true'">
- <xts:string id="IDS_OTHERRUN_DELIVERY_URLS"/>
- </out:when>
- <out:otherwise>
- <xts:string id="IDS_OTHERRUN_DELIVERY_BOTH_MULTIPLE_REPORTS"/>
- </out:otherwise>
- </out:choose>
- </out:when>
- <out:otherwise>
- <out:choose>
- <out:when test="$genEmailSum_emailAsAttachment ='false' and $genEmailSum_emailAsURL = 'false'">
- <xts:string id="IDS_OTHERRUN_DELIVERY_NOTIFY"/>
- </out:when>
- <out:when test="$genEmailSum_emailAsAttachment = 'true' and $genEmailSum_emailAsURL ='false'">
- <xts:string id="IDS_OTHERRUN_DELIVERY_REPORT"/>
- </out:when>
- <out:when test="$genEmailSum_emailAsAttachment = 'false' and $genEmailSum_emailAsURL = 'true'">
- <xts:string id="IDS_OTHERRUN_DELIVERY_URL"/>
- </out:when>
- <out:otherwise>
- <xts:string id="IDS_OTHERRUN_DELIVERY_BOTH"/>
- </out:otherwise>
- </out:choose>
- </out:otherwise>
- </out:choose>
- </xsl:template>
- <!--
- dt:generateMobileSummary - generates the appropriate mobile summary
- -->
- <xsl:template name="dt:generateMobileSummary" match="dt:generateMobileSummary">
- <xsl:param name="jobDefinition" select="false()"/>
- <out:variable name="genMobileSum_jobDefinition">
- <xsl:choose>
- <xsl:when test="@jobDefinition"><out:value-of select="{@jobDefinition}"/></xsl:when>
- <xsl:otherwise><out:value-of select="{$jobDefinition}"/></xsl:otherwise>
- </xsl:choose>
- </out:variable>
- <out:choose>
- <out:when test="$genMobileSum_jobDefinition = 'true' or (key('env-param','genJobDefinitionSummary') ='true')">
- <xts:string id="IDS_OTHERRUN_DELIVERY_MOBILE_REPORTS"/>
- </out:when>
- <out:otherwise>
- <xts:string id="IDS_OTHERRUN_DELIVERY_MOBILE_REPORT"/>
- </out:otherwise>
- </out:choose>
- </xsl:template>
- <xsl:template name="dt:buildBurstSummary">
- <xsl:param name="burstDistribution" />
- <xsl:param name="burstQueryPrefetch" />
- <xsl:param name="burstKeyLimit" />
- <out:choose>
- <out:when test="string({$burstDistribution}) = 'enabled'">
- <xts:string id="IDS_OTHERRUN_BURST_DISTRIBUTED_ENABLED"/>
- </out:when>
- <out:when test="string({$burstDistribution}) = 'disabled'">
- <xts:string id="IDS_OTHERRUN_BURST_DISTRIBUTED_DISABLED"/>
- </out:when>
- <out:otherwise>
- <xts:string id="IDS_OTHERRUN_BURST_DISTRIBUTED_DEFAULT"/>
- </out:otherwise>
- </out:choose>
- <xts:string id="IDS_LIST_SEPARATOR"/><xsl:value-of select="' '"/>
- <out:choose>
- <out:when test="string({$burstQueryPrefetch}) = 'enabled'">
- <xts:string id="IDS_OTHERRUN_BURST_QUERY_PREFETCH_ENABLED"/>
- </out:when>
- <out:when test="string({$burstQueryPrefetch}) = 'disabled'">
- <xts:string id="IDS_OTHERRUN_BURST_QUERY_PREFETCH_DISABLED"/>
- </out:when>
- <out:otherwise>
- <xts:string id="IDS_OTHERRUN_BURST_QUERY_PREFETCH_DEFAULT"/>
- </out:otherwise>
- </out:choose>
- <xts:string id="IDS_LIST_SEPARATOR"/><xsl:value-of select="' '"/>
- <out:choose>
- <out:when test="string({$burstKeyLimit}) = ''">
- <xts:string id="IDS_OTHERRUN_BURST_QUERY_MAX_KEYS_DEFAULT"/>
- </out:when>
- <out:when test="string({$burstKeyLimit}) = '0'">
- <xts:string id="IDS_OTHERRUN_BURST_QUERY_MAX_KEYS_UNLIMITED"/>
- </out:when>
- <out:otherwise>
- <xts:string id="IDS_OTHERRUN_BURST_QUERY_MAX_KEYS_VALUE">
- <xts:param name="numKeys"><out:value-of select="{$burstKeyLimit}"/></xts:param>
- </xts:string>
- </out:otherwise>
- </out:choose>
- </xsl:template>
- <!--
- dt:buildUIHelper
- -->
- <xsl:template name="dt:buildUIHelper" match="dt:buildUIHelper">
- <xsl:param name="default" select="'false()'"/>
- <xsl:param name="jobDefinition" select="'false()'"/>
- <xsl:param name="parameters" select="'false()'"/>
- <xsl:element name="UIHelpers">
- <!-- keep track of the summaries -->
- <xsl:element name="emailSummary">
- <out:choose>
- <out:when test="{$default} or key('env-param','emailSummary')='' or not(key('env-param','m_ro_email') = 'true')"><xts:string id="IDS_OTHERRUN_DELIVERY_NOTIFY"/></out:when>
- <out:otherwise><out:value-of select="key('env-param','emailSummary')"/></out:otherwise>
- </out:choose>
- </xsl:element>
- <xsl:element name="emailRecipients">
- <out:choose>
- <out:when test="{$default} or key('env-param','emailDescription')='' or not(key('env-param','m_ro_email') = 'true') or (key('env-param','m_ro_burst')='true' and not(key('env-param','run_options_visited')))"><xts:string id="IDS_OTHERRUN_EMAIL_NO_RECIPIENTS"/></out:when>
- <out:otherwise><out:value-of select="key('env-param','emailDescription')"/></out:otherwise>
- </out:choose>
- </xsl:element>
- <out:if test="not({$default} or key('env-param','emailRecipientsCount')='' or not(key('env-param','m_ro_email') = 'true') or (key('env-param','m_ro_burst')='true' and not(key('env-param','run_options_visited'))))">
- <xsl:element name="emailRecipientsCount">
- <out:value-of select="key('env-param','emailRecipientsCount')"/>
- </xsl:element>
- </out:if>
- <xsl:element name="hasRecipients">
- <out:choose>
- <out:when test="{$default} or key('env-param','hasRecipients')='' or not(key('env-param','hasRecipients') = 'true') or (key('env-param','m_ro_burst')='true' and not(key('env-param','run_options_visited')))">false</out:when>
- <out:otherwise>true</out:otherwise>
- </out:choose>
- </xsl:element>
- <xsl:element name="mobileSummary">
- <out:choose>
- <out:when test="{$default} or key('env-param','mobileSummary')='' or not(key('env-param','m_ro_mobile') = 'true')"><xts:string id="IDS_OTHERRUN_DELIVERY_NOTIFY"/></out:when>
- <out:otherwise><out:value-of select="key('env-param','mobileSummary')"/></out:otherwise>
- </out:choose>
- </xsl:element>
- <xsl:element name="mobileRecipients">
- <out:choose>
- <out:when test="{$default} or key('env-param','mobileDescription')='' or not(key('env-param','m_ro_mobile') = 'true') or (key('env-param','m_ro_burst')='true' and not(key('env-param','run_options_visited')))"><xts:string id="IDS_OTHERRUN_MOBILE_NO_RECIPIENTS"/></out:when>
- <out:otherwise><out:value-of select="key('env-param','mobileDescription')"/></out:otherwise>
- </out:choose>
- </xsl:element>
- <out:if test="not({$default} or key('env-param','mobileRecipientsCount')='' or not(key('env-param','m_ro_mobile') = 'true') or (key('env-param','m_ro_burst')='true' and not(key('env-param','run_options_visited'))))">
- <xsl:element name="mobileRecipientsCount">
- <out:value-of select="key('env-param','mobileRecipientsCount')"/>
- </xsl:element>
- </out:if>
- <xsl:element name="hasMobileRecipients">
- <out:choose>
- <out:when test="{$default} or key('env-param','hasMobileRecipients')='' or not(key('env-param','hasMobileRecipients') = 'true') or (key('env-param','m_ro_burst')='true' and not(key('env-param','run_options_visited')))">false</out:when>
- <out:otherwise>true</out:otherwise>
- </out:choose>
- </xsl:element>
- <xsl:element name="printerSummary">
- <out:if test="not({$default}) and key('env-param','select_printerAddress')!='' and key('env-param','m_ro_print') = 'true'">
- <out:value-of select="key('env-param','select_printerAddress')"/>
- </out:if>
- </xsl:element>
- <xsl:element name="formatSummary">
- <out:if test="not({$default})">
- <!-- get the PDF option summary -->
- <out:variable name="PDFOptionSummary">
- <xsl:call-template name="dt:buildPDFOptionSummary"/>
- </out:variable>
- <xsl:call-template name="dt:buildFormatSummary">
- <xsl:with-param name="PDFSummary" select="'$PDFOptionSummary'"/>
- </xsl:call-template>
- </out:if>
- </xsl:element>
- <xsl:element name="a11ySummary">
- <out:if test="key('env-param', 'm_go_accessibilityFeatures') = 'true'">
- <xts:string id="IDS_PROP_RUN_A11Y_SUPPORT"/>
- </out:if>
- </xsl:element>
- <out:if test="not({$jobDefinition})">
- <xsl:element name="saveAsSummary">
- <out:if test="key('env-param','save_how')='new_entry' and key('env-param','saveAsPathText')!=''">
- <out:value-of select="key('env-param','saveAsPathText')"/>
- </out:if>
- </xsl:element>
- </out:if>
-
- <out:if test="{$parameters} and not({$default})">
- <xsl:element name="parameterDescriptionToLong"><out:value-of select="key('env-param','parameterDescriptionToLong')"/></xsl:element>
- <xsl:element name="parameterDescription"><out:value-of select="key('env-param','parameterDescription')"/></xsl:element>
- </out:if>
-
- <xsl:element name="saveToFileSystemSummary">
- <out:if test="key('env-param','m_ro_archive') = 'true'">
- <xts:string id="IDS_OTHERRUN_SAVE_FILE_SYSTEM"/>
- <xsl:text> (</xsl:text>
- <xsl:call-template name="dt:buildArchiveOptionSummary"/>
- <xsl:text>)</xsl:text>
- </out:if>
- </xsl:element>
- </xsl:element>
-
- </xsl:template>
- <!--
- Build the archive option summar (name, location, conflixt resolution)
- -->
- <xsl:template name="dt:buildArchiveOptionSummary" match="dt:buildArchiveOptionSummary">
- <xsl:param name="name" select="'key("env-param","m_arc_filenameStub")'"/>
- <xsl:param name="location" select="'key("env-param","m_arc_archiveLocation")'"/>
- <xsl:param name="conflict" select="'key("env-param","m_arc_conflictResolution")'"/>
- <!-- if the location is empty, then don't display a summary -->
- <out:if test="string({$location}) != ''">
- <out:variable name="fileName">
- <out:choose>
- <out:when test="string({$name}) != ''"><out:value-of select="{$name}"/></out:when>
- <out:otherwise><xts:string id="IDS_ARC_DEFAULT_NAME_SUMMARY"/></out:otherwise>
- </out:choose>
- </out:variable>
- <xts:string id="IDS_ARC_NAME_SUMMARY">
- <xts:param name="name"><out:value-of select="$fileName"/></xts:param>
- </xts:string>
- <xsl:text> </xsl:text>
- <!-- location -->
- <out:variable name="locationName">
- <out:choose>
- <out:when test="/root/*[local-name()='queryResponse']/*[local-name()='queryReply']/*[local-name()='archiveLocation']/*[local-name()='searchPath' and . = string({$location})]">
- <out:value-of select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply']/*[local-name()='archiveLocation' and ./*[local-name()='searchPath' and . = string({$location})]]/*[local-name()='defaultName']"/>
- </out:when>
- <out:otherwise><xts:string id="IDS_ARC_LOCATION_UNAVAILABLE_SUMMARY"/></out:otherwise>
- </out:choose>
- </out:variable>
-
- <xts:string id="IDS_ARC_LOCATION_SUMMARY">
- <xts:param name="location"><out:value-of select="$locationName"/></xts:param>
- </xts:string>
-
- <!-- conflict resolution -->
- <xsl:text> </xsl:text>
- <out:choose>
- <out:when test="{$conflict} = 'appendDateTime'">
- <xts:string id="IDS_ARC_APPEND_TIMESTAMP"/>
- </out:when>
- <out:when test="{$conflict} = 'appendSequenceNumber'">
- <xts:string id="IDS_ARC_APPEND_SEQUENCE_NUMBER"/>
- </out:when>
- <out:when test="{$conflict} = 'fail'">
- <xts:string id="IDS_ARC_KEEP_EXISTING_FILES"/>
- </out:when>
- <out:otherwise>
- <xts:string id="IDS_ARC_REPLACE_EXISTING_FILES"/>
- </out:otherwise>
- </out:choose>
- </out:if>
- </xsl:template>
-
- <!--
- Build the PDF summary (orientation, paperSize, userPassword, ownerPassword)
- Note: requires the pageDefinition from CM to be in the DOM under /root/cm:queryResponse/cm:queryReply/cm:pageDefinition
- -->
- <xsl:template name="dt:buildPDFOptionSummary" match="dt:buildPDFOptionSummary">
- <xsl:param name="orientation" select="'key("env-param","m_ro_outputPageOrientation")'"/>
- <xsl:param name="paperSize" select="'key("env-param","m_ro_outputPageDefinition")'"/>
- <xsl:param name="userPassword" select="'key("env-param","m_pdf_userPassword_runOption")'"/>
- <xsl:param name="userPasswordEncrypted" select="'key("env-param","m_pdf_userPassword_runOption_Encrypted")'"/>
- <xsl:param name="preserveUserPasswordField" select="'key("env-param","preserve_pdf_userPwd")'"/>
- <xsl:param name="ownerPassword" select="'key("env-param","m_pdf_ownerPassword_runOption")'"/>
- <xsl:param name="ownerPasswordEncrypted" select="'key("env-param","m_pdf_ownerPassword_runOption_Encrypted")'"/>
- <xsl:param name="preserveOwnerPasswordField" select="'key("env-param","preserve_pdf_ownerPwd")'"/>
- <out:variable name="separator"><xts:string id="IDS_LIST_SEPARATOR"/><xsl:value-of select="' '"/></out:variable>
- <out:variable name="pdfSummary">
- <out:choose>
- <out:when test="{$orientation} = 'portrait'">
- <xts:string id="IDS_OTHERRUN_PORTRAIT"/>
- </out:when>
- <out:when test="{$orientation} = 'landscape'">
- <xts:string id="IDS_OTHERRUN_LANDSCAPE"/>
- </out:when>
- </out:choose>
- <out:if test="{$paperSize} != 'default' and {$paperSize} != ''">
- <out:value-of select="$separator"/>
- <out:variable name="pageDefinitionPath" select="{$paperSize}"/>
- <out:value-of select="/root/cm:queryResponse/cm:queryReply/cm:pageDefinition[cm:searchPath=$pageDefinitionPath]/cm:defaultName"/>
- </out:if>
- <out:if test="{$userPassword} != '' or {$userPasswordEncrypted} != '' or {$preserveUserPasswordField} = 'true'">
- <out:value-of select="$separator"/>
- <xts:string id="IDS_PDF_OPEN_PASSWORD_SUMMARY"/>
- </out:if>
- <out:if test="{$ownerPassword} != '' or {$ownerPasswordEncrypted} != '' or {$preserveOwnerPasswordField} = 'true'">
- <out:value-of select="$separator"/>
- <xts:string id="IDS_PDF_OPTION_PASSWORD_SUMMARY"/>
- </out:if>
- </out:variable>
-
- <!-- Catch the scenario where our string starts with a ',' -->
- <out:choose>
- <out:when test="starts-with($pdfSummary, $separator)">
- <out:value-of select="substring-after($pdfSummary, $separator)"/>
- </out:when>
- <out:otherwise><out:value-of select="$pdfSummary"/></out:otherwise>
- </out:choose>
- </xsl:template>
-
- <!--
- outputFormatSummary
- Logic needed to build the format summary
- -->
- <xsl:template match="dt:buildFormatSummary" name="dt:buildFormatSummary">
- <xsl:param name="formats" select="'/root/env/param[starts-with(@name,"m_ro_outputFormat")]'"/>
- <xsl:param name="PDFSummary" select="''"/>
- <xsl:param name="htmlSelected" select="'(key("env-param","m_ro_outputF_HTML_Type") = "true" or not(key("env-param","changed_m_ro_outputF_HTML_Type")))'"/>
- <xsl:param name="XLSSelected" select="'(key("env-param","m_ro_outputF_XLS2000_Type") = "true" or not(key("env-param","changed_m_ro_outputF_XLS2000_Type")))'"/>
- <xsl:param name="enableSelection" select="'key("env-param","m_ro_selectionBasedFeatures") = "true"'"/>
- <xsl:param name="verticalElements" select="'key("env-param","m_ro_verticalElements")'"/>
- <!-- do not process the node if value is HTML but HTML checkbox is not checked or if the value is XLS but the XLS checbox is not checked -->
- <out:for-each select="set:distinct({$formats}[not((contains(' HTML HTMLFragment XHTML ', concat(' ',.,' ')) and not({$htmlSelected})) or (contains(' XLS singleXLS ', concat(' ',.,' ')) and not({$XLSSelected}))) ])" xmlns:set="http://exslt.org/sets">
- <out:sort select="."/>
- <out:choose>
- <out:when test="{$htmlSelected} and . = 'HTML'">
- <xts:string id="IDS_OTHERRUN_FORMAT_HTML"/>
- <out:if test="{$enableSelection}='true' or {$verticalElements}!=''">
- <xsl:text> (</xsl:text>
- <out:if test="{$verticalElements}!=''">
- <xts:string id="IDS_OTHERRUN_NUMBER_OF_ROWS_HTML_SUMMARY"><xts:param name="rows_number"><out:value-of select="{$verticalElements}"/></xts:param></xts:string>
- </out:if>
- <out:if test="{$enableSelection}='true'">
- <out:if test="{$verticalElements}!=''">
- <xts:string id="IDS_LIST_SEPARATOR"/><xsl:value-of select="' '"/>
- </out:if>
- <xts:string id="IDS_OTHERRUN_ENABLE_INTERACTIVITY"/>
- </out:if>
- <xsl:text>)</xsl:text>
- </out:if>
- </out:when>
- <out:when test="{$htmlSelected} and . = 'HTMLFragment'">
- <xts:string id="IDS_OTHERRUN_FORMAT_HTMLFRAGMENT"/>
- <out:if test="{$verticalElements}!=''">
- <xsl:text> (</xsl:text>
- <xts:string id="IDS_OTHERRUN_NUMBER_OF_ROWS_HTML_SUMMARY"><xts:param name="rows_number"><out:value-of select="{$verticalElements}"/></xts:param></xts:string>
- <xsl:text>)</xsl:text>
- </out:if>
- </out:when>
- <out:when test="{$htmlSelected} and . = 'XHTML'">
- <xts:string id="IDS_OTHERRUN_FORMAT_XHTML"/>
- <out:if test="{$verticalElements}!=''">
- <xsl:text> (</xsl:text>
- <xts:string id="IDS_OTHERRUN_NUMBER_OF_ROWS_HTML_SUMMARY"><xts:param name="rows_number"><out:value-of select="{$verticalElements}"/></xts:param></xts:string>
- <xsl:text>)</xsl:text>
- </out:if>
- </out:when>
- <out:when test=". = 'XML'">
- <xts:string id="IDS_OTHERRUN_FORMAT_XML"/>
- </out:when>
- <out:when test="{$XLSSelected} and . = 'XLS' and $browser != 'safari'">
- <xts:string id="IDS_OTHERRUN_FORMAT_XLS"/>
- </out:when>
- <out:when test="{$XLSSelected} and . = 'singleXLS' and $browser != 'safari'">
- <xts:string id="IDS_OTHERRUN_FORMAT_SINGLE_XLS"/>
- </out:when>
- <out:when test=". = 'XLWA' and $browser != 'safari'">
- <xts:string id="IDS_OTHERRUN_FORMAT_XLS_2002"/>
- </out:when>
- <out:when test=". = 'CSV'">
- <xts:string id="IDS_OTHERRUN_FORMAT_CSV"/>
- </out:when>
- <out:when test=". = 'spreadsheetML'">
- <xts:string id="IDS_OTHERRUN_FORMAT_XLS_2007"/>
- </out:when>
- <out:when test=". = 'xlsxData'">
- <xts:string id="IDS_PROP_FORMAT_XLS_2007_DATA"/>
- </out:when>
- <out:when test=". = 'spreadsheetMLOfficeConnectionEnabled'">
- <xts:string id="IDS_OTHERRUN_FORMAT_XLS_2007_OFFICE_ENABLED"/>
- </out:when>
- <out:when test=". = 'PDF'">
- <xsl:choose>
- <xsl:when test="@PDFSummary != ''">
- <out:choose>
- <out:when test="string({@PDFSummary}) != ''">
- <xts:string id="IDS_OTHERRUN_FORMAT_PDF_WITH_ONE_OPTIONS">
- <xts:param name="option"><out:value-of select="{@PDFSummary}"/></xts:param>
- </xts:string>
- </out:when>
- <out:otherwise><xts:string id="IDS_PROP_FORMAT_PDF"/></out:otherwise>
- </out:choose>
- </xsl:when>
- <xsl:when test="string($PDFSummary) = ''"><xts:string id="IDS_PROP_FORMAT_PDF"/></xsl:when>
- <xsl:otherwise>
- <out:choose>
- <out:when test="string({$PDFSummary}) = ''"><xts:string id="IDS_PROP_FORMAT_PDF"/></out:when>
- <out:otherwise>
- <xts:string id="IDS_OTHERRUN_FORMAT_PDF_WITH_ONE_OPTIONS">
- <xts:param name="option"><out:value-of select="{$PDFSummary}"/></xts:param>
- </xts:string>
- </out:otherwise>
- </out:choose>
- </xsl:otherwise>
- </xsl:choose>
- </out:when>
- </out:choose>
- <out:if test="position() != last()"><xts:string id="IDS_LIST_SEPARATOR"/><xsl:value-of select="' '"/></out:if>
- </out:for-each>
- </xsl:template>
-
- <!--
- ===============================================================================================
- Execute the operation: delete, additems_
- ===============================================================================================
- -->
- <xsl:template match="dt:jobExecuteCommand">
- <out:variable name="query-values" select="/root/env/param"/>
- <out:variable name="op" select="$query-values[@name = 'listop']"/>
- <out:variable name="object-class" select="/root/morphlet/variable[@name = 'object-class']"/>
- <out:template match="/">
- <out:choose>
- <!-- clear the options on one of the steps -->
- <out:when test="$op = 'clear_step_options' and /root/env/param[@name = 'clear_step'] != ''">
- <xts:sequence>
- <out:variable name="current-step" select="/root/env/param[@name='clear_step']"/>
-
- <xts:delete>
- <xsl:attribute name="select">
- <xsl:text>/root/steps/*/*[./*[local-name() = 'displaySequence' and string()='{$current-step}']]/*[local-name()='parameters' or local-name()='options' or local-name()='UIHelpers']</xsl:text>
- </xsl:attribute>
- </xts:delete>
- <out:if test="count(/root/steps/*/*[./*[local-name() = 'displaySequence' and string()=$current-step]]/*[local-name()='added']) = 0 and count(/root/steps/*/*[./*[local-name() = 'displaySequence' and string()=$current-step]]/*[local-name()='updated']) = 0">
- <xts:append>
- <xsl:attribute name="select">
- <xsl:text>/root/steps/*/*[./*[local-name() = 'displaySequence' and string()='{$current-step}']]</xsl:text>
- </xsl:attribute>
- <x:updated/>
- </xts:append>
- </out:if>
- <xts:append>
- <xsl:attribute name="select">
- <xsl:text>/root/steps/*/*[./*[local-name() = 'displaySequence' and string()='{$current-step}']]</xsl:text>
- </xsl:attribute>
- <xsl:call-template name="dt:buildUIHelper">
- <xsl:with-param name="default" select="'true()'"/>
- </xsl:call-template>
- </xts:append>
-
- <xts:delete select="/root/env/param[@name='clear_step']"/>
- <!-- delete the web64 blob for job steps. This will make sure that it get repopulated -->
- <xts:delete select="/root/env/param[@name = 'jobSteps']"/>
- </xts:sequence>
- </out:when>
- <!-- clear the options and promtps for all the selected steps -->
- <out:when test="$op = 'resetToDefaults'">
- <xts:sequence>
- <!-- loop through selection params -->
- <out:for-each select="$query-values[starts-with( @name, 'jobSteps_chk_' )]">
- <out:variable name="current-guid" select="."/>
- <!-- todo: delete any saved prompts -->
- <xts:delete>
- <xsl:attribute name="select">
- <xsl:text>/root/steps/*/*[./*[local-name() = 'guid' and string()='{$current-guid}']]/*[local-name()='options' or local-name()='UIHelpers']</xsl:text>
- </xsl:attribute>
- </xts:delete>
- <out:if test="count(/root/steps/*/*[./*[local-name() = 'guid' and string()=$current-guid]]/*[local-name()='added']) = 0 and count(/root/steps/*/*[./*[local-name() = 'guid' and string()=$current-guid]]/*[local-name()='updated']) = 0">
- <xts:append>
- <xsl:attribute name="select">
- <xsl:text>/root/steps/*/*[./*[local-name() = 'guid' and string()='{$current-guid}']]</xsl:text>
- </xsl:attribute>
- <x:updated/>
- </xts:append>
- </out:if>
- <xts:append>
- <xsl:attribute name="select">
- <xsl:text>/root/steps/*/*[./*[local-name() = 'guid' and string()='{$current-guid}']]</xsl:text>
- </xsl:attribute>
- <xsl:call-template name="dt:buildUIHelper">
- <xsl:with-param name="default" select="'true()'"/>
- </xsl:call-template>
- </xts:append>
- </out:for-each>
- </xts:sequence>
- </out:when>
- <!-- clear the job options -->
- <out:when test="$op = 'clear_job_options'">
- <xts:sequence>
- <xts:delete select="/root/*[local-name()='jobOptions']/*[local-name()='options' or local-name()='UIHelpers']"/>
-
- <xts:append select="/root/*[local-name()='jobOptions']">
- <xsl:call-template name="dt:buildUIHelper">
- <xsl:with-param name="default" select="'true()'"/>
- <xsl:with-param name="jobDefinition" select="'true()'"/>
- </xsl:call-template>
- <!-- default the job options. Make sure that the saveOutput runOption is true and that the prompt
- runOption is set to false -->
- <xts:transform src="transforms/portal/options/buildOptions.xslt" processor="XSLT">
- <root>
- <xts:transform src="transforms/portal/options/buildOptionItems.xslt" processor="XSLT">
- <root>
- <xts:transform name="XML" src="portal/options.xml"/>
- <optionType>runOptions</optionType>
- <optionType>powerPlay8Options</optionType>
- <env>
- <param name="m_ro_saveOutput">true</param>
- <param name="save_how">report</param>
- <param name="m_ro_prompt">false</param>
- <param name="m_ro_selectionBasedFeatures">true</param>
- </env>
- <genDefaults>false</genDefaults>
- </root>
- </xts:transform>
- </root>
- </xts:transform>
- </xts:append>
- </xts:sequence>
- </out:when>
- <out:when test="$op = 'removeNilSteps'">
- <xts:sequence>
- <xts:append select="/root/*[local-name()='steps']/*[local-name()='queryResponse']/*[local-name()='jobStepDefinition' and ./*[local-name()='stepObject']/@nil='true']">
- <!-- append a deleted marker so node can be excluded with xpath -->
- <xsl:element name="x:deleted" namespace="x"/>
- </xts:append>
- </xts:sequence>
- </out:when>
- <out:when test="$op = 'delete'">
- <xts:sequence>
- <!-- loop through selection params -->
- <out:for-each select="$query-values[starts-with( @name, 'jobSteps_chk_' )]">
- <!-- lookup item in list -->
- <out:variable name="current-guid" select="."/>
- <out:variable name="item" select="/root/steps/*/*[x:guid = $current-guid]"/>
- <out:choose>
- <!-- if the object was recently added (not saved in CM yet) then simply remove the entire step
- from our XML blob -->
- <out:when test="$item[x:added]">
- <!-- delete the added object from the list -->
- <xts:delete>
- <xsl:attribute name="select">
- <xsl:text>/root/steps/*/*[*[local-name() = 'guid' and string() = '{$current-guid}']]</xsl:text>
- </xsl:attribute>
- </xts:delete>
- </out:when>
- <!-- the step is currently saved in CM so we must add a deleted flag so when the user
- hits OK the step gets deleted from CM -->
- <out:otherwise>
- <!-- if the user updated this step before deleting it, get rid of the update flag
- since we end up trying to update the step after it got delete from CM -->
- <out:if test="$item[x:updated]">
- <xts:delete>
- <xsl:attribute name="select">
- <xsl:text>/root/steps/*[local-name()='queryResponse']/*[*[local-name() = 'guid' and string() = '{$current-guid}']]/*[local-name()='updated']</xsl:text>
- </xsl:attribute>
- </xts:delete>
- </out:if>
- <xts:append>
- <xsl:attribute name="select">
- <xsl:text>/root/steps/*/*[*[local-name() = 'guid' and string() = '{$current-guid}']]</xsl:text>
- </xsl:attribute>
- <!-- append a deleted marker so node can be excluded with xpath -->
- <xsl:element name="x:deleted" namespace="x"/>
- </xts:append>
- </out:otherwise>
- </out:choose>
- </out:for-each>
- <xts:delete select="/root/env/param[starts-with( @name, 'jobSteps_chk_' )]"/>
- </xts:sequence>
- </out:when>
- <out:when test="$op = 'link_orphaned_step' and key('env-param','so.storeID') != ''">
- <xts:sequence>
- <out:variable name="current-step" select="/root/env/param[@name='current_step']"/>
-
- <xts:delete>
- <xsl:attribute name="select">
- <xsl:text>/root/steps/*/*[./*[local-name() = 'guid' and string()='{$current-step}']]/*[local-name()='stepObject']</xsl:text>
- </xsl:attribute>
- </xts:delete>
-
- <xts:append>
- <xsl:attribute name="select">
- <xsl:text>/root/steps/*/*[./*[local-name() = 'guid' and string()='{$current-step}']]</xsl:text>
- </xsl:attribute>
- <x:updated/>
- <x:linkedOrphaned/>
-
- <xts:transform src="transforms/portal/jobDefinition/gen_stepObject.xslt" processor="XSLT">
- <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:requests>
- <cm:query>
- <cm:search><out:value-of select="key('env-param','so.storeID')"/></cm:search>
- <cm:properties>
- <cml:prop-base/>
- <cm:property name="ancestors"/>
- <cm:property name="canBurst"/>
- <cm:property name="runAsOwner"/>
- <cm:property name="runWithOwnerCapabilities"/>
- <cm:property name="permissions"/>
- <cm:property name="parent"/>
- <cm:property name="executionFormat"/>
- <cm:property name="executionLocale"/>
- <cm:property name="executionPageDefinition"/>
- <cm:property name="executionPageOrientation"/>
- </cm:properties>
- </cm:query>
- </cm:requests>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </xts:transform>
- </xts:append>
- </xts:sequence>
- </out:when>
- <!-- adding new entries -->
- <out:when test="/root/newEntries">
- <out:variable name="added-items" select="/root/newEntries/*"/>
- <out:variable name="steps" select="/root/steps/*/*"/>
- <out:if test="count( $added-items ) > 0">
- <out:variable name="appends">
- <out:for-each select="$added-items">
- <out:variable name="current-guid" select="x:guid"/>
- <out:variable name="original" select="$steps[x:guid = $current-guid]"/>
- <out:variable name="new-state">
- <out:choose>
- <out:when test="$original[x:deleted]">
- <x:changed/>
- </out:when>
- <out:otherwise>
- <x:added/>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <out:if test="$original[x:deleted]">
- <xts:delete>
- <xsl:attribute name="select">
- <xsl:text>/root/steps/*/*[*[local-name() = 'guid' and string() = '{$current-guid}']]</xsl:text>
- </xsl:attribute>
- </xts:delete>
- </out:if>
- <!-- copy item to list and append the added marker -->
- <xts:append select="/root/steps/*">
- <out:variable name="object-class" select="local-name()"/>
- <out:element name="jobStepDefinition" namespace="http://developer.cognos.com/schemas/xts-cm/1/">
- <out:element name="objectClass" namespace="http://developer.cognos.com/schemas/xts-cm/1/">
- <out:value-of select="'jobStepDefinition'"/>
- </out:element>
- <out:element name="stepObject" namespace="http://developer.cognos.com/schemas/xts-cm/1/">
- <out:element namespace="http://developer.cognos.com/schemas/xts-cm/1/">
- <xsl:attribute name="name">
- <xsl:value-of select="'{$object-class}'"/>
- </xsl:attribute>
- <out:copy-of select="*[not((local-name() = 'guid') and (namespace-uri() = 'x'))]"/>
- </out:element>
- </out:element>
- <out:element name="x:guid" namespace="x">
- <out:choose>
- <out:when test="$current-guid != ''">
- <out:value-of select="$current-guid"/>
- </out:when>
- <out:otherwise>
- <out:value-of select="xtsext:generateGUID()"/>
- </out:otherwise>
- </out:choose>
- </out:element>
- <out:copy-of select="$new-state"/>
- <xsl:call-template name="dt:buildUIHelper">
- <xsl:with-param name="default" select="'true()'"/>
- </xsl:call-template>
- <!-- special case for contentTask. We must find out if we're dealing with a
- report upgrade or consistency scan -->
- <out:if test="$object-class = 'contentTask' and *[local-name()='searchPath'] != ''">
- <xts:transform src="transforms/portal/options/parseContentTaskOptions.xslt" processor="XSLT">
- <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:requests>
- <cm:query>
- <cm:search><out:value-of select="*[local-name()='searchPath']"/></cm:search>
- <cm:properties>
- <cm:property name="options"/>
- </cm:properties>
- </cm:query>
- </cm:requests>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </xts:transform>
- </out:if>
- </out:element>
- </xts:append>
- </out:for-each>
- </out:variable>
- <out:if test="$appends">
- <xts:sequence>
- <out:copy-of select="$appends"/>
- </xts:sequence>
- </out:if>
-
- <xts:sequence>
- <xts:replace select="/root/env/param[@name = 'listop']">
- <param name="listop">save</param>
- </xts:replace>
- </xts:sequence>
- </out:if>
- </out:when>
- </out:choose>
- </out:template>
- </xsl:template>
-
- <!--
- ===============================================================================================
- Update the displaySequence property to reflect the order of the steps
- ===============================================================================================
- -->
- <xsl:template match="dt:jobSetSequence">
- <out:template match="/">
- <xts:sequence>
- <xts:replace select="/root/steps">
- <xts:transform src="transforms/portal/jobDefinition/jobSetSequence.xslt" processor="XSLT">
- <xts:queryNode select="/root/steps"/>
- </xts:transform>
- </xts:replace>
- </xts:sequence>
- </out:template>
- </xsl:template>
- <!--
- ===============================================================================================
- Serialize the data (web64 encoded)
- ===============================================================================================
- -->
- <xsl:template match="dt:jobEncodeList">
- <pf:serialize-xml/>
- <out:variable name="wizard"><xsl:value-of select="@wizard"/></out:variable>
- <out:template match="/">
- <out:if test="not( /root/env/param[@name = 'jobSteps'] ) or not( /root/env/param[@name = 'listop'] = '' )">
- <xts:sequence>
- <xts:delete select="/root/env/param[@name = 'jobSteps']"/>
- <out:if test="contains( /root/cm:queryResponse/cm:queryReply[2]/*/cm:permissions, 'write' ) or $wizard='true'">
- <out:variable name="markup">
- <out:call-template name="serialize-xml">
- <out:with-param name="node-set" select="/root/steps"/>
- </out:call-template>
- </out:variable>
- <xts:append select="/root/env">
- <param name="jobSteps">
- <out:value-of select="xtsext:cafaction( concat('sign_wrap_setpassportid_', $passport), xtsext:web64encode( string( $markup ), true()))"/>
- </param>
- </xts:append>
- </out:if>
- </xts:sequence>
- </out:if>
- <out:if test="not( /root/env/param[@name = 'jobOptions'] ) or not( /root/env/param[@name = 'listop'] = '' )">
- <xts:sequence>
- <xts:delete select="/root/env/param[@name = 'jobOptions']"/>
- <out:if test="contains( /root/cm:queryResponse/cm:queryReply[2]/*/cm:permissions, 'write' ) or $wizard='true'">
- <out:variable name="markup">
- <out:call-template name="serialize-xml">
- <out:with-param name="node-set" select="/root/jobOptions"/>
- </out:call-template>
- </out:variable>
- <xts:append select="/root/env">
- <param name="jobOptions">
- <out:value-of select="xtsext:cafaction( concat('sign_wrap_setpassportid_', $passport), xtsext:web64encode( string( $markup ), true()))"/>
- </param>
- </xts:append>
- </out:if>
- </xts:sequence>
- </out:if>
- </out:template>
- </xsl:template>
- <!--
- dt:generateDefaultScheduleParams
- Generated the default schedule params
- -->
- <xsl:template match="dt:generateScheduleParams">
- <xts:sequence>
- <xts:append select="/root/env">
- <xts:transform src="transforms/portal/schedule/generateParams.xslt" processor="XSLT">
- <schedule>
- <timeZone><out:value-of select="$timeZone"/></timeZone>
- <contentLocale><out:value-of select="$contentLocale"/></contentLocale>
- <xsl:if test="@schedule">
- <out:copy-of select="{@schedule}"/>
- </xsl:if>
- </schedule>
- </xts:transform>
- </xts:append>
- </xts:sequence>
- </xsl:template>
-
- <!--
- dt:hierarchicalParmValueItem
- Recursive template to build the description of a hierarchical parameter
- -->
- <xsl:template match="dt:hierarchicalParmValueItem">
- <out:template match="*[local-name()='hierarchicalParmValueItem']">
- <out:param name="ancestorText"/>
- <out:param name="position"/>
-
- <out:choose>
- <out:when test="*[local-name()='hierarchicalParmValueItem']">
- <out:for-each select="./*[local-name()='hierarchicalParmValueItem']">
- <out:variable name="pos">
- <out:choose>
- <out:when test="$position = 'first' and position() = '1'">first</out:when>
- <out:otherwise>not_first</out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="displayText">
- <out:choose>
- <out:when test="*[local-name()='value']/*[local-name()='display'] != ''">
- <out:value-of select="*[local-name()='value']/*[local-name()='display']"/>
- </out:when>
- <out:otherwise>
- <out:value-of select="*[local-name()='value']/*[local-name()='use']"/>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <out:apply-templates select=".">
- <out:with-param name="ancestorText" select="concat($ancestorText, ' > ' ,$displayText)"/>
- <out:with-param name="position" select="$pos"/>
- </out:apply-templates>
- </out:for-each>
- </out:when>
- <out:otherwise>
- <out:if test="$position='not_first'">
- <out:text>, </out:text>
- </out:if>
- <out:text>'</out:text>
- <out:value-of select="$ancestorText"/>
- <out:text>'</out:text>
- </out:otherwise>
- </out:choose>
- </out:template>
- </xsl:template>
-
- <!--
- dt:promptDescription
- Creates the string for describing which prompts have been saved and appends them to the DOM
- -->
- <xsl:template match="dt:promptDescription">
- <xsl:call-template name="dt:promptSummaryText"/>
-
- <xts:sequence>
- <xsl:if test="@params='default' or @params='both'">
- <xts:delete select="/root/env/param[@name='defaultParameterDescription']"/>
- <xts:delete select="/root/env/param[@name='defaultParameterDescriptionToLong']"/>
- <xts:append select="/root/env">
- <param name="defaultParameterDescription">
- <out:value-of select="$visibleDescription"/>
- </param>
- <out:if test="string-length($description) > 45">
- <param name="defaultParameterDescriptionToLong">true</param>
- </out:if>
- </xts:append>
- </xsl:if>
- <xsl:if test="@params='both' or not(@params)">
- <xts:delete select="/root/env/param[@name='parameterDescription']"/>
- <xts:delete select="/root/env/param[@name='parameterDescriptionToLong']"/>
- <xts:append select="/root/env">
- <param name="parameterDescription">
- <out:value-of select="$visibleDescription"/>
- </param>
- <out:if test="string-length($description) > 45">
- <param name="parameterDescriptionToLong">true</param>
- </out:if>
- </xts:append>
- </xsl:if>
- </xts:sequence>
- </xsl:template>
-
-
- <!--
- dt:promptSummaryText
- Append the javascript needed to validate the runOptions
- @defaultFormat: the default format that should be used if no other format is selected
- -->
- <xsl:template match="dt:promptSummaryText" name="dt:promptSummaryText">
- <!-- path the the non-connection parameters -->
- <xsl:variable name="path">
- <xsl:choose>
- <xsl:when test="@parameterPath != ''"><xsl:value-of select="@parameterPath"/></xsl:when>
- <xsl:when test="@checkRunnableParameters='true'"><xsl:value-of select="'/root/runnableParameters/parameters/*[local-name()="parameterValue"]'"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="'/root/parameters/*[local-name()="parameterValue"]'"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <!-- path to the connection parameters -->
- <xsl:variable name="dataSourceParameters">
- <xsl:choose>
- <xsl:when test="@dataSourcePath != ''"><xsl:value-of select="@dataSourcePath"/></xsl:when>
- <xsl:when test="@checkRunnableParameters='true'"><xsl:value-of select="'/root/runnableParameters/credentialParameters/credential'"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="'/root/credentialParameters/credential'"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <!-- path to the CM response for the connection information -->
- <xsl:variable name="dataSourceQueryReply">
- <xsl:choose>
- <xsl:when test="@dataSourceQueryReply != ''"><xsl:value-of select="@dataSourceQueryReply"/></xsl:when>
- <xsl:when test="@checkRunnableParameters='true'"><xsl:value-of select="'/root/defaultDataSources/cm:queryResponse/cm:queryReply/cm:dataSourceConnection'"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="'/root/dataSources/cm:queryResponse/cm:queryReply/cm:dataSourceConnection'"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <out:variable name="description">
- <!-- build the connection parameter description -->
- <out:for-each select="{$dataSourceParameters}">
- <out:variable name="pos" select="position()"/>
- <out:variable name="dsConnections" select="{$dataSourceQueryReply}"/>
- <xts:string id="IDS_VIEW_PROMPTS_CONNECTION_SUMMARY">
- <xts:param name="datasource_name">
- <out:value-of select="$dsConnections[$pos]/cm:parent/cm:dataSource/cm:defaultName"/>
- </xts:param>
- <xts:param name="connection_name">
- <out:value-of select="$dsConnections[$pos]/cm:defaultName"/>
- </xts:param>
- </xts:string>
- <out:choose>
- <out:when test="dataSourceSignon != ''">
- <xts:string id="IDS_VIEW_PROMPTS_SIGNON">
- <xts:param name="signon_name">
- <out:value-of select="$dsConnections[$pos]/../following-sibling::*[1]/cm:dataSourceSignon/cm:defaultName"/>
- </xts:param>
- </xts:string>
- </out:when>
- <out:when test="username != '' and password != ''">
- <out:variable name="signon_name">
- <xts:string id="IDS_VIEW_PROMPTS_USERID_PASSWORD"/>
- </out:variable>
- <xts:string id="IDS_VIEW_PROMPTS_SIGNON">
- <xts:param name="signon_name">
- <out:value-of select="$signon_name"/>
- </xts:param>
- </xts:string>
- </out:when>
- <out:when test="username != ''">
- <out:variable name="signon_name">
- <xts:string id="IDS_VIEW_PROMPTS_USERID_ONLY"/>
- </out:variable>
- <xts:string id="IDS_VIEW_PROMPTS_SIGNON">
- <xts:param name="signon_name">
- <out:value-of select="$signon_name"/>
- </xts:param>
- </xts:string>
- </out:when>
- <out:when test="password != ''">
- <out:variable name="signon_name">
- <xts:string id="IDS_VIEW_PROMPTS_PASSWORD_ONLY"/>
- </out:variable>
- <xts:string id="IDS_VIEW_PROMPTS_SIGNON">
- <xts:param name="signon_name">
- <out:value-of select="$signon_name"/>
- </xts:param>
- </xts:string>
- </out:when>
- </out:choose>
- </out:for-each>
-
- <!-- build the non-connection parameter summary -->
- <out:for-each select="{$path}">
- <out:sort select="*[local-name()='name']"/>
- <out:value-of select="*[local-name()='name']"/>
- <xts:string id="IDS_LIST_START"/>
- <out:value-of select="' '"/>
- <out:for-each select="*[local-name()!='name']">
- <out:variable name="displayText">
- <out:choose>
- <out:when test="./*[local-name()='value']/*[local-name()='display'] != ''">
- <out:value-of select="./*[local-name()='value']/*[local-name()='display']"/>
- </out:when>
- <out:otherwise>
- <out:value-of select="./*[local-name()='value']/*[local-name()='use']"/>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <out:choose>
- <out:when test="local-name() = 'hierarchicalParmValueItem'">
- <out:apply-templates select=".">
- <out:with-param name="ancestorText" select="$displayText"/>
- <out:with-param name="position" select="'first'"/>
- </out:apply-templates>
- </out:when>
- <out:otherwise>
- <out:text>'</out:text>
- <out:choose>
- <out:when test="local-name() = 'simpleParmValueItem'">
- <out:choose>
- <out:when test="*[local-name()='display'] != ''">
- <out:value-of select="*[local-name()='display']"/>
- </out:when>
- <out:otherwise>
- <out:value-of select="*[local-name()='use']"/>
- </out:otherwise>
- </out:choose>
- </out:when>
- <out:otherwise>
- <out:variable name="startDisplay">
- <out:choose>
- <out:when test="*[local-name()='start']/*[local-name()='display'] != ''">
- <out:value-of select="*[local-name()='start']/*[local-name()='display']"/>
- </out:when>
- <out:otherwise>
- <out:value-of select="*[local-name()='start']/*[local-name()='use']"/>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="endDisplay">
- <out:choose>
- <out:when test="*[local-name()='end']/*[local-name()='display'] != ''">
- <out:value-of select="*[local-name()='end']/*[local-name()='display']"/>
- </out:when>
- <out:otherwise>
- <out:value-of select="*[local-name()='end']/*[local-name()='use']"/>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <out:choose>
- <out:when test="$startDisplay != '' and $endDisplay!=''">
- <out:choose>
- <out:when test="string($startDisplay) != string($endDisplay)">
- <xts:string id="IDS_OTHERRUN_BOUNDED_RANGE_VALUE">
- <xts:param name="startValue">
- <out:value-of select="$startDisplay"/>
- </xts:param>
- <xts:param name="endValue">
- <out:value-of select="$endDisplay"/>
- </xts:param>
- </xts:string>
- </out:when>
- <out:otherwise>
- <out:value-of select="$endDisplay"/>
- </out:otherwise>
- </out:choose>
- </out:when>
- <out:when test="$startDisplay != ''">
- <xts:string id="IDS_OTHERRUN_RANGED_START_PARAM_VALUE">
- <xts:param name="startValue"><out:value-of select="$startDisplay"/></xts:param>
- </xts:string>
- </out:when>
- <out:when test="$endDisplay != ''">
- <xts:string id="IDS_OTHERRUN_RANGED_END_PARAM_VALUE">
- <xts:param name="endValue"><out:value-of select="$endDisplay"/></xts:param>
- </xts:string>
- </out:when>
- </out:choose>
- </out:otherwise>
- </out:choose>
- <out:text>'</out:text>
- </out:otherwise>
- </out:choose>
- <out:choose>
- <out:when test="position()=last()"><xts:string id="IDS_LIST_END"/></out:when>
- <out:otherwise><xts:string id="IDS_LIST_SEPARATOR"/></out:otherwise>
- </out:choose>
- </out:for-each>
- <out:value-of select="' '"/>
- </out:for-each>
- </out:variable>
-
- <out:variable name="ellipsis"><xts:string id="IDS_LIST_ELLIPSIS"/></out:variable>
-
- <out:variable name="visibleDescription">
- <out:choose>
- <out:when test="string-length($description) > 45">
- <out:value-of select="concat(substring($description,1,42),$ellipsis)"/>
- </out:when>
- <out:otherwise><out:value-of select="$description"/></out:otherwise>
- </out:choose>
- </out:variable>
- </xsl:template>
-
- <!--
- dt:runOptionValidation
- Setup global js variables to be used in the validation script
- -->
- <xsl:template match="dt:runOptionValidation">
- <out:variable name="defaultFormat">
- <out:choose>
- <out:when test="/root/cm:queryResponse/cm:queryReply[2]/*/cm:executionFormat!=''">
- <out:value-of select="/root/cm:queryResponse/cm:queryReply[2]/*/cm:executionFormat"/>
- </out:when>
- <out:when test="/root/header/*[local-name() = 'biBusHeader']/*[local-name() = 'userPreferenceVars']/*[local-name()='item']/*[local-name()='name' and .='format']/../*[local-name()='value'] != ''">
- <out:value-of select="/root/header/*[local-name() = 'biBusHeader']/*[local-name() = 'userPreferenceVars']/*[local-name()='item']/*[local-name()='name' and .='format']/../*[local-name()='value']"/>
- </out:when>
- <out:otherwise>HTML</out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="formatName">
- <out:choose>
- <out:when test="$defaultFormat = 'HTML'"><xts:string id="IDS_OTHERRUN_FORMAT_HTML" encode="javascript"/></out:when>
- <out:when test="$defaultFormat = 'HTMLFragment'"><xts:string id="IDS_OTHERRUN_FORMAT_HTMLFRAGMENT" encode="javascript"/></out:when>
- <out:when test="$defaultFormat = 'XHTML'"><xts:string id="IDS_OTHERRUN_FORMAT_XHTML" encode="javascript"/></out:when>
- <out:when test="$defaultFormat = 'XML'"><xts:string id="IDS_OTHERRUN_FORMAT_XML" encode="javascript"/></out:when>
- <out:when test="$defaultFormat = 'XLS' and $browser != 'safari'"><xts:string id="IDS_OTHERRUN_FORMAT_XLS" encode="javascript"/></out:when>
- <out:when test="$defaultFormat = 'XLWA' and $browser != 'safari'"><xts:string id="IDS_OTHERRUN_FORMAT_XLS_2002" encode="javascript"/></out:when>
- <out:when test="$defaultFormat = 'singleXLS' and $browser != 'safari'"><xts:string id="IDS_OTHERRUN_FORMAT_SINGLE_XLS" encode="javascript"/></out:when>
- <out:when test="$defaultFormat = 'CSV'"><xts:string id="IDS_OTHERRUN_FORMAT_CSV" encode="javascript"/></out:when>
- <out:when test="$defaultFormat = 'PDF'"><xts:string id="IDS_OTHERRUN_FORMAT_PDF" encode="javascript"/></out:when>
- <out:otherwise><xts:string id="IDS_OTHERRUN_FORMAT_HTML" encode="javascript"/></out:otherwise>
- </out:choose>
- </out:variable>
- var g_defaultFormat = "<out:value-of select="$defaultFormat"/>";
- var g_hasRecipients = "<out:value-of select="/root/env/param[@name='hasRecipients'] = 'true'"/>";
- var g_validation_msg_array = new Array();
- g_validation_msg_array['IDS_OTHERRUN_ERR_NO_PRINTER'] = '<xts:string id="IDS_OTHERRUN_ERR_NO_PRINTER" encode="javascript"/>';
- g_validation_msg_array['IDS_OTHERRUN_ERR_NO_ARCHIVE_LOCATION'] = '<xts:string id="IDS_OTHERRUN_ERR_NO_ARCHIVE_LOCATION" encode="javascript"/>';
- g_validation_msg_array['IDS_OTHERRUN_ERR_NO_RECIPIENTS'] = '<xts:string id="IDS_OTHERRUN_ERR_NO_RECIPIENTS" encode="javascript"/>';
- g_validation_msg_array['IDS_OTHERRUN_ERR_NO_MOBILE_RECIPIENTS'] = '<xts:string id="IDS_OTHERRUN_ERR_NO_MOBILE_RECIPIENTS" encode="javascript"/>';
- g_validation_msg_array['IDS_OTHERRUN_MOBILE_NO_RECIPIENTS'] = '<xts:string id="IDS_OTHERRUN_MOBILE_NO_RECIPIENTS" encode="javascript"/>';
- g_validation_msg_array['IDS_OTHERRUN_ERR_NO_DELIVERY'] = '<xts:string id="IDS_OTHERRUN_ERR_NO_DELIVERY" encode="javascript"/>';
- g_validation_msg_array['IDS_OTHERRUN_ERR_NO_FORMAT'] = '<xts:string id="IDS_OTHERRUN_ERR_NO_FORMAT" encode="javascript"><xts:param name="format"><out:value-of select="$formatName"/></xts:param></xts:string>';
- g_validation_msg_array['IDS_OTHERRUN_ERR_EXTRA_LANG'] = '<xts:string id="IDS_OTHERRUN_ERR_EXTRA_LANG" encode="javascript"/>';
- g_validation_msg_array['IDS_OTHERRUN_ERR_EXTRA_FORMAT'] = '<xts:string id="IDS_OTHERRUN_ERR_EXTRA_FORMAT" encode="javascript"/>';
- g_validation_msg_array['IDS_OTHERRUN_ERR_BRUST'] = '<xts:string id="IDS_OTHERRUN_ERR_BRUST" encode="javascript"/>';
- g_validation_msg_array['IDS_OTHERRUN_ERR_LINK_NO_SAVE'] = '<xts:string id="IDS_OTHERRUN_ERR_LINK_NO_SAVE" encode="javascript"/>';
- g_validation_msg_array['IDS_OTHERRUN_ERR_NOTIFY_NO_SAVE_PRINT'] = '<xts:string id="IDS_OTHERRUN_ERR_NOTIFY_NO_SAVE_PRINT" encode="javascript"/>';
- g_validation_msg_array['IDS_OTHERRUN_REQUEST_SUBMITTED'] = '<xts:string id="IDS_OTHERRUN_REQUEST_SUBMITTED" encode="javascript"/>';
- g_validation_msg_array['IDS_PDF_OPEN_PASSWORD_SUMMARY'] = '<xts:string id="IDS_PDF_OPEN_PASSWORD_SUMMARY" encode="javascript"/>';
- g_validation_msg_array['IDS_PDF_OPTION_PASSWORD_SUMMARY'] = '<xts:string id="IDS_PDF_OPTION_PASSWORD_SUMMARY" encode="javascript"/>';
- g_validation_msg_array['IDS_OTHERRUN_NO_PDF_OPTIONS'] = '<xts:string id="IDS_OTHERRUN_NO_PDF_OPTIONS" encode="javascript"/>';
- </xsl:template>
-
- <!--
- dt:runOptionJavaScriptInit
- Append the common javascript used in the init() function for runOptions
- -->
- <xsl:template match="dt:runOptionJavaScriptInit">
- initRunOptions();
- </xsl:template>
- <xsl:template match="dt:updateSaveAsPathText">
- <xts:sequence>
- <!-- if we just came back from the saveAs dialog, then update the saveAsSummary -->
- <xts:delete select="/root/env/param[@name='saveAsPathText' or @name='visited_save_as']"/>
- <xts:append select="/root/env">
- <param name="saveAsPathText">
- <!-- Determine if the current path points to the personal folder space (We need a session element to make this determination) -->
- <out:variable name="path" select="/root/env/param[@name='m_ro_saveAsPath']"/>
- <!-- For personal folder destinations, render the path starting at the directory/namespace/account/folder ancestor. -->
- <out:variable name="rootPath">
- <out:choose>
- <out:when test="starts-with($path,'~') or starts-with($path,key('session-param', 'e_hp'))"><out:value-of select="'~/folder'"/></out:when>
- <out:otherwise><out:value-of select="$defaultContentRoot"/></out:otherwise>
- </out:choose>
- </out:variable>
- <cf:do-the-path-link>
- <cf:param name="familytree"><xsl:value-of select="@ancestors"/></cf:param>
- <cf:param name="familymember"><xsl:value-of select="@defaultName"/></cf:param>
- <cf:param name="home"><out:value-of select="$rootPath"/></cf:param>
- </cf:do-the-path-link>
- </param>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- <!-- template that splits connection parameters from other parameters -->
- <xsl:template match="dt:splitParameters">
- <xts:append>
- <xts:transform src="transforms/portal/parameters/group-parameters.xslt" processor="XSLT">
- <root>
- <out:choose>
- <out:when test="key('env-param','m_rp_parameters') != ''">
- <out:value-of select="xtsext:web64decode(string(key('env-param','m_rp_parameters')), true())" disable-output-escaping="yes"/>
- </out:when>
- <out:otherwise>
- <xsl:if test="@queryNode!=''">
- <xts:queryNode select="{@queryNode}"/>
- </xsl:if>
- </out:otherwise>
- </out:choose>
- </root>
- </xts:transform>
- </xts:append>
- </xsl:template>
-
- <!-- template that splits connection parameters from other parameters. Used to get the default parameters -->
- <xsl:template match="dt:splitRunnableParameters">
- <xts:append>
- <runnableParameters>
- <xts:transform src="transforms/portal/parameters/group-parameters.xslt" processor="XSLT">
- <root>
- <xsl:if test="@queryNode!=''">
- <xts:queryNode select="{@queryNode}"/>
- </xsl:if>
- </root>
- </xts:transform>
- </runnableParameters>
- </xts:append>
- </xsl:template>
-
-
- <xsl:template match="dt:domainListPopup">
-
- <cp:genericDialog id="validDomains" interactive="true" align="left" width="300" positionVertical="true" positionHorizontal="true" helpid="12345" focusidOnShiftTab="IDS_OK">
- <cp:param name="title"><xts:string id="IDS_NEW_URL_VALID_DOMAINS"/></cp:param>
- <cp:param name="body">
- <div style="height:100px;overflow:auto">
- <out:choose>
- <out:when test="/root/configuration/property[@name ='CAF']/*/*[@name='caf_validDomainList']/*/*">
- <table cellpadding="4" cellspacing="0" border="1" width="100%" style="border:solid 1px #cccccc; border-collapse: collapse;" role="presentation">
- <out:for-each select="/root/configuration/property[@name ='CAF']/*/*[@name='caf_validDomainList']/*/*">
- <tr>
- <td class="formText"><out:value-of select="."/></td>
- </tr>
- </out:for-each>
- </table>
- </out:when>
- <out:otherwise>
- <p class="objectNoneFound">
- <xts:string id="IDS_NO_ITEMS_FOUND"/>
- </p>
- </out:otherwise>
- </out:choose>
- </div>
- </cp:param>
- <cp:param name="footer">
- <dp:simpleFooter>
- <cp:cmdButton defaultState="active" id="IDS_OK">
- <cp:cmdButtonText><xts:string id="IDS_OK"/></cp:cmdButtonText>
- <cp:cmdButtonEvents>
- <cp:cmdButtonEvent name="onclick">javascript:validDomains.hide();</cp:cmdButtonEvent>
- <cp:cmdButtonEvent name="onkeypress">javascript:if (event.keyCode==13 || event.keyCode==32 || event.charCode==32) { this.onclick(); return false; } return true;</cp:cmdButtonEvent>
- <cp:cmdButtonEvent name="onkeydown">javascript:if(event.keyCode==9) <xsl:text>{</xsl:text> if(event.shiftKey==true) return true; else { if(document.getElementById("12345")) {document.getElementById("12345").focus(); return false; } } } return true;</cp:cmdButtonEvent>
- </cp:cmdButtonEvents>
- </cp:cmdButton>
- </dp:simpleFooter>
- </cp:param>
- </cp:genericDialog>
-
-
- </xsl:template>
-
-
-
-
- <!-- the main engine -->
- <xsl:template match="*">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:template>
- </xsl:stylesheet>
|