1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- BI and PM: ps
- (C) Copyright IBM Corp. 2005, 2016
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!--
- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
- -->
- <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/portal.xml, messages/portalRL.xml" includeConfig="true">
- <!--
- This morphlet (properties_general.xts) consists of the following blocks:
- formlogic_init - update various /root/env level parameters based on new or changed /root/env parameters.
- getTabs - build the /root/tabs/objects structure.
- updateEnv - change environment information as required.
- buildMultiLang - build the /root/multiLang structure with /lang and /name leaf nodes.
- getMyAccount - build the /root/myInfo structure for the current user account.
- classNames - build the /root/objectClass/class structure.
- getContent - retrieve CM Information for this page.
- renderPage - render the general information properties tab page for an object specified in m_obj.
- -->
- <!--
- ===============================================================================================
- formlogic_init - standard form logic initialization
- ===============================================================================================
- -->
- <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt" nodelist="env,credential,system,http"/>
-
- <!--
- ===============================================================================================
- get_advanced_settings - get advanced settings
- ===============================================================================================
- -->
- <xts:block id="get_advanced_settings" type="exec" processor="XSLT" mandatory="false" condition=".[/root/env/param[@name='m_class']='userInterfaceProfile']" mode="interpret">
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:template match="/">
- <xts:sequence>
- <xts:append>
- <advancedSettings>
- <xts:function name="getConfiguration">
- <xts:param name="COGADMIN.UIPROFILES.DEVELOPER_MODE"/>
- </xts:function>
- </advancedSettings>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!-- Load object-specific property tabs map ============================================================== -->
- <xts:block id="getTabs" dependency="get_advanced_settings" type="exec" mode="interpret" processor="XML" path="/portal/uiobjects_tabs.xml"/>
- <!--
- ===============================================================================================
- get_system_root - get system root from Configuration
- ===============================================================================================
- -->
- <xts:block id="get_system_root" type="exec" processor="XSLT" condition=".[/root/env/param[@name='m_class']='archiveLocation' or /root/env/param[@name='m_class']='URL']" mandatory="false" mode="interpret">
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:template match="/">
- <!-- get file system root from the Configuration -->
- <xts:sequence>
- <xts:append>
- <xts:function name="getConfiguration">
- <xts:param name="archiveLocationFileSchemeRoot"/>
- <xts:param name="CAF"/>
- </xts:function>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!-- Update these environment variables -->
- <!-- ** Note :
- ** 'ackageBase' is correct for the condition; since packageBase and metricsPackageBase have ackageBase in common.
- ** 'ViewBase' encompasses both reportViewBase and agentDefinitionViewBase and powerPlay8ReportViewBase.
- *** reportDataServiceAgentDefinitionBase - need to add this
- -->
- <xts:block
- id="updateEnv"
- type="exec"
- dependency="formlogic_init get_system_root"
- mode="interpret"
- processor="XSLT"
- condition=".[/root/env/param[@name='pty_deactivLang'] != '' or /root/env/param[@name='so.select']='contacts' or /root/env/param[@name='so.select']='dataSourceAccessAccount' or contains(/root/env/param[@name='so.select'],'ackageBase') or contains(/root/env/param[@name='so.select'],'ViewBase') or contains(/root/env/param[@name='so.select'],' reportDataServiceAgentDefinitionBase') or contains(/root/env/param[@name='so.select'],' powerPlay8ReportViewBase') or /root/env/param[@name='so.select']='dataMovementTaskAliasBase' or /root/env/param[@name='typeInContact']='true' or /root/env/param[@name='tenantChanged']='true']"
- mandatory="false">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:x="x" exclude-result-prefixes="xsl cm xtsext xts send x">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:key name="env-param" match="/root/env/param" use="@name"/>
- <xsl:template match="/">
- <!--
- Need to remove the fields from the properties_general page so that the updates do not occur here, since the user might
- press cancel on the properties page.
- -->
- <xts:sequence>
- <xsl:if test="key('env-param','pty_deactivLang') != ''">
- <xsl:variable name="rmLng" select="key('env-param','pty_deactivLang')"/>
- <xsl:variable name="nam"><xsl:value-of select="concat('m_t_default_name_',$rmLng)"/></xsl:variable>
- <xsl:variable name="sct"><xsl:value-of select="concat('m_t_default_screenTip_',$rmLng)"/></xsl:variable>
- <xsl:variable name="dsc"><xsl:value-of select="concat('m_t_default_description_',$rmLng)"/></xsl:variable>
- <xts:delete select="/root/env/param[@name='{$nam}']"/>
- <xts:delete select="/root/env/param[@name='{$dsc}']"/>
- <xts:delete select="/root/env/param[@name='{$sct}']"/>
- <xts:delete select="/root/env/param[@name='pty_deactivLang']"/>
- </xsl:if>
- <!-- ** Note :
- ** 'ackageBase' is correct; since packageBase and metricsPackageBase have 'ackageBase' in common.
- ** 'ViewBase' encompasses both reportViewBase and agentDefinitionViewBase.
- -->
- <xsl:if test="contains(string(key('env-param','so.select')),'ackageBase') or contains(string(key('env-param','so.select')),'dataMovementTaskAliasBase') or contains(string(key('env-param','so.select')),'ViewBase') or contains(string(key('env-param','so.select')),'reportDataServiceAgentDefinitionBase') or contains(string(key('env-param','so.select')),'powerPlay8ReportViewBase') or ((string(key('env-param','so.select'))='contacts' or string(key('env-param','so.select'))='dataSourceAccessAccount' ) and string(key('env-param','so.searchPath'))!='')">
- <xts:delete select="/root/env/param[@name='changed_genprop']"/>
- <xts:append select="/root/env">
- <param name="changed_genprop">1</param>
- </xts:append>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="string(key('env-param','typeInContact'))='true'">
- <xts:delete select="/root/env/param[@name='typeInContact' or @name='typeInEMailAddress' or @name='m_p_contactEMail' or @name='m_p_contact']"/>
- <xts:delete select="/root/env/param[starts-with(@name,'contact.so.')]"/>
- <xts:append select="/root/env">
- <param name="m_p_contactEMail"><xsl:value-of select="string(key('env-param','typeInEMailAddress'))"/></param>
- <param name="m_p_contact"/>
- </xts:append>
- </xsl:when>
- <xsl:when test="string(key('env-param','so.select'))='contacts' and string(key('env-param','so.searchPath'))!=''">
- <xts:delete select="/root/env/param[@name='typeInEMailAddress' or @name='emailAddress' or @name='m_p_contactEMail' or @name='m_p_contact']"/>
- <xts:delete select="/root/env/param[starts-with(@name,'contact.so.')]"/>
- <xts:append select="/root/env">
- <param name="m_p_contactEMail"/>
- <param name="m_p_contact"><xsl:value-of select="key('env-param','so.searchPath')"/></param>
- </xts:append>
- <xts:append select="/root/env">
- <xsl:for-each select="/root/env/param[starts-with(@name,'so.') and string(@name)!='so.select']">
- <param name="contact.{@name}"><xsl:value-of select="string(.)"/></param>
- </xsl:for-each>
- </xts:append>
- <xts:delete select="/root/env/param[starts-with(@name,'so.') and string(@name)!='so.select']"/>
- </xsl:when>
- <xsl:when test="string(key('env-param','so.select'))='dataSourceAccessAccount' and string(key('env-param','so.searchPath'))!=''">
- <xts:delete select="/root/env/param[@name='m_p_dataSourceAccessAccount']"/>
- <xts:delete select="/root/env/param[starts-with(@name,'accessAccount.so.')]"/>
- <xts:append select="/root/env">
- <param name="m_p_dataSourceAccessAccount"><xsl:value-of select="key('env-param','so.searchPath')"/></param>
- </xts:append>
- <xts:append select="/root/env">
- <xsl:for-each select="/root/env/param[starts-with(@name,'so.') and string(@name)!='so.select']">
- <param name="accessAccount.{@name}"><xsl:value-of select="string(.)"/></param>
- </xsl:for-each>
- </xts:append>
- <xts:delete select="/root/env/param[starts-with(@name,'so.') and string(@name)!='so.select']"/>
- </xsl:when>
- </xsl:choose>
- <xsl:if test="string(key('env-param','tenantChanged'))='true'">
- <xts:delete select="/root/env/param[@name='tenantChanged' or @name='newTenantID' or @name='newTenantName' or @name='m_p_tenantID' or @name='changed_m_p_tenantID' or @name='objTenantName']"/>
- <xts:append select="/root/env">
- <param name="m_p_tenantID"><xsl:value-of select="string(key('env-param','newTenantID'))"/></param>
- <param name="objTenantName"><xsl:value-of select="string(key('env-param','newTenantName'))"/></param>
- <param name="changed_m_p_tenantID">1</param>
- </xts:append>
- </xsl:if>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <xts:block id="createDefaultUserAcctProfile" processor="XSLT" type="exec" dependency="updateEnv" condition=".[/root/env/param[@name='m_tenantId'] and /root/env/param[@name='m_class'] = 'account' and starts-with(/root/env/param[@name='m_obj'],'/configuration/account') and (/root/env/param[@name='createDefaultUserAcctProfile'] = 'true') and not(/root/*[local-name()='queryResponse']/*)]" mandatory="false">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:cms="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cms/1/"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
- xmlns:form="http://developer.cognos.com/schemas/xts/portal/iFrmCmd/1/"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- exclude-result-prefixes="cms xts send cm pf form xtsext">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <pf:variables/>
- <xsl:template match="/">
- <xsl:variable name="targetTenantId" select="/root/env/param[@name='m_tenantId']"/>
- <xsl:variable name="tenantDisplayName">
- <xsl:choose>
- <xsl:when test="$targetTenantId">
- <xsl:value-of select="$targetTenantId"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="key('session-param', 'e_tenantDisplayName')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xts:sequence>
- <xts:append>
- <send:request provider="cm">
- <cm1:copy xmlns:cm1="http://developer.cognos.com/schemas/contentManagerService/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <objects SOAP-ENC:arrayType="bus:baseClass[1]" xsi:type="SOAP-ENC:Array" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
- <item xsi:type="bus:account">
- <searchPath xsi:type="bus:stringProp">
- <value xsi:type="xsd:string">/configuration/account[@tenantID=""]</value>
- </searchPath>
- </item>
- </objects>
- <targetPath xsi:type="bus:searchPathSingleObject">/configuration</targetPath>
- <options xsi:type="bus:copyOptions">
- <recursive xsi:type="xsd:boolean">true</recursive>
- <updateAction xsi:type="bus:updateActionEnum">fail</updateAction>
- <xsl:if test="$targetTenantId">
- <targetTenantID xsi:type="xsd:string"><xsl:value-of select="$targetTenantId"/></targetTenantID>
- </xsl:if>
- </options>
- </cm1:copy>
- </send:request>
- <xts:delete select="/root/env/param[@name='createDefaultUserAcctProfile']"/>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- getContent - get our data from Content Manager
- ===============================================================================================
- -->
- <xts:block id="getContent" processor="XSLT" type="exec" dependency="updateEnv createDefaultUserAcctProfile">
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:reqhelpers="http://developer.cognos.com/schemas/xts-cm/1/reqhelpers"
- xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- exclude-result-prefixes="xsl pf xtsext reqhelpers cml send cm">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <pf:variables/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <cm:search>
- <xsl:value-of select="/root/env/param[@name='m_obj']"/>
- </cm:search>
- <cm:properties>
- <cml:prop-general/>
- <cm:property name="owner"/>
- <cm:property name="tenantID"/>
- <cm:property name="name"/>
- <cm:property name="description"/>
- <cm:property name="screenTip"/>
- <cm:property name="documentType"/>
- <cm:property name="metadataModelPackage"/>
- <cm:property name="metadataModel"/>
- <cm:property name="hasChildren"/>
- <cm:property name="defaultPortalAction"/>
- <cm:property name="mostRecentEventList"/>
- <cm:property name="defaultOutputFormat"/>
- <cm:property name="executionFormat"/>
- <cm:property name="executionPrompt"/>
- <cm:property name="parent"/>
- <cm:property name="iconURI"/>
- <cm:property name="gateway"/>
- <cm:property name="format"/>
- <cm:property name="hidden"/>
- <xsl:if test="contains(' package role group ', concat(' ', /root/env/param[@name='m_class'], ' ')) and $isAdminUser">
- <cm:property name="routingHints"/>
- </xsl:if>
- <xsl:if test="/root/env/param[@name='m_class'] = 'package'">
- <cm:property name="userInterfaces"/>
- <cm:property name="effectiveUserCapabilities"/>
- </xsl:if>
- <xsl:if test="(/root/env/param[@name='m_class'] = 'package') or (/root/env/param[@name='m_class'] = 'folder') or (/root/env/param[@name='m_class'] = 'content') or (/root/env/param[@name='m_class'] = 'namespace') or (/root/env/param[@name='m_class'] = 'namespaceFolder') or (/root/env/param[@name='m_class'] = 'account')">
- <cm:property name="repositoryRules"/>
- </xsl:if>
- <xsl:if test="/root/env/param[@name='m_class'] = 'rolapDataSource'">
- <cm:property name="dataSourceAccessAccount"/>
- </xsl:if>
- <cm:property name="launchableType"/>
- </cm:properties>
- <cm:options schemaInfo="true">
- <cm:refProps>
- <cm:refProp refPropName="parent">
- <cm:properties>
- <cm:property name="searchPath"/>
- <cm:property name="permissions"/>
- <cm:property name="routingServerGroup"/>
- <cm:property name="repositoryRules"/>
- <cm:property name="tenantID"/>
- </cm:properties>
- </cm:refProp>
- <cm:refProp refPropName="contact">
- <cm:properties>
- <cm:property name="searchPath"/>
- <cm:property name="defaultName"/>
- <cm:property name="ancestors"/>
- <cm:property name="email"/>
- </cm:properties>
- </cm:refProp>
- <cm:refProp refPropName="dataSourceAccessAccount">
- <cm:properties>
- <cm:property name="searchPath"/>
- <cm:property name="defaultName"/>
- <cm:property name="ancestors"/>
- </cm:properties>
- </cm:refProp>
- <cm:refProp refPropName="owner">
- <cm:properties>
- <cm:property name="searchPath"/>
- <cm:property name="defaultName"/>
- <cm:property name="email"/>
- </cm:properties>
- </cm:refProp>
- <cm:refProp refPropName="target">
- <cm:properties>
- <cm:property name="searchPath"/>
- <cm:property name="storeID"/>
- <cm:property name="defaultName"/>
- <cm:property name="ancestors"/>
- <cm:property name="permissions"/>
- <cm:property name="parent"/>
- <cm:property name="documentType"/>
- <cm:property name="defaultPortalAction"/>
- <cm:property name="mostRecentEventList"/>
- <cm:property name="defaultOutputFormat"/>
- <cm:property name="executionFormat"/>
- <cm:property name="executionPrompt"/>
- <cm:property name="format"/>
- <cm:property name="launchableType"/>
- </cm:properties>
- </cm:refProp>
- <cm:refProp refPropName="base">
- <cm:properties>
- <cm:property name="searchPath"/>
- <cm:property name="defaultName"/>
- <cm:property name="ancestors"/>
- <cm:property name="permissions"/>
- <cm:property name="storeID"/>
- <cm:property name="defaultPortalAction"/>
- <cm:property name="defaultOutputFormat"/>
- <cm:property name="mostRecentEventList"/>
- </cm:properties>
- </cm:refProp>
- <cm:refProp refPropName="metadataModel">
- <cm:properties>
- <cm:property name="searchPath"/>
- <cm:property name="defaultName"/>
- <cm:property name="ancestors"/>
- <cm:property name="permissions"/>
- <cm:property name="storeID"/>
- </cm:properties>
- </cm:refProp>
- <cm:refProp refPropName="metadataModelPackage">
- <cm:properties>
- <cm:property name="searchPath"/>
- <cm:property name="defaultName"/>
- <cm:property name="userInterfaces"/>
- <cm:property name="effectiveUserCapabilities"/>
- <cm:property name="ancestors"/>
- <cm:property name="permissions"/>
- <cm:property name="storeID"/>
- </cm:properties>
- </cm:refProp>
- </cm:refProps>
- </cm:options>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- <xsl:if test="contains(' package role group ', concat(' ', /root/env/param[@name='m_class'], ' ')) and $isAdminUser">
- <xsl:variable name="classFilter">[@objectClass='package' or @objectClass='group' or @objectClass='role']</xsl:variable>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <cm:search>
- <xsl:value-of select="concat(/root/env/param[@name='m_obj'], '/ancestor::*', $classFilter)"/>
- </cm:search>
- <cm:properties>
- <cm:property name="routingHints"/>
- </cm:properties>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </xsl:if>
- </xts:append>
- <xsl:if test="/root/env/param[@name='m_class'] = 'package'">
- <xts:append>
- <packageModel>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <cm:search><xsl:value-of select="concat(string(/root/env/param[@name='m_obj']),'/model[last()]')"/></cm:search>
- <cm:properties>
- <cm:property name="permissions"/>
- <cm:property name="options"/>
- </cm:properties>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </packageModel>
- </xts:append>
- </xsl:if>
- <xsl:variable name="useSelected">
- <xsl:choose>
- <xsl:when test="contains(string(/root/env/param[@name='so.select']),'Base') and string(/root/env/param[@name='so.searchPath'])!=''">
- <xsl:value-of select="/root/env/param[@name='so.searchPath']"/>
- </xsl:when>
- <xsl:when test="contains(string(/root/env/param[@name='so.select']),'reportView') and /root/env/param[@name='m_p_base']"><xsl:value-of select="/root/env/param[@name='m_p_base']"/>
- </xsl:when>
- <xsl:when test="contains(string(/root/env/param[@name='so.select']),'dataMovementTaskAlias') and /root/env/param[@name='m_p_base']"><xsl:value-of select="/root/env/param[@name='m_p_base']"/>
- </xsl:when>
- <xsl:when test="contains(string(/root/env/param[@name='so.select']),'powerPlay8ReportView') and /root/env/param[@name='m_p_base']"><xsl:value-of select="/root/env/param[@name='m_p_base']"/>
- </xsl:when>
- <xsl:when test="contains(string(/root/env/param[@name='so.select']),'reportDataServiceAgentDef') and /root/env/param[@name='m_periodicalProducer']"><xsl:value-of select="/root/env/param[@name='m_periodicalProducer']"/>
- </xsl:when>
- <xsl:when test="/root/env/param[@name='m_p_metadataModelPackage']"><xsl:value-of select="/root/env/param[@name='m_p_metadataModelPackage']"/></xsl:when>
- <xsl:when test="/root/env/param[@name='m_agsr_metadataModelPackage']"><xsl:value-of select="/root/env/param[@name='m_agsr_metadataModelPackage']"/></xsl:when>
- </xsl:choose>
- </xsl:variable>
- <xsl:if test="$useSelected!=''">
- <xts:append>
- <selected>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <cm:search>
- <xsl:value-of select="$useSelected"/>
- </cm:search>
- <cm:properties>
- <cm:property name="searchPath"/>
- <cm:property name="defaultName"/>
- <cm:property name="ancestors"/>
- <cm:property name="permissions"/>
- </cm:properties>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </selected>
- </xts:append>
- <xts:delete select="/root/env/param[starts-with(@name,'so.') and @name != 'so.select']"/>
- <xsl:if test="not(string(/root/env/param[@name='so.select'])='') and contains(string(/root/env/param[@name='so.select']),'Base') and not(contains(string(/root/env/param[@name='so.select']),'package') or contains(string(/root/env/param[@name='so.select']),'metricspackage'))">
- <xts:delete select="/root/env/param[@name='m_p_base' or @name='m_periodicalProducer']"/>
- <xts:append select="/root/env">
- <xsl:choose>
- <xsl:when test="contains(string(/root/env/param[@name='so.select']),'reportView')">
- <param name="m_p_base"><xsl:value-of select="/root/env/param[@name='so.searchPath']"/></param>
- </xsl:when>
- <xsl:when test="contains(string(/root/env/param[@name='so.select']),'dataMovementTaskAlias')">
- <param name="m_p_base"><xsl:value-of select="/root/env/param[@name='so.searchPath']"/></param>
- </xsl:when>
- <xsl:when test="contains(string(/root/env/param[@name='so.select']),'powerPlay8ReportView')">
- <param name="m_p_base"><xsl:value-of select="/root/env/param[@name='so.searchPath']"/></param>
- </xsl:when>
- <xsl:when test="contains(string(/root/env/param[@name='so.select']),'reportDataServiceAgentDef')">
- <param name="m_periodicalProducer"><xsl:value-of select="/root/env/param[@name='so.searchPath']"/></param>
- </xsl:when>
- </xsl:choose>
- </xts:append>
- </xsl:if>
- </xsl:if>
- <!-- retrieve the index information -->
- <xsl:if test="$userCanUseIndexSearch">
- <xts:append>
- <indexResult>
- <reqhelpers:request faultBlock="ignoreFaultHandler" asText="true" href="bus://dispatcher" protocol="BUS" soapAction="$indexDataService$.session" responseEnvelope="false" outputHeader="false">
- <SOAP-ENV:Envelope xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <SOAP-ENV:Header>
- <xsl:copy-of select="/root/header/bus:biBusHeader"/>
- </SOAP-ENV:Header>
- <SOAP-ENV:Body>
- <ns:get xmlns:ns="http://developer.cognos.com/schemas/indexDataService/1/" xmlns:bibus="http://developer.cognos.com/schemas/bibus/3/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <externalGUID xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bibus:guid[1]">
- <item>
- <xts:queryValue select="/root/*[local-name()='queryResponse']/*/*[local-name()='storeID']"/>
- </item>
- </externalGUID>
- <options xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bibus:option[2]">
- <item xsi:type="bibus:asynchOptionInt">
- <name xsi:type="bibus:asynchOptionEnum">primaryWaitThreshold</name>
- <value xsi:type="xsd:int">0</value>
- </item>
- </options>
- </ns:get>
- </SOAP-ENV:Body>
- </SOAP-ENV:Envelope>
- </reqhelpers:request>
- </indexResult>
- </xts:append>
- </xsl:if>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!-- Build the multilingual XML structure /root/multiLangs/lang -->
- <xts:block id="getAgentContent" dependency="getContent" type="exec" mode="interpret" processor="XSLT" condition=".[not(root/*[local-name()='queryResponse'] = '') and root/*[local-name()='queryResponse']/*/*[local-name()='objectClass']='agentDefinition']" mandatory="false">
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append>
- <agentReport>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <cm:search>
- <xsl:value-of select="concat(string(/root/env/param[@name='m_obj']),'/report')"/>
- </cm:search>
- <cm:properties>
- <cml:prop-general/>
- <cm:property name="metadataModelPackage"/>
- <cm:property name="metadataModel"/>
- </cm:properties>
- <cm:options schemaInfo="true">
- <cm:refProps>
- <cm:refProp refPropName="metadataModel">
- <cm:properties>
- <cm:property name="searchPath"/>
- <cm:property name="defaultName"/>
- <cm:property name="ancestors"/>
- <cm:property name="permissions"/>
- <cm:property name="storeID"/>
- </cm:properties>
- </cm:refProp>
- <cm:refProp refPropName="metadataModelPackage">
- <cm:properties>
- <cm:property name="searchPath"/>
- <cm:property name="defaultName"/>
- <cm:property name="ancestors"/>
- <cm:property name="permissions"/>
- <cm:property name="storeID"/>
- </cm:properties>
- </cm:refProp>
- </cm:refProps>
- </cm:options>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </agentReport>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!-- Build the XML structure for reportDataServiceAgentDefinition (aka subscription) or get root of subscriptionFolder-->
- <xts:block id="getRdsadContent" dependency="getContent" type="exec" mode="interpret" processor="XSLT" condition=".[not(root/*[local-name()='queryResponse'] = '') and (root/*[local-name()='queryResponse']/*/*[local-name()='objectClass']='reportDataServiceAgentDefinition' or root/*[local-name()='queryResponse']/*/*[local-name()='objectClass']='subscriptionFolder')]" mandatory="false">
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append>
- <rdsad>
- <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 xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <cm:search>
- <xsl:text/>~/subscriptionFolder<xsl:text/>
- </cm:search>
- <cm:properties>
- <cm:property name="defaultName"/>
- <cm:property name="searchPath"/>
- </cm:properties>
- </cm:query>
- <xsl:if test="root/*[local-name()='queryResponse']/*/*[local-name()='objectClass']='reportDataServiceAgentDefinition'">
- <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <cm:search>
- <xsl:text/><xsl:value-of select="concat(/root/env/param[@name='m_obj'], '/schedule')"/><xsl:text/>
- </cm:search>
- <cm:properties>
- <cm:property name="defaultName"/>
- <cm:property name="periodicalProducer"/>
- <cm:property name="parent"/>
- </cm:properties>
- <cm:options schemaInfo="false">
- <cm:refProps>
- <cm:refProp refPropName="periodicalProducer">
- <cm:properties>
- <cm:property name="defaultName"/>
- <cm:property name="searchPath"/>
- <cm:property name="ancestors"/>
- </cm:properties>
- </cm:refProp>
- </cm:refProps>
- </cm:options>
- </cm:query>
- </xsl:if>
- </cm:requests>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </rdsad>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!-- Build the multilingual XML structure /root/multiLangs/lang -->
- <xts:block id="buildMultiLang" dependency="getContent getAgentContent getRdsadContent" type="exec" mode="interpret" processor="XSLT" path="/portal/multilingual.xml" condition=".[not(root/*[local-name()='queryResponse'][1] = '')]" mandatory="false"/>
- <!--
- ===============================================================================================
- getMyInfo - Personal stuff.
- ===============================================================================================
- -->
- <xts:block id="getMyAccount" processor="XSLT" type="exec" condition=".[/root/env/param[@name='changed_m_p_owner']='1' and /root/env/param[@name='m_email']='' and /root/env/param[@name='m_defaultName']='']" mandatory="false">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:key name="session-param" match="/root/session/param" use="@name"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append>
- <myInfo>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <cm:search>
- <xsl:choose>
- <xsl:when test="key('session-param', 'e_hp') and key('session-param', 'e_hp') !=''">
- <xsl:value-of select="key('session-param', 'e_hp')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="'~'"/>
- </xsl:otherwise>
- </xsl:choose>
- </cm:search>
- <cm:properties>
- <cm:property name="defaultName"/>
- <cm:property name="email"/>
- </cm:properties>
- <cm:options schemaInfo="true"/>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </myInfo>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <!--
- ===============================================================================================
- getObjTenantInfo - TenantID & DefaultName from tenant object.
- ===============================================================================================
- -->
- <xts:block id="getObjTenantInfo" path="/portal/tenants/getObjTenantInfo.xsl" mode="interpret" processor="XSLT" type="exec" mandatory="false" dependency="getContent" condition=".[not(/root/env/param[@name='m_new_class'] = 'tenant')]">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- </xts:block>
-
- <xts:block id="missingObject" mode="output" processor="XSLT" type="exec" mimeType="text/html" dependency="formlogic_init getTabs updateEnv getContent getAgentContent getRdsadContent buildMultiLang getMyAccount classNames createDefaultUserAcctProfile getObjTenantInfo" condition=".[not(/root/*[local-name()='queryResponse']/*)]" mandatory="false" path="/portal/missing_object.xml">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
- </xts:block>
- <!--
- ===============================================================================================
- getObjects - get object class names
- ===============================================================================================
- -->
- <xts:block id="classNames" type="exec" mode="input" processor="XML" path="/portal/uiExtensions.xml">
- <xts:logicsheet path="/logicsheets/uiobjects/uiobjects_names.xslt"/>
- </xts:block>
- <!--
- ===============================================================================================
- renderPage - render the page
- ===============================================================================================
- -->
- <xts:block id="renderPage" mode="output" processor="XSLT" type="exec" mimeType="text/html" dependency="formlogic_init getTabs updateEnv getContent getAgentContent getRdsadContent buildMultiLang getMyAccount classNames getObjTenantInfo" condition=".[/root/*[local-name()='queryResponse']/*]" mandatory="false">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/permissions.xsl"/>
- <xts:logicsheet path="logicsheets/formlogic_lite.xslt"/>
- <xts:logicsheet path="logicsheets/validation.xslt"/>
- <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
- xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/"
- xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
- xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
- xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
- xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
- xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
- xmlns:pm="http://developer.cognos.com/schemas/xts/pm"
- exclude-result-prefixes="bus pf xts dt xsl cf cp df dp lyt cm utml pm xtsext">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <xsl:variable name="mname" select="'properties_general.xts'"/>
- <pf:variables/>
- <pf:common-bidi-templates/>
- <pf:documentFormats/>
- <pf:gen-icon/>
- <xsl:variable name="the-object" select="/root/cm:queryResponse/*"/>
- <!-- we're looking at a subscriptionFolder or reportDataServiceAgentDefinition -->
- <xsl:variable name="isRDSAD" select="/root/rdsad"/>
- <!-- path to reportDataServiceAGentDefinition (subscription) namely periodicalProducer-->
- <xsl:variable name="rdsad-path" select="/root/rdsad/*/*/cm:schedule"/>
- <!-- variable used for reportCache values -->
- <xsl:variable name="maxDurationReportCache" select="$the-object/*[local-name()='retentions']/*[local-name()='retentionRule'][@objectClass='reportCache']/@maxDuration"/>
-
- <xsl:variable name="start-at-path">
- <xsl:choose>
- <xsl:when test="$isRDSAD">
- <xsl:value-of select="/root/rdsad/*/*/cm:subscriptionFolder/cm:searchPath"/>
- </xsl:when>
- <xsl:when test="starts-with($the-object/cm:searchPath, concat(key('session-param', 'e_hp'),'/folder')) or (starts-with($the-object/cm:searchPath, concat('~','/folder')))">
- <xsl:value-of select="concat(key('session-param', 'e_hp'),'/folder')"/>
- </xsl:when>
- <xsl:when test="starts-with($the-object/cm:searchPath, concat(key('session-param', 'e_hp'),'/dataSetFolder')) or (starts-with($the-object/cm:searchPath, concat('~','/dataSetFolder')))">
- <xsl:value-of select="concat(key('session-param', 'e_hp'),'/dataSetFolder')"/>
- </xsl:when>
- <xsl:when test="starts-with($the-object/cm:searchPath,'/content')">
- <xsl:value-of select="$defaultContentRoot"/>
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
- <cp:flyoutControl/>
- <xsl:variable name="has_write_permission" select="contains(/root/cm:queryResponse/*/cm:permissions, 'write')"/>
- <xsl:variable name="has_write_permission_to_agentReport" select="contains(/root/agentReport/cm:queryResponse/*/cm:permissions, 'write')"/>
- <xsl:variable name="has_read_permission" select="contains(/root/cm:queryResponse/*/cm:permissions, 'read')"/>
- <xsl:variable name="has_policy_permission" select="contains(/root/cm:queryResponse/*/cm:permissions, 'setPolicy')"/>
- <xsl:variable name="has_traverse_permission" select="contains(/root/cm:queryResponse/*/cm:permissions, 'traverse')"/>
- <xsl:variable name="parent_is_public" select="$the-object/cm:parent/*/cm:tenantID=''"/>
- <xsl:variable name="theObjectName" select="string($the-object/cm:defaultName)"/>
- <xsl:variable name="noUserProfile" select="key('env-param','m_class')='account' and not(starts-with($the-object/cm:searchPath,'/configuration/account')) and $the-object/cm:modificationTime=''"/>
- <xsl:variable name="browserTitle">
- <xts:string id="IDS_PROPERTIES_TITLE">
- <xts:param name="objectName">
- <span lang="{$contentLocale}"><xsl:value-of select="xtsext:enforceBTD($theObjectName, $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/></span>
- </xts:param>
- </xts:string>
- </xsl:variable>
- <xsl:variable name="default-product-locale">
- <!-- TODO: IS IT CORRECT TO GET THIS FROM THE HTTP HEADER... -->
- <!--xsl:value-of select="translate(string($contentLocale), 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz' )"/-->
- <xsl:value-of select="$contentLocale"/>
- </xsl:variable>
- <!-- isReadOnly is set up for A11y, so all the tables can be setup for document for read-only so once user gets to conent he will arrow through (traverse permission does not matter)-->
- <xsl:variable name="isReadOnly">
- <xsl:choose>
- <xsl:when test="$has_write_permission and $noUserProfile!=true()">false</xsl:when>
- <xsl:otherwise>true</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="rootFolder" select="key('session-param','e_proot')='' and key('session-param','e_mroot')=''"/>
- <xsl:variable name="compareField">
- <xsl:choose>
- <xsl:when test="/root/cm:queryResponse/*/cm:defaultName[@modifiable = 'true']">m_t_default_name_</xsl:when>
- <xsl:when test="/root/cm:queryResponse/*/cm:defaultDescription[@modifiable = 'true']">m_t_default_description_</xsl:when>
- <xsl:when test="/root/cm:queryResponse/*/cm:defaultScreenTip[@modifiable = 'true']">m_t_default_screenTip_</xsl:when>
- <xsl:otherwise>noDefaultField</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="lg" select="/root/env/param[starts-with(@name,$compareField)]"/>
- <xsl:variable name="rootDefault" select="/root/multiLangs/useLangAsDefault"/>
- <xsl:variable name="lang">
- <xsl:choose>
- <xsl:when test="key('env-param','pty_activeLang')!=''"><xsl:value-of select="key('env-param','pty_activeLang')"/></xsl:when>
- <xsl:when test="$rootDefault != 'NOMATCH'"><xsl:value-of select="$rootDefault"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="/root/multiLangs/name[position()=1]"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="activeLang">
- <xsl:choose>
- <xsl:when test="string(key('env-param','pty_activeLang'))!=''"><xsl:value-of select="key('env-param','pty_activeLang')"/></xsl:when>
- <xsl:when test="string(key('env-param','pty_del')) != ''"><xsl:value-of select="$lang"/></xsl:when>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="showOKCancel" select="($has_write_permission or $has_policy_permission) and $noUserProfile!=true()"/>
- <!-- The objects (eg., reportView) base object -->
- <xsl:variable name="base" select="$the-object/cm:base/*"/>
- <!-- The objects (eg., shortcut) target object -->
- <xsl:variable name="target" select="$the-object/cm:target/*"/>
- <xsl:variable name="objectHiddenProperty" select="$the-object/cm:hidden"/>
- <xsl:variable name="uiClass" select="$the-object/cm:objectClass"/>
- <xsl:variable name="objClass">
- <xsl:choose>
- <xsl:when test="$target and $target/cm:objectClass!='nil'">
- <xsl:value-of select="$target/cm:objectClass"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$uiClass"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="launchableType">
- <xsl:choose>
- <xsl:when test="$target and $target/cm:launchableType!='nil'">
- <xsl:value-of select="$target/cm:launchableType"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$the-object/cm:launchableType"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="showHideEntry" select="$userCanUseShowHiddenObjectsPreferenceCapability='true' and $objectHiddenProperty and /root/objectClass/class[@name=$objClass and string(@canHide)!='false'] and $has_read_permission"/>
- <xsl:variable name="chkSpaceEnterKeyEvent">if (event.keyCode==13 || event.keyCode==32 || event.charCode==32)</xsl:variable>
-
- <!-- start the output -->
- <xsl:template match="/root">
- <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text><dp:page longTitle="$browserTitle" class="tundra">
- <dp:meta>
- <pf:meta/>
- </dp:meta>
- <pf:script/>
- <dp:script>
- <script src="{$webRoot}/dojo16/dojo/dojo.js"/>
- <link id="themeStyles" rel="stylesheet" href="{$webcontent}/../dojo16/dijit/themes/tundra/tundra.css"/>
- <script language="javascript" src="{$webcontent}/{$app}/js/CCflyoutMenu.js"/>
- <script language="javascript" src="{$webcontent}/{$app}/js/utilities.js"/>
- <script language="javascript">
- function removeUCCFromStr(str)
- {
- if (typeof bidi != "undefined" && typeof bidi["removeUCCFromStr"] != "undefined")
- {
- return bidi.removeUCCFromStr(str);
- }
- else
- {
- return str;
- }
- }
- </script>
- <pf:help context="HID_PROPERTIES"/>
- <xsl:if test="($has_write_permission or $has_policy_permission) and (not(key('env-param','ps_nav_stack')) or key('env-param','ps_nav_stack') = '')">
- <script language="javascript">
- <!-- cwb - Cancel When Back - there are no stack pages. -->
- function cwb()
- {
- <!-- Reset the hHints before cancelling the page -->
- clearSessionEntry('hHints');
- location.href = "<xsl:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='backURL']))"/>";
- }
- </script>
- </xsl:if>
- <xsl:if test="($has_read_permission or $has_write_permission) and $noUserProfile!=true()">
- <script language="javascript">
- function getPropertiesChanged()
- {
- return ((document.pform['changed_genprop'] && document.pform['changed_genprop'].value=='1') || '<xsl:value-of select="string(/root/env/param[starts-with(string(@name),'changed_') and string(.)='1'])"/>' == '1') ? true : false;
- }
- function redirect(cmd)
- {
- if (window.resetPageState)
- {
- resetPageState();
- }
- if( cmd == 'undefined' || cmd == null )
- {
- <xsl:choose>
- <xsl:when test="$the-object/cm:base">
- document.location.href="<xsl:value-of select="$gateway"/>?b_action=xts.run&m=<xsl:value-of select="$app"/>/<xsl:value-of select="$mname"/>&m_name=<xsl:value-of select="xtsext:protect(xtsext:urlencode(string($base/cm:defaultName)),'url','userData','getdata')"/>&m_class=<xsl:value-of select="$base/cm:objectClass"/>&m_obj=<xsl:value-of select="xtsext:protect(xtsext:urlencode(string($base/cm:searchPath)),'url','searchPath','getdata')"/>&backURL=<xsl:value-of select="xtsext:protect(xtsext:urlencode(string(key('env-param', 'backURL'))),'url','url','getdata')"/>";
- </xsl:when>
- <xsl:when test="$the-object/cm:target and ($the-object/cm:target/*/cm:objectClass='output' or $the-object/cm:target/*/cm:objectClass='documentContent')">
- document.location.href="<xsl:value-of select="$gateway"/>?b_action=xts.run&m=<xsl:value-of select="$app"/>/properties_basic.xts&m_name=<xsl:value-of select="xtsext:protect(xtsext:urlencode(string(cm:queryResponse/*/cm:target/*/cm:defaultName)),'url','userData','getdata')"/>&m_obj=<xsl:value-of select="xtsext:protect(xtsext:urlencode(string(cm:queryResponse/*/cm:target/*/cm:searchPath)),'url','searchPath','getdata')"/>&m_path=<xsl:value-of select="xtsext:protect(xtsext:urlencode(string(cm:queryResponse/*/cm:target/*/cm:parent/*/cm:searchPath)),'url','searchPath','getdata')"/>&m_class=<xsl:value-of select="cm:queryResponse/*/cm:target/*/cm:objectClass"/>&backURL=<xsl:value-of select="xtsext:protect(xtsext:urlencode(string(key('env-param', 'backURL'))),'url','url','getdata')"/>";
- </xsl:when>
- <xsl:when test="$the-object/cm:target">
- document.location.href="<xsl:value-of select="$gateway"/>?b_action=xts.run&m=<xsl:value-of select="$app"/>/<xsl:value-of select="$mname"/>&m_name=<xsl:value-of select="xtsext:protect(xtsext:urlencode(string(cm:queryResponse/*/cm:target/*/cm:defaultName)),'url','userData','getdata')"/>&m_obj=<xsl:value-of select="xtsext:protect(xtsext:urlencode(string(cm:queryResponse/*/cm:target/*/cm:searchPath)),'url','searchPath','getdata')"/>&m_path=<xsl:value-of select="xtsext:protect(xtsext:urlencode(string(cm:queryResponse/*/cm:target/*/cm:parent/*/cm:searchPath)),'url','searchPath','getdata')"/>&m_class=<xsl:value-of select="cm:queryResponse/*/cm:target/*/cm:objectClass"/>&backURL=<xsl:value-of select="xtsext:protect(xtsext:urlencode(string(key('env-param', 'backURL'))),'url','url','getdata')"/>";
- </xsl:when>
- </xsl:choose>
- }
- <xsl:if test="$has_write_permission">
- else if( cmd == 'save' )
- {
- setFormInputElement("m","<xsl:value-of select="xtsext:javascriptencode($app)"/>/submit.xts");
- setFormInputElement("ps-nav-op","maintain");
- setFormInputElement("redirect.m","<xsl:value-of select="xtsext:javascriptencode($app)"/>/<xsl:value-of select="$mname"/>");
- setFormInputElement("redirect.b_action","xts.run");
- <xsl:choose>
- <xsl:when test="$the-object/cm:base">
- <xsl:choose>
- <xsl:when test="string(key('env-param','m_p_base'))=''">
- setFormInputElement("redirect.m_name","<xsl:value-of select="xtsext:javascriptencode(string($base/cm:defaultName))"/>");
- setFormInputElement("redirect.m_class","<xsl:value-of select="xtsext:javascriptencode(string($base/cm:objectClass))"/>");
- setFormInputElement("redirect.m_obj","<xsl:value-of select="xtsext:javascriptencode(string($base/cm:searchPath))"/>");
- </xsl:when>
- <xsl:otherwise>
- setFormInputElement("redirect.m_name","<xsl:value-of select="xtsext:javascriptencode(string(/root/selected/cm:queryResponse/*/cm:defaultName))"/>");
- setFormInputElement("redirect.m_class","<xsl:value-of select="xtsext:javascriptencode(string(/root/selected/cm:queryResponse/*/cm:objectClass))"/>");
- setFormInputElement("redirect.m_obj","<xsl:value-of select="xtsext:javascriptencode(string(/root/selected/cm:queryResponse/*/cm:searchPath))"/>");
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="$the-object/cm:target">
- setFormInputElement("redirect.m_name","<xsl:value-of select="xtsext:javascriptencode(string($target/cm:defaultName))"/>");
- setFormInputElement("redirect.m_class","<xsl:value-of select="xtsext:javascriptencode(string($target/cm:objectClass))"/>");
- setFormInputElement("redirect.m_obj","<xsl:value-of select="xtsext:javascriptencode(string($target/cm:searchPath))"/>");
- </xsl:when>
- </xsl:choose>
- setFormInputElement("redirect.backURL","<xsl:value-of select="xtsext:javascriptencode(string(key('env-param', 'backURL')))"/>");
- document.pform.submit();
- }
- </xsl:if>
- }
- </script>
- </xsl:if>
- <xsl:if test="$has_write_permission and $noUserProfile!=true()">
- <script language="javascript">
- var MSG_NEED_ONE_NAME = "<xts:string id="IDS_PROP_NEED_ONE_NAME" encode="javascript"/>";
- var MSG_NEED_ONE_NAME_CANT_REMOVE = "<xts:string id="IDS_PROP_NEED_ONE_NAME_CANT_REMOVE" encode="javascript"/>";
- var curLang = "<xsl:text/><xsl:value-of select="xtsext:javascriptencode(string($lang))"/>";
- function removeLang()
- {
- if( !validate() )
- return;
- if( hasAName(null,true) == true )
- {
- if( document.pform['ro_name'].value == 'true' && document.pform['pty_keep'] && document.pform['pty_keep'].value == document.pform['m_transloc'].options[document.pform['m_transloc'].selectedIndex].value)
- {
- if( document.pform['pty_desc'] )
- document.pform['pty_desc'].value = "";
- if( document.pform['pty_scrt'] )
- document.pform['pty_scrt'].value = "";
- }
- else
- {
- document.pform['pty_deactivLang'].value = document.pform['m_transloc'].options[document.pform['m_transloc'].selectedIndex].value;
- document.body.style.cursor = "wait";
- clearView();
- if( document.pform['m_transloc'] )
- document.pform['m_transloc'].disabled = true;
- if( document.pform['pty_name'] )
- document.pform['pty_name'].disabled=true;
- if( document.pform['pty_desc'] )
- document.pform['pty_desc'].disabled=true;
- if( document.pform['pty_scrt'] )
- document.pform['pty_scrt'].disabled=true;
- setPropertiesChanged();
- document.pform['pty_del'].value = "1";
- document.pform['pty_add'].value = "";
- document.pform['pty_activeLang'].value = "";
- document.pform.ps_nav_op.value = "maintain";
- document.pform.m.value = "<xsl:value-of select="concat($app,'/',$mname)"/>";
- document.pform.submit();
- }
- }
- else
- {
- alert(MSG_NEED_ONE_NAME_CANT_REMOVE);
- }
- }
- function anyNames(namVal)
- {
- if( hasAName(namVal,false) == false )
- {
- alert(MSG_NEED_ONE_NAME);
- }
- if (document.pform['m_t_default_name_'+curLang] != null) {
- document.pform['m_t_default_name_'+curLang].value = namVal;
- }
- if(namVal!="")
- setPropertiesChanged();
- }
- function hasAName(namVal, remove)
- {
- <!--
- This javascript function checks to make sure that there are values for the name entry
- for all the currently active languages.
- -->
- if (document.pform['ro_name'].value == 'true')
- {
- if (remove) {
- if( document.pform['origDefLang'].value != "" && document.pform['origDefLang'].value == document.pform['m_transloc'].options[document.pform['m_transloc'].selectedIndex].value)
- {
- if ( document.pform['pty_keep'] )
- {
- return true;
- }
- return false;
- }
- }
- return true;
- }
- var valCnt = 0;
- var entCnt = 0;
- for( i=0; i < document.pform['m_transloc'].options.length; i++ )
- {
- if( document.pform['m_t_default_name_'+document.pform['m_transloc'].options[i].value])
- {
- entCnt += 1;
- if( document.pform['m_t_default_name_'+document.pform['m_transloc'].options[i].value].value != '' )
- valCnt += 1;
- }
- }
- if( valCnt > 1)
- {
- return true;
- }
- else
- {
- if( entCnt == 1)
- {
- <!-- Only 1 entry so cannot be blank -->
- if( namVal )
- {
- if( namVal == "")
- return false;
- }
- else
- { <!-- Should never have this condition... but leave it here for good measure!!! -->
- if( document.pform['pty_name'] && document.pform['pty_name'].value == "" )
- {
- return false;
- }
- }
- return true;
- }
- else
- {
- var optVal = document.pform['m_transloc'].options[document.pform['m_transloc'].selectedIndex].value;
- <!-- Condition when user has changed the contents of the Name: field -->
- if( namVal )
- {
- if( namVal == "" )
- {
- if( (valCnt == 0) || (valCnt == 1 && document.pform['m_t_default_name_'+optVal].value != ""))
- {
- return false;
- }
- }
- }
- else
- {
- <!-- multiple entries but none of which has a value! -->
- if (valCnt == 0 ) {
- return false;
- }
- <!-- Condition when removing a language from the dropdown list and it is the only one with a value -->
- if (remove && valCnt == 1 && document.pform['m_t_default_name_'+optVal].value != "")
- {
- return false;
- }
- }
- return true;
- }
- }
- }
- function checkLang(x)
- {
- <!--
- This javascript function checks to see if the language exists in the top part of the list (entries before the
- delimiter line) or if we need to do a reload to create m_t_default* hidden input entries for the new value.
- -->
- <!-- What is the current selected language. -->
- var selectedLang = x.options[x.selectedIndex].value;
- <!-- The value, "not", is for the delimiter line. If it is selected, then force the view back to the top of the list -->
- if (selectedLang == "not")
- {
- x.options[x.selectedIndex].selected = false;
- x.options[0].selected = true;
- selectedLang = x.options[0].value;
- }
- <!-- set focus to the name so that the user cannot use the scroll wheel on a mouse and screw stuff up -->
- if( document.pform['pty_name'] )
- {
- document.pform['pty_name'].focus();
- }
- else
- {
- if( document.pform['pty_scrt'] )
- {
- document.pform['pty_scrt'].focus();
- }
- else
- {
- if( document.pform['pty_desc'] )
- document.pform['pty_desc'].focus();
- }
- }
- <xsl:if test="$compareField != 'noDefaultField'">
- setForm();
- <!-- We have a language that is available in the top of the list, so use what's available locally. -->
- if( document.pform['<xsl:value-of select="xtsext:javascriptencode(string($compareField))"/>'+ selectedLang])
- {
- setView();
- document.pform['pty_del'].value = "";
- document.pform['pty_add'].value = "";
- document.pform['pty_activeLang'].value = selectedLang;
- curLang = selectedLang;
- }
- else
- {
- <!-- There is no locally available language entry, so go off and create the new one-->
- <!-- Visual indicator that something is going on -->
- document.body.style.cursor = "wait";
- clearView();
- if( document.pform['m_transloc'] )
- document.pform['m_transloc'].disabled = true;
- if( document.pform['pty_name'] )
- document.pform['pty_name'].disabled = true;
- if( document.pform['pty_desc'] )
- document.pform['pty_desc'].disabled = true;
- if( document.pform['pty_scrt'] )
- document.pform['pty_scrt'].disabled = true;
- document.pform['pty_del'].value = "";
- document.pform['pty_add'].value = "1";
- document.pform['pty_activeLang'].value = selectedLang;
- document.pform.ps_nav_op.value = "maintain";
- document.pform.m.value = "<xsl:value-of select="concat($app,'/',$mname)"/>";
- document.pform.submit();
- }
- </xsl:if>
- }
- function chgD(val)
- {
- document.pform['m_t_default_description_'+curLang].value = val;
- setPropertiesChanged();
- }
- function chgST(val)
- {
- document.pform['m_t_default_screenTip_'+curLang].value = val;
- setPropertiesChanged();
- }
- function setPropertiesChanged()
- {
- document.pform['changed_genprop'].value='1';
- }
- function clearView()
- {
- <!-- Clear out the display fields. -->
- var updateBTD = isBidiEnabled && (bidi.baseTextDirection == 'auto');
- if( document.pform['pty_name'] ){
- document.pform['pty_name'].value = "";
- if (updateBTD){
- document.pform['pty_name'].dir = bidi.resolveStrBtd("");
- }
- }
- if( document.pform['pty_desc'] ){
- document.pform['pty_desc'].value = "";
- if (updateBTD){
- document.pform['pty_desc'].dir = bidi.resolveStrBtd("");
- }
- }
- if( document.pform['pty_scrt'] ){
- document.pform['pty_scrt'].value = "";
- if (updateBTD){
- document.pform['pty_scrt'].dir = bidi.resolveStrBtd("");
- }
- }
- }
- function setForm()
- {
- <!-- Load what is currently displayed in the fields into the appropriate hidden fields. -->
- if( document.pform['pty_name'] )
- document.pform['m_t_default_name_'+curLang].value = document.pform['pty_name'].value;
- if( document.pform['pty_desc'] )
- document.pform['m_t_default_description_'+curLang].value = document.pform['pty_desc'].value;
- if( document.pform['pty_scrt'] )
- document.pform['m_t_default_screenTip_'+curLang].value = document.pform['pty_scrt'].value;
- }
- function setView()
- {
- <!-- Load what is currently in the hidden selected languages fields into the appropriate display fields. -->
- var updateBTD = isBidiEnabled && (bidi.baseTextDirection == 'auto');
- var selectedLang = document.pform['m_transloc'].options[document.pform['m_transloc'].selectedIndex].value;
- if( document.pform['pty_name'] ){
- document.pform['pty_name'].value = document.pform['m_t_default_name_'+ selectedLang].value;
- if (updateBTD){
- document.pform['pty_name'].dir = bidi.resolveStrBtd(document.pform['pty_name'].value);
- }
- }
- if( document.pform['pty_desc'] ){
- document.pform['pty_desc'].value = document.pform['m_t_default_description_'+ selectedLang].value;
- if (updateBTD){
- document.pform['pty_desc'].dir = bidi.resolveStrBtd(document.pform['pty_desc'].value);
- }
- }
- if( document.pform['pty_scrt'] ){
- document.pform['pty_scrt'].value = document.pform['m_t_default_screenTip_'+ selectedLang].value;
- if (updateBTD){
- document.pform['pty_scrt'].dir = bidi.resolveStrBtd(document.pform['pty_scrt'].value);
- }
- }
- }
- function init()
- {
- <!-- Load up the display language -->
- <!-- alert(document.pform['pty_activeLang'].value); -->
- if( document.pform['pty_activeLang'] && document.pform['pty_activeLang'].value == "")
- {
- document.pform['pty_activeLang'].value = document.pform['m_transloc'].options[document.pform['m_transloc'].selectedIndex].value;
- setView();
- }
- else
- {
- <!-- Do not load the values for display if the fields is currently being deleted -->
- <xsl:if test="string(key('env-param','pty_del'))!=''">
- setView();
- </xsl:if>
- }
- if( document.pform['pty_name'] && document.pform['pty_name'].value == '' )
- {
- try{
- document.pform['pty_name'].focus();
- }catch(e){
- //it is possible the when this control is rendered in a modal dialog that the control
- //is not yet visible...hence we get here...just try again in a few moments
- setTimeout("try{document.pform['pty_name'].focus()}catch(e){}", 11);
- }
- }
- document.pform['pty_add'].value="";
- document.pform['pty_del'].value="";
- if (document.pform.maxNumber_history)
- {
- if (document.pform.rg_retention_history[0].checked)
- {
- document.pform.maxNumber_history.disabled = false;
- }
- else
- {
- document.pform.duration_history.disabled = false;
- }
- }
- if (document.pform.maxNumber_reportVersion)
- {
- if (document.pform.rg_retention_reportVersion[0].checked)
- {
- document.pform.maxNumber_reportVersion.disabled = false;
- }
- else
- {
- document.pform.duration_reportVersion.disabled = false;
- }
- }
- //Report any save errors
- if (document.pform.cmdErrorMessage)
- {
- if (document.pform.cmdErrorMessage.value != '')
- {
- alert(document.pform.cmdErrorMessage.value);
- document.pform.cmdErrorMessage.value='';
- }
- }
- }
- <xsl:if test="$has_write_permission">
- function settrans()
- {
- <!--
- Used by this morphlet in the block (updateEnv) to remove the m_p_default... entries, so that on
- return from properties_multilingual the cm:query is executed to retrieve the latest information.
- -->
- document.pform.toMultilingual.value = '1';
- }
- </xsl:if>
- function validate()
- {
- if( hasAName(null,false) == false ){
- alert(MSG_NEED_ONE_NAME);
- return false;
- }
- if(document.pform.h_CAM_action)
- document.pform.h_CAM_action.value='generateTC';
- if (document.pform.m_p_uri)
- {
- if ( trim(document.pform.m_p_uri.value) == "" )
- {
- document.pform.m_p_uri.focus();
- alert("<xts:string id="IDS_PROP_ERR_NO_URI" encode="javascript"/>");
- return false;
- }
- }
- if (document.pform.m_p_archiveLocation_uri)
- {
- if ( trim(document.pform.m_p_archiveLocation_uri.value) == "" )
- {
- document.pform.m_p_archiveLocation_uri.focus();
- alert("<xts:string id="IDS_PROP_ERR_NO_URI" encode="javascript"/>");
- return false;
- }
- }
- // if retention for runHistory is present on the page validate the values
- if (document.pform.maxNumber_history)
- {
- if (document.pform.rg_retention_history[0].checked)
- {
- document.pform.maxNumber_history.value = trim(document.pform.maxNumber_history.value);
- if(validate_positiveIntegerOrZeroProp(document.pform.maxNumber_history)==false)
- return false;
- }
- else
- {
- document.pform.duration_history.value = trim(document.pform.duration_history.value);
- if(validate_positiveIntegerProp(document.pform.duration_history)==false)
- return false;
- }
- }
- // if retention for reportVersion is present on the page then validate the values
- if (document.pform.maxNumber_reportVersion)
- {
- if (document.pform.rg_retention_reportVersion[0].checked)
- {
- document.pform.maxNumber_reportVersion.value = trim(document.pform.maxNumber_reportVersion.value);
- if(validate_positiveIntegerOrZeroProp(document.pform.maxNumber_reportVersion)==false)
- return false;
- }
- else
- {
- document.pform.duration_reportVersion.value = trim(document.pform.duration_reportVersion.value);
- if(validate_positiveIntegerProp(document.pform.duration_reportVersion)==false)
- return false;
- }
- }
- // if retention for documentVersion is present on the page then validate the values
- if (document.pform.maxNumber_documentVersion)
- {
- if (document.pform.rg_retention_documentVersion[0].checked)
- {
- document.pform.maxNumber_documentVersion.value = trim(document.pform.maxNumber_documentVersion.value);
- if(validate_positiveIntegerOrZeroProp(document.pform.maxNumber_documentVersion)==false)
- return false;
- }
- else
- {
- document.pform.duration_documentVersion.value = trim(document.pform.duration_documentVersion.value);
- if(validate_positiveIntegerProp(document.pform.duration_documentVersion)==false)
- return false;
- }
- }
- return true;
- }
- function makeOwner()
- {
- if( !validate() )
- return;
- document.pform.m_p_owner.value = '<xsl:value-of select="xtsext:javascriptencode(string(key('session-param', 'e_hp')))"/>';
- document.pform.changed_m_p_owner.value = '1';
- document.pform.m.value = '<xsl:value-of select="concat($app,'/',$mname)"/>';
- document.pform.ps_nav_op.value= 'maintain';
- document.pform.m_class.value = '<xsl:value-of select="xtsext:javascriptencode(string(key('env-param','m_class')))"/>';
- document.pform.submit();
- }
- <!-- Make sure the value is a positive integer (1,2,...) -->
- function validate_positiveIntegerProp(e)
- {
- if (e.value < 1 || isNaN(e.value) || parseInt(e.value, 10) != e.value)
- {
- window.alert("<xts:string id="IDS_ERR_POSITIVE" encode="javascript"/>");
- e.focus();
- return false;
- }
- }
- <!-- Make sure the value is a positive integer or 0 (0,1,2,...) -->
- function validate_positiveIntegerOrZeroProp(e)
- {
- if (e.value < 0 || isNaN(e.value) || parseInt(e.value, 10) != e.value)
- {
- window.alert("<xts:string id="IDS_ERR_NON_NEGATIVE" encode="javascript"/>");
- e.focus();
- return false;
- }
- }
- </script>
- </xsl:if>
- </dp:script>
- <utml:form id="theForm" name="pform" method="post" action="{$gateway}">
- <utml:exclude-prefix>m_t_default_</utml:exclude-prefix>
- <utml:excludes>m_p_metadataModel</utml:excludes>
- <utml:excludes>m_p_metadataModelPackage</utml:excludes>
- <utml:excludes>m_agsr_metadataModelPackage</utml:excludes>
- <utml:excludes>emailAddress</utml:excludes>
- <utml:excludes>selectedTenantName</utml:excludes>
- <utml:read-only>
- <xsl:value-of select="$isReadOnly"/>
- </utml:read-only>
- <xsl:if test="not($has_write_permission)">
- <utml:input type="hidden" name="m_return" value=""/>
- </xsl:if>
- <!--
- The following hidden variables need only be defined when user has write permission.
- -->
- <xsl:if test="$has_write_permission and $noUserProfile!=true()">
- <!--
- owner processing variables.
- -->
- <xsl:if test="contains(' analysis interactiveReport report reportView query ', concat(' ', $the-object/cm:objectClass, ' '))">
- <utml:input type="hidden" name="rg_retention_reportCache">
- <xsl:attribute name="value">
- <xsl:value-of select="$maxDurationReportCache"/>
- </xsl:attribute>
- </utml:input>
- <utml:input type="hidden" name="duration_reportCache">
- <xsl:attribute name="value">
- <xsl:choose>
- <xsl:when test="contains($maxDurationReportCache, 'D')">
- <xsl:value-of select="substring-before(substring-after($maxDurationReportCache,'P'),'D')"/>
- </xsl:when>
- <xsl:when test="contains($maxDurationReportCache, 'M')">
- <xsl:value-of select="substring-before(substring-after($maxDurationReportCache,'P'),'M')"/>
- </xsl:when>
- </xsl:choose>
- </xsl:attribute>
- </utml:input>
- <utml:input type="hidden" name="durationSelect_reportCache">
- <xsl:attribute name="value">
- <xsl:choose>
- <xsl:when test="contains($maxDurationReportCache, 'D')">
- <xsl:value-of select="'days'"/>
- </xsl:when>
- <xsl:when test="contains($maxDurationReportCache, 'M')">
- <xsl:value-of select="'months'"/>
- </xsl:when>
- </xsl:choose>
- </xsl:attribute>
- </utml:input>
- </xsl:if>
- <utml:input type="hidden" name="m_p_owner" value=""/>
- <utml:input type="hidden" name="changed_m_p_owner" value="0"/>
- <utml:input type="hidden" name="changed_genprop" value="0"/>
- <utml:input type="hidden" name="so.select" value="" utml:update="false"/>
- <utml:input id="soReturnM" type="hidden" name="so.return.m" utml:update="false">
- <xsl:attribute name="value">
- <xsl:value-of select="concat($app,'/',$mname)"/>
- </xsl:attribute>
- </utml:input>
- <utml:input type="hidden" name="so.defaultLocation" value="" utml:update="false"/>
- <utml:input type="hidden" name="so.defaultObject" value="" utml:update="false"/>
- <utml:input type="hidden" name="ro_name">
- <xsl:attribute name="value">
- <xsl:choose>
- <xsl:when test="$the-object/cm:defaultName[@modifiable = 'false']">true</xsl:when>
- <xsl:otherwise>false</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- </utml:input>
- <utml:input type="hidden" name="origDefLang">
- <xsl:attribute name="value">
- <xsl:if test="string(/root/multiLangs/useLangAsDefault) != 'NOMATCH'">
- <xsl:value-of select="/root/multiLangs/useLangAsDefault"/>
- </xsl:if>
- </xsl:attribute>
- </utml:input>
- <utml:input type="hidden" name="m_email">
- <xsl:attribute name="value">
- <xsl:choose>
- <xsl:when test="key('env-param','changed_m_p_owner')='1' and key('env-param','m_email')='' and key('env-param','m_defaultName')=''"><xsl:value-of select="/root/myInfo//cm:email"/></xsl:when>
- <xsl:when test="key('env-param','m_email')"><xsl:value-of select="key('env-param','m_email')"/></xsl:when>
- </xsl:choose>
- </xsl:attribute>
- </utml:input>
- <utml:input type="hidden" name="m_defaultName">
- <xsl:attribute name="value">
- <xsl:choose>
- <xsl:when test="key('env-param','changed_m_p_owner')='1' and key('env-param','m_email')='' and key('env-param','m_defaultName')=''"><xsl:value-of select="/root/myInfo//cm:defaultName"/></xsl:when>
- <xsl:when test="key('env-param','m_defaultName')"><xsl:value-of select="key('env-param','m_defaultName')"/></xsl:when>
- </xsl:choose>
- </xsl:attribute>
- </utml:input>
- <xsl:choose>
- <xsl:when test="not(/root/env/param[starts-with(@name,'m_t_default')])">
- <xsl:for-each select="/root/multiLangs/name">
- <xsl:variable name="langName" select="."/>
- <xsl:if test="not(preceding-sibling::name = $langName)">
- <!-- Cannot use $the-object here because of context within for-each -->
- <xsl:if test="/root/cm:queryResponse/*/cm:defaultName[@modifiable = 'true']">
- <utml:input type="hidden" utml:update="false">
- <xsl:attribute name="name"><xsl:value-of select="concat('m_t_default_name_',string($langName))"/></xsl:attribute>
- <xsl:attribute name="value"><xsl:value-of select="/root/cm:queryResponse/child::node()/cm:name/*[@xml:lang=string($langName)]"/></xsl:attribute>
- </utml:input>
- </xsl:if>
- <utml:input type="hidden" utml:update="false">
- <xsl:attribute name="name"><xsl:value-of select="concat('m_t_default_description_',string($langName))"/></xsl:attribute>
- <xsl:attribute name="value"><xsl:value-of select="/root/cm:queryResponse/child::node()/cm:description/*[@xml:lang=string($langName)]"/></xsl:attribute>
- </utml:input>
- <utml:input type="hidden" utml:update="false">
- <xsl:attribute name="name"><xsl:value-of select="concat('m_t_default_screenTip_',string($langName))"/></xsl:attribute>
- <xsl:attribute name="value"><xsl:value-of select="/root/cm:queryResponse/child::node()/cm:screenTip/*[@xml:lang=string($langName)]"/></xsl:attribute>
- </utml:input>
- </xsl:if>
- </xsl:for-each>
- </xsl:when>
- <xsl:otherwise>
- <xsl:if test="$activeLang!=''">
- <xsl:if test="not(/root/env/param[@name=concat('m_t_default_name_',$activeLang)]) and not(/root/env/param[@name=concat('m_t_default_description_',$activeLang)]) and not(/root/env/param[@name=concat('m_t_default_screenTip_',$activeLang)])">
- <xsl:if test="$the-object/cm:defaultName[@modifiable = 'true']">
- <utml:input type="hidden" utml:update="false">
- <xsl:attribute name="name"><xsl:value-of select="concat('m_t_default_name_',$activeLang)"/></xsl:attribute>
- </utml:input>
- </xsl:if>
- <utml:input type="hidden" utml:update="false">
- <xsl:attribute name="name"><xsl:value-of select="concat('m_t_default_description_',$activeLang)"/></xsl:attribute>
- </utml:input>
- <utml:input type="hidden" utml:update="false">
- <xsl:attribute name="name"><xsl:value-of select="concat('m_t_default_screenTip_',$activeLang)"/></xsl:attribute>
- </utml:input>
- </xsl:if>
- </xsl:if>
- <xsl:for-each select="/root/env/param[starts-with(@name,'m_t_default')]">
- <utml:input type="hidden" utml:update="false">
- <xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
- <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute>
- </utml:input>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="key('env-param', 'm_class') = 'drillPath' and string(/root/cm:queryResponse/*/cm:parent/*/cm:routingServerGroup)!=''">
- <utml:input type="hidden" name="ui.routingServerGroup" utml:update="false">
- <xsl:attribute name="value">
- <xsl:value-of select="/root/cm:queryResponse/*/cm:parent/*/cm:routingServerGroup"/>
- </xsl:attribute>
- </utml:input>
- </xsl:if>
- </xsl:if>
- <utml:input type="hidden" name="ifrmcmd" value="save" utml:update="false"/>
- <!-- if the user doesn't have a credentail then add the h_CAM_action to create one -->
- <xsl:if test="($has_write_permission = true) and not( key('env-param', 'm_sp_credential')) and key('env-param', 'visited_job_properties')">
- <input type="hidden" name="h_CAM_action" value=""/>
- </xsl:if>
- <dp:header useBackURL="not($showOKCancel)" dp:kbA11y="true">
- <dp:title><xsl:copy-of select="$browserTitle"/></dp:title>
- </dp:header>
- <iframe name="dialogWindow" id="dialogWindow" style="display:none; z-index:50; position: absolute;" src="" title="Dialog Window"/>
- <div id="dialogWindowContainer" style="cursor:default;display:none; position: absolute; z-index:50; overflow:none; padding-top:10px;">
- <iframe name="dialogWindow2" id="dialogWindow2" style="width:600px; height:345px; position: relative;" class="visible" src="" title="repository_select"/>
- </div>
- <div id="windowMask" style="z-index:49; display:none; position: absolute; width:100%; height:100%; left:0px; top:0px;">
- <table width="100%" height="100%" role="presentation">
- <tr>
- <td/>
- </tr>
- </table>
- </div>
- <!-- property tabs -->
- <df:propertiesTabs select="general">
- <df:hasRead><xsl:value-of select="$has_read_permission"/></df:hasRead>
- <df:hasTraverse><xsl:value-of select="$has_traverse_permission"/></df:hasTraverse>
- <df:hasUserProfile>
- <xsl:if test="$noUserProfile"><xsl:value-of select="'false'"/></xsl:if>
- </df:hasUserProfile>
- <df:hasSetPolicy>
- <xsl:choose>
- <xsl:when test="key('env-param','m_class')='dataSet'">false</xsl:when>
- <xsl:when test="$noUserProfile"><xsl:value-of select="'false'"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="$has_policy_permission"/></xsl:otherwise>
- </xsl:choose>
- </df:hasSetPolicy>
- </df:propertiesTabs>
- <!-- description tabs -->
- <dp:description dp:kbA11y="true">
- <xts:string id="IDS_PROP_GEN_INTRO"/>
- </dp:description>
- <xsl:variable name="launchableType">
- <xsl:choose>
- <xsl:when test="$the-object/cm:objectClass = 'shortcut'"><xsl:value-of select="$target/cm:launchableType"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="$the-object/cm:launchableType"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <table border="0" cellspacing="0" cellpadding="0" width="100%" summary="" role="presentation"><tr>
- <td width="50%" valign="top">
- <lyt:layout style="1" width="100%" lyt:kbA11y="true">
- <!-- Class -->
- <lyt:section dp:kbA11y="true">
- <dp:list width="100%">
- <dp:section>
- <dp:label width="15%"><xts:string id="IDS_PROP_TYPE"/></dp:label>
- <dp:text>
- <xsl:choose>
- <xsl:when test="not($rootFolder)">
- <xsl:choose>
- <xsl:when test="string($the-object/cm:objectClass)!='shortcut'">
- <xsl:choose>
- <xsl:when test="$the-object/cm:objectClass = 'document'">
- <xsl:variable name="docType">
- <xsl:call-template name="getDocumentObjectType">
- <xsl:with-param name="theObject" select="$the-object"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="$docType != ''">
- <xts:string id="IDS_OBJ_TYPE_DOCUMENT"><xts:param name="documentType"><xsl:value-of select="$docType"/></xts:param></xts:string>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_OBJ_DOCUMENT"></xts:string>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="$the-object/cm:objectClass = 'launchable' and string(/root/objectClass/class[@name=string($the-object/cm:objectClass)][@launchableType=$the-object/cm:launchableType]) != ''">
- <xsl:value-of select="/root/objectClass/class[@name=string($the-object/cm:objectClass)][@launchableType=$the-object/cm:launchableType]"/>
- </xsl:when>
- <xsl:when test="/root/objectClass/class[@name=string($the-object/cm:objectClass)][not($the-object/cm:userInterfaces) or $the-object/cm:userInterfaces/@nil or @userInterface=$the-object/cm:userInterfaces/cm:uiComponentEnum] != ''">
- <xsl:value-of select="/root/objectClass/class[@name=string($the-object/cm:objectClass)][not($the-object/cm:userInterfaces) or $the-object/cm:userInterfaces/@nil or @userInterface=$the-object/cm:userInterfaces/cm:uiComponentEnum]"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/root/objectClass/class[@name=string($the-object/cm:objectClass)]"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="$target/cm:objectClass = 'document'">
- <xsl:variable name="docType">
- <xsl:call-template name="getDocumentObjectType">
- <xsl:with-param name="theObject" select="$the-object/cm:target/*"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="targetObjectClassName">
- <xsl:choose>
- <xsl:when test="$docType != ''">
- <xts:string id="IDS_OBJ_TYPE_DOCUMENT"><xts:param name="documentType"><xsl:value-of select="$docType"/></xts:param></xts:string>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_OBJ_DOCUMENT"></xts:string>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xts:string id="IDS_PROP_SHORTCUT_TO_TEXT"><xts:param name="targetObject"><xsl:value-of select="$targetObjectClassName"/></xts:param></xts:string>
- </xsl:when>
- <xsl:when test="$target/cm:objectClass = 'launchable' and string(/root/objectClass/class[@name= string($target/cm:objectClass)][@launchableType=$target/cm:launchableType]) != ''">
- <xts:string id="IDS_PROP_SHORTCUT_TO_TEXT"><xts:param name="targetObject"><xsl:value-of select="/root/objectClass/class[@name= string($target/cm:objectClass)][@launchableType=$target/cm:launchableType]"/></xts:param></xts:string>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_PROP_SHORTCUT_TO_TEXT"><xts:param name="targetObject"><xsl:value-of select="/root/objectClass/class[@name= string($target/cm:objectClass)]"/></xts:param></xts:string>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/root/objectClass/class[@name= 'folder']"/>
- </xsl:otherwise>
- </xsl:choose>
- </dp:text>
- </dp:section>
- </dp:list>
- </lyt:section>
- <lyt:section>
- <!-- Owner -->
- <!-- ============================================================ -->
- <xsl:variable name="owner" select="$the-object/cm:owner/*"/>
- <xsl:variable name="curOwnerEmail">
- <xsl:choose>
- <xsl:when test="not(key('env-param','changed_m_p_owner')='1')"><xsl:value-of select="$owner/cm:email"/></xsl:when>
- <xsl:when test="key('env-param','changed_m_p_owner')='1' and key('env-param','m_email')='' and key('env-param','m_defaultName')=''"><xsl:value-of select="/root/myInfo//cm:email"/></xsl:when>
- <xsl:when test="key('env-param','changed_m_p_owner')='1' and key('env-param','m_email')!=''"><xsl:value-of select="key('env-param','m_email')"/></xsl:when>
- </xsl:choose>
- </xsl:variable>
- <!-- Determine the owner label -->
- <xsl:variable name="ownerLabel">
- <xsl:choose>
- <xsl:when test="key('env-param','changed_m_p_owner')='1' and key('env-param','m_defaultName')='' and key('env-param','m_defaultName')=''"><xsl:value-of select="/root/myInfo//cm:defaultName"/></xsl:when>
- <xsl:when test="(key('env-param', 'm_defaultName')) and not(key('env-param', 'm_defaultName') = '')">
- <xsl:value-of select="key('env-param', 'm_defaultName')"/>
- </xsl:when>
- <xsl:when test="not(key('env-param','changed_m_p_owner')='1') and $owner/cm:defaultName">
- <xsl:value-of select="$owner/cm:defaultName"/>
- </xsl:when>
- <xsl:when test="$curOwnerEmail != ''">
- <xsl:value-of select="$curOwnerEmail"/>
- </xsl:when>
- <xsl:when test="$the-object/cm:owner/cm:nil"><xts:string id="IDS_PROP_UNKNOWN_OWNER"/></xsl:when>
- <xsl:when test="not(string($the-object/cm:owner/*/cm:searchPath)='')"><xts:string id="IDS_PROP_UNKNOWN_OWNER"/></xsl:when>
- <xsl:otherwise><xts:string id="IDS_NONE"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <dp:list width="100%">
- <dp:section>
- <dp:label valign="top" width="15%"><xts:string id="IDS_PROP_OWNER"/></dp:label>
- <dp:link wrap="wrap" valign="top" width="25%">
- <!-- email the owner if an email exits -->
- <xsl:choose>
- <xsl:when test="(key('env-param', 'm_email')) and not(string(key('env-param', 'm_email')) = '')">
- <dp:text>
- <a href="#">
- <xsl:attribute name="onclick">javascript:document.location.href='mailto:<xsl:value-of select="xtsext:javascriptencode(key('env-param', 'm_email'))"/>';</xsl:attribute>
- <xsl:attribute name="onkeypress">javascript:<xsl:value-of select="$chkSpaceEnterKeyEvent"/>{this.onclick();return false;}return true;</xsl:attribute>
- <xsl:value-of select="$ownerLabel"/>
- </a>
- </dp:text>
- </xsl:when>
- <xsl:when test="$curOwnerEmail!=''">
- <dp:text>
- <a href="#">
- <xsl:attribute name="onclick">javascript:document.location.href='mailto:<xsl:value-of select="xtsext:javascriptencode($curOwnerEmail)"/>';</xsl:attribute>
- <xsl:attribute name="onkeypress">javascript:<xsl:value-of select="$chkSpaceEnterKeyEvent"/>{this.onclick();return false;}return true;</xsl:attribute>
- <xsl:value-of select="$ownerLabel"/>
- </a>
- </dp:text>
- </xsl:when>
- <xsl:otherwise>
- <dp:text><xsl:value-of select="$ownerLabel"/></dp:text>
- </xsl:otherwise>
- </xsl:choose>
- </dp:link>
- <xsl:if test="key('env-param', 'm_class') != 'dataSet'">
- <dp:link>
- <!-- if you aren't the current owner and you are logged in you will get the set owner link -->
- <xsl:if test="$has_policy_permission and $noUserProfile!=true() and $the-object/cm:owner/@modifiable='true' and $is-named = '1' and not(string(key('session-param', 'e_hp')) = string($owner/cm:searchPath)) and not(string(key('session-param', 'e_hp')) = string(key('env-param', 'm_p_owner')))">
- <dp:text>
- <a href="javascript:makeOwner();">
- <xsl:text/><xts:string id="IDS_PROP_SET_OWNER"/><xsl:text/>
- </a>
- </dp:text>
- </xsl:if>
- </dp:link>
- </xsl:if>
- </dp:section>
- </dp:list>
- </lyt:section>
- <lyt:section>
- <xsl:variable name="contactProp">
- <xsl:choose>
- <!-- A contact string has just been selected -->
- <xsl:when test="key('env-param','m_p_contactEMail') and key('env-param','m_p_contactEMail') != ''">
- <xsl:value-of select="key('env-param','m_p_contactEMail')"/>
- </xsl:when>
- <xsl:when test="not(/root/env/param[starts-with(@name,'contact.so.')]) and key('env-param','m_p_contactEMail') and key('env-param','m_p_contactEMail') = ''">
- <xts:string id="IDS_NONE"/>
- </xsl:when>
- <!-- A contact object has just been selected -->
- <xsl:when test="string(key('env-param','contact.so.storeID')) != '' and (key('env-param','contact.so.email') or key('env-param','contact.so.defaultName'))">
- <xsl:value-of select="/root/env/param[@name='contact.so.defaultName']"/>
- </xsl:when>
- <!-- A contact object is specified on the entry -->
- <xsl:when test="$the-object/cm:contact/*/cm:objectClass">
- <xsl:choose>
- <xsl:when test=" not(string($the-object/cm:contact/*/cm:email) = '') or not(string($the-object/cm:contact/*/cm:defaultName)='') ">
- <xsl:value-of select="$the-object/cm:contact/*/cm:defaultName"/>
- </xsl:when>
- <xsl:when test="not(string($the-object/cm:contact/*/cm:searchPath)='')">
- <xts:string id="IDS_PROP_UNKNOWN_OWNER"/>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_NONE"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <!-- A contact string is specified on the entry -->
- <xsl:when test="string($the-object/cm:contactEMail) != ''">
- <xsl:value-of select="$the-object/cm:contactEMail"/>
- </xsl:when>
- <!-- There is no contact specified -->
- <xsl:otherwise>
- <xts:string id="IDS_NONE"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <dp:list width="100%">
- <!-- Contact -->
- <!-- ============================================================ -->
- <xsl:if test="$has_read_permission">
- <!-- If this object has a contact property then show it -->
- <xsl:if test="/root/cm:queryResponse/*/cm:contactEMail">
- <!-- <xsl:variable name="contact" select="cm:queryResponse/*/cm:contact/*"/> -->
- <dp:section>
- <dp:label valign="top" width="15%"><xts:string id="IDS_PROP_CONTACT"/></dp:label>
- <dp:link valign="top" width="25%">
- <xsl:choose>
- <!--
- Set the contact to 'none' when the contact string is blank with a contactChoice of
- 'type' and either:
- 1. a contactEMail is set on the entry.
- 2. a contact object is specified on the entry.
- -->
- <!-- A contact string has just been selected -->
- <xsl:when test="key('env-param','m_p_contactEMail') and key('env-param','m_p_contactEMail') != ''">
- <dp:text>
- <a href="#">
- <xsl:attribute name="onclick">javascript:document.location.href='mailto:<xsl:value-of select="xtsext:javascriptencode(key('env-param','m_p_contactEMail'))"/>';</xsl:attribute>
- <xsl:attribute name="onkeypress">javascript:<xsl:value-of select="$chkSpaceEnterKeyEvent"/>{this.onclick();return false;}return true;</xsl:attribute>
- <xsl:value-of select="xtsext:sttInjectUCCIntoStr($contactProp, 'email', boolean($isBidiEnabled='true'))"/>
- </a>
- </dp:text>
- </xsl:when>
- <xsl:when test="not(/root/env/param[starts-with(@name,'contact.so.')]) and key('env-param','m_p_contactEMail') and key('env-param','m_p_contactEMail') = ''">
- <dp:text><xsl:value-of select="xtsext:enforceBTD($contactProp, $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/></dp:text>
- </xsl:when>
- <!-- A contact object has just been selected -->
- <xsl:when test="string(key('env-param','contact.so.storeID')) != '' and (key('env-param','contact.so.email') or key('env-param','contact.so.defaultName'))">
- <xsl:choose>
- <xsl:when test=" not(string(/root/env/param[@name='contact.so.email']) = '') ">
- <dp:text>
- <a href="#">
- <xsl:attribute name="onclick">javascript:document.location.href='mailto:<xsl:value-of select="xtsext:javascriptencode(key('env-param','contact.so.email'))"/>';</xsl:attribute>
- <xsl:attribute name="onkeypress">javascript:<xsl:value-of select="$chkSpaceEnterKeyEvent"/>{this.onclick();return false;}return true;</xsl:attribute>
- <xsl:value-of select="xtsext:sttInjectUCCIntoStr($contactProp, 'email', boolean($isBidiEnabled='true'))"/>
- </a>
- </dp:text>
- </xsl:when>
- <xsl:otherwise>
- <dp:text><xsl:value-of select="xtsext:enforceBTD($contactProp, $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/></dp:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <!-- A contact object is specified on the entry -->
- <xsl:when test="$the-object/cm:contact/*/cm:objectClass">
- <xsl:choose>
- <xsl:when test=" not(string($the-object/cm:contact/*/cm:email) = '') ">
- <dp:text>
- <a href="#">
- <xsl:attribute name="onclick">javascript:document.location.href='mailto:<xsl:value-of select="xtsext:javascriptencode($the-object/cm:contact/*/cm:email)"/>';</xsl:attribute>
- <xsl:attribute name="onkeypress">javascript:<xsl:value-of select="$chkSpaceEnterKeyEvent"/>{this.onclick();return false;}return true;</xsl:attribute>
- <xsl:value-of select="xtsext:sttInjectUCCIntoStr($contactProp, 'email', boolean($isBidiEnabled='true'))"/>
- </a>
- </dp:text>
- </xsl:when>
- <xsl:when test="not(string($the-object/cm:contact/*/cm:defaultName)='')">
- <dp:text><xsl:value-of select="xtsext:enforceBTD($contactProp, $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/></dp:text>
- </xsl:when>
- <xsl:when test="not(string($the-object/cm:contact/*/cm:searchPath)='')">
- <dp:text><xsl:value-of select="xtsext:enforceBTD($contactProp, $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/></dp:text>
- </xsl:when>
- <xsl:otherwise>
- <dp:text><xsl:value-of select="xtsext:enforceBTD($contactProp, $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/></dp:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <!-- A contact string is specified on the entry -->
- <xsl:when test="string($the-object/cm:contactEMail) != ''">
- <dp:text>
- <a href="#">
- <xsl:attribute name="onclick">javascript:document.location.href='mailto:<xsl:value-of select="xtsext:javascriptencode($the-object/cm:contactEMail)"/>';</xsl:attribute>
- <xsl:attribute name="onkeypress">javascript:<xsl:value-of select="$chkSpaceEnterKeyEvent"/>{this.onclick();return false;}return true;</xsl:attribute>
- <xsl:value-of select="xtsext:sttInjectUCCIntoStr($contactProp, 'email', boolean($isBidiEnabled='true'))"/>
- </a>
- </dp:text>
- </xsl:when>
- <!-- There is no contact specified -->
- <xsl:otherwise>
- <dp:text><xsl:value-of select="xtsext:enforceBTD($contactProp, $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/></dp:text>
- </xsl:otherwise>
- </xsl:choose>
- </dp:link>
- <dp:link>
- <xsl:if test="$the-object/cm:contact/@modifiable = 'true' and $the-object/cm:contactEMail/@modifiable = 'true'">
- <!-- link to change the contact -->
- <script language="javascript">
- function runContactCmd(cmd)
- {
- if (cmd == 'select') {
- <!-- m_p_contact -->
- setSelectParams('form', 'pform','so.select','contacts','so.defaultObject','<xsl:text/>
- <xsl:choose>
- <xsl:when test="key('env-param','contact.so.searchPath')"><xsl:value-of select="xtsext:javascriptencode(string(key('env-param','contact.so.searchPath')))"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="xtsext:javascriptencode(string($the-object/cm:contact/*/cm:searchPath))"/></xsl:otherwise>
- </xsl:choose>
- <xsl:text/>');<xsl:text/>
- utmlSubmitForm(document.pform,'<xsl:value-of select="xtsext:javascriptencode(string($app))"/>/select/select.xts','maintain','validate');
- }
- if (cmd == 'enter') {
- <!-- m_p_contactEmail -->
- emailAddressDialog.show();
- setTimeout('setEmailFocus()', 11);
- }
- }
- function setEmailFocus()
- {
- if (emailAddressDialog.className = "visible")
- document.pform.emailAddress.focus();
- }
- function updateEmailAddress()
- {
- setFormInputElement('typeInEMailAddress',removeUCCFromStr(document.pform.emailAddress.value));
- setFormInputElement('typeInContact','true');
- setPropertiesChanged();
- utmlSubmitForm(document.pform,'<xsl:value-of select="xtsext:javascriptencode(string($app))"/>/<xsl:value-of select="xtsext:javascriptencode(string($mname))"/>','maintain','validate');
- }
- </script>
- <xsl:variable name="contactMenu">
- <flyout id="contactMenu">
- <label><xts:string encode="javascript" id="IDS_PROP_CONTACT_MENU"/></label>
- <items>
- <item id="contactmenu_select_contact">
- <text><a><xts:string id="IDS_SELECT_THE_CONTACT_OBJ"/></a></text>
- <action>runContactCmd('select');</action>
- </item>
- <item id="contactmenu_enter_email_address">
- <text><xts:string id="IDS_SELECT_ENTER_EMAIL_ADDRESS"/></text>
- <action>runContactCmd('enter');</action>
- </item>
- </items>
- </flyout>
- </xsl:variable>
- <div id="contactMenu_span" style="z-index: 2;position: relative;">
- <table summary="" cellspacing="0" cellpadding="0" style="position: relative; cursor:pointer;font-size2: 70%"
- tabindex="0"
- accessKey="1"
- onclick="return CCPopupMenu.dropDown(event,0,0,'contactMenu');" role="presentation">
- <xsl:attribute name="onkeypress">javascript:<xsl:value-of select="$chkSpaceEnterKeyEvent"/>{return CCPopupMenu.dropDown(event,0,0,'contactMenu');} else return true;</xsl:attribute>
- <tr>
- <td nowrap="true" valign="top">
- <a onmouseover="window.status='';return true;" onmouseout="window.status='';return true;" role="button" aria-haspopup="true" aria-controls="flyout_contactMenu">
- <xsl:attribute name="title"></xsl:attribute>
- <xsl:attribute name="alt"></xsl:attribute>
- <xts:string id="IDS_SELECT_THE_CONTACT_MENU"/>
- </a>
- </td>
- <td nowrap="true" valign="top">
- <img name="contactMenu_imgFlyControl" src="{$skin_shared_images}dropdown_arrow.gif" title="" alt=""/>
- </td>
- </tr>
- </table>
- </div>
- <xsl:call-template name="renderPopup">
- <xsl:with-param name="flyoutXML">
- <xsl:copy-of select="$contactMenu"/>
- </xsl:with-param>
- <xsl:with-param name="controlID">contactMenu_span</xsl:with-param>
- </xsl:call-template>
- <div>
- <cp:genericDialog id="emailAddressDialog" interactive="true" align="left" width="500" positionVertical="true" positionHorizontal="true" helpid="contactHelp" focusidOnShiftTab="contactCancel">
- <cp:param name="title"><xts:string id="IDS_SELECT_ENTER_EMAIL_ADDRESS_2"/></cp:param>
- <cp:param name="body">
- <lyt:layout style="1" lyt:kbA11y="true">
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:text><xts:string id="IDS_SELECT_ENTER_EMAIL_ADDRESS_INTRO"/></dp:text>
- </dp:section>
- <dp:section>
- <dp:text/>
- </dp:section>
- <dp:section>
- <dp:input dp:kbA11y="true">
- <dp:section1><Label><xts:string id="IDS_CONTACT_EMAIL"/></Label></dp:section1>
- <dp:section2>
- <span style="position: absolute;margin-left: -9999px; margin-top: -9999px;" id="emailContact"><xts:string id="IDS_SELECT_ENTER_EMAIL_ADDRESS_INTRO"/></span>
- <input type="text" name="emailAddress" value="" size="70" maxlength="256" aria-labelledby="emailContact">
- <xsl:if test="$isBidiEnabled = 'true'">
- <xsl:attribute name="stttype">
- <xsl:value-of select="'email'"/>
- </xsl:attribute>
- <xsl:attribute name="onfocus">
- bidi.onfocus(this)
- </xsl:attribute>
- </xsl:if>
- </input>
- </dp:section2>
- </dp:input>
- </dp:section>
- </dp:list>
- </lyt:section>
- </lyt:layout>
- </cp:param>
- <cp:param name="footer">
- <!-- NOTE: onkeydown required to force navigation within the popup element -->
- <dp:simpleFooter>
- <td>
- <table cellpadding="0" cellspacing="0" role="presentation">
- <tr>
- <td>
- <cp:cmdButton defaultState="active" id="contactOK">
- <cp:cmdButtonText><xts:string id="IDS_OK"/></cp:cmdButtonText>
- <cp:cmdButtonEvents>
- <cp:cmdButtonEvent name="onclick">javascript:emailAddressDialog.hide(); updateEmailAddress();</cp:cmdButtonEvent>
- <cp:cmdButtonEvent name="onkeypress">javascript:<xsl:value-of select="$chkSpaceEnterKeyEvent"/><xsl:text>{</xsl:text> this.onclick(); return false; <xsl:text>}</xsl:text> return true;</cp:cmdButtonEvent>
- </cp:cmdButtonEvents>
- </cp:cmdButton>
- </td>
- <td>
- <cp:cmdButton defaultState="active" id="contactCancel">
- <cp:cmdButtonText><xts:string id="IDS_CANCEL"/></cp:cmdButtonText>
- <cp:cmdButtonEvents>
- <cp:cmdButtonEvent name="onclick">javascript:emailAddressDialog.hide();</cp:cmdButtonEvent>
- <cp:cmdButtonEvent name="onkeypress">javascript:<xsl:value-of select="$chkSpaceEnterKeyEvent"/><xsl:text>{</xsl:text> this.onclick(); return false; <xsl:text>}</xsl:text> return true;</cp:cmdButtonEvent>
- <cp:cmdButtonEvent name="onkeydown">javascript:if(event.keyCode==9) <xsl:text>{</xsl:text> if(event.shiftKey==true) return true; else <xsl:text>{</xsl:text> if(document.getElementById("contactHelp")) <xsl:text>{</xsl:text>document.getElementById("contactHelp").focus(); return false; <xsl:text>}</xsl:text> <xsl:text>}</xsl:text> <xsl:text>}</xsl:text> return true;</cp:cmdButtonEvent>
- </cp:cmdButtonEvents>
- </cp:cmdButton>
- </td>
- </tr>
- </table>
- </td>
- </dp:simpleFooter>
- </cp:param>
- </cp:genericDialog>
- </div>
- </xsl:if>
- </dp:link>
- </dp:section>
- </xsl:if>
- </xsl:if>
- </dp:list>
- </lyt:section>
- <!-- tenantID -->
- <!-- ============================================================ -->
- <lyt:section>
- <xsl:variable name="tenantID">
- <xsl:choose>
- <xsl:when test="key('env-param','m_p_tenantID') and key('env-param', 'm_p_tenantID') != ''">
- <xsl:value-of select="key('env-param', 'm_p_tenantID')"/>
- </xsl:when>
- <xsl:when test="string($the-object/cm:tenantID)!='' and (not(key('env-param', 'changed_m_p_tenantID')) or key('env-param', 'changed_m_p_tenantID') != '1')">
- <xsl:value-of select="string($the-object/cm:tenantID)"/>
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="displayTenantID">
- <xsl:choose>
- <xsl:when test="key('env-param','objTenantName') != ''">
- <xsl:value-of select="key('env-param','objTenantName')"/>
- </xsl:when>
- <xsl:when test="/root/tenantObjInfo//*/cm:defaultName != ''">
- <xsl:value-of select="/root/tenantObjInfo//*/cm:defaultName"/>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_NONE"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="isAccountObject" select="$the-object/cm:objectClass='account'"/>
- <xsl:variable name="isTenantObject" select="$the-object/cm:objectClass='tenant'"/>
-
- <xsl:variable name="isTenantedObject" select="not($tenantID ='' and ($isAccountObject or $isTenantObject)) and $parent_is_public and $the-object/cm:tenantID[@modifiable = 'true']"/>
- <xsl:variable name="tenantInfo">
- <xsl:choose>
- <xsl:when test="$isTenantObject">
- <label><xts:string id="IDS_PROP_TENANTID"/></label>
- <text><xsl:value-of select="$the-object/cm:tenantID"/></text>
- </xsl:when>
- <xsl:otherwise>
- <label><xts:string id="IDS_PROP_TENANT_NAME"/></label>
- <text>
- <xsl:choose>
- <xsl:when test="$isTenantedObject">
- <xsl:value-of select="$displayTenantID"/>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_PROP_OBJ_TENANCY"><xts:param name="tenantName"><xsl:value-of select="$displayTenantID"/></xts:param></xts:string>
- </xsl:otherwise>
- </xsl:choose>
- </text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:if test="key('session-param', 'e_showTenantInfo')='true' and $has_read_permission">
- <dp:list width="100%">
- <dp:section>
- <dp:label valign="top" width="15%"><xsl:value-of select="$tenantInfo/label"/></dp:label>
- <dp:text width="25%">
- <xsl:value-of select="xtsext:enforceBTD($tenantInfo/text, $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/>
- </dp:text>
- <dp:link>
- <xsl:variable name="isSysAdmin" select="key('session-param', 'e_isSysAdmin')='true'"/>
- <xsl:variable name="isSysAdminRoleObject" select="$the-object/cm:objectClass='role' and $the-object/cm:searchPath='CAMID("::System Administrators")'"/>
- <xsl:if test="$isSysAdmin and $isTenantedObject and not($isSysAdminRoleObject)">
- <script language="javascript">
- dojo.require("dijit.form.FilteringSelect");
- dojo.require("dojo.data.ItemFileReadStore");
- var g_select;
- dojo.addOnLoad(function() {
- // create store instance referencing data from listTenants.xts
- var tenantStore = new dojo.data.ItemFileReadStore({
- url: "<xsl:value-of select="concat($gateway,'?b_action=xts.run&m=',$app,'/tenants/listTenants.xts')"/>"
- });
- g_select = new dijit.form.FilteringSelect({
- name: "selectedTenantName",
- placeHolder: "<xts:string id="IDS_SELECT_THE_TENANTID" encode="javascript"/>",
- value:"<xsl:value-of select="xtsext:javascriptencode($displayTenantID)"/>",
- store: tenantStore
- }, "selectedTenantName");
- g_select.startup();
- });
- function showTenantDlg()
- {
- selectTenantDialog.show();
- setTimeout('setTenantFocus()', 11);
- }
-
- function setTenantFocus()
- {
- if (selectTenantDialog.className = "visible")
- g_select.focus();
- }
-
- function updateTenantID(newTenantID, newTenantName)
- {
- setFormInputElement('newTenantID',newTenantID);
- setFormInputElement('newTenantName',newTenantName);
- setFormInputElement('tenantChanged','true');
- setPropertiesChanged();
- utmlSubmitForm(document.pform,'<xsl:value-of select="xtsext:javascriptencode(string($app))"/>/<xsl:value-of select="xtsext:javascriptencode(string($mname))"/>','maintain','validate');
- }
-
- function setNewTenantID()
- {
- if (g_select.isValid()) {
- updateTenantID(g_select.item.id, g_select.item.name);
- javascript:selectTenantDialog.hide();
- }
- }
-
- function makeTenantIDPublic()
- {
- if (confirm('<xts:string id="IDS_SELECT_TENANTID_CONFIRM_MAKE_PUBLIC" encode="javascript"/>')){
- updateTenantID('','<xts:string id="IDS_NONE"/>');
- }
- }
- </script>
- <xsl:if test="not($isTenantObject)">
- <xsl:choose>
- <xsl:when test="$tenantID !=''">
- <dp:text>
- <a href="javascript:showTenantDlg();" role="button">
- <xsl:text/><xts:string id="IDS_EDIT_THE_TENANTID"/><xsl:text/>
- </a>
- </dp:text>
- <xsl:if test="not($isAccountObject)">
- <dp:text>
- <a href="javascript:makeTenantIDPublic();">
- <xsl:text/><xts:string id="IDS_MAKE_PUBLIC"/><xsl:text/>
- </a>
- </dp:text>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <dp:text>
- <a href="javascript:showTenantDlg();" role="button">
- <xsl:text/><xts:string id="IDS_SELECT_THE_TENANTID"/><xsl:text/>
- </a>
- </dp:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- <div>
- <cp:genericDialog id="selectTenantDialog" rootContainerId="theForm" interactive="true" align="left" width="500" positionVertical="true" positionHorizontal="true" helpid="tenantHelp" focusidOnShiftTab="tenantCancel">
- <cp:param name="title"><xts:string id="IDS_SELECT_TENANTID_TITLE"/></cp:param>
- <cp:param name="body">
- <lyt:layout style="1" lyt:kbA11y="true">
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:text><xts:string id="IDS_SELECT_TENANTID_INTRO"/></dp:text>
- </dp:section>
- <dp:section>
- <dp:text/>
- </dp:section>
- <dp:section>
- <dp:input dp:kbA11y="true">
- <dp:section1><Label for="selectedTenantName"><xts:string id="IDS_PROP_TENANT_NAME"/></Label></dp:section1>
- <dp:section2>
- <input id="selectedTenantName"/>
- </dp:section2>
- </dp:input>
- </dp:section>
- <dp:section>
- <dp:group>
- <dp:groupItem valign="top">
- <img height="16" width="16" border="0" alt="" src="{concat($image_root,'msg_warning_16.gif')}"/>
- </dp:groupItem>
- <dp:groupItem>
- <!-- used for alignment -->
- <dp:text/><xsl:text> </xsl:text>
- </dp:groupItem>
- <dp:groupItem valign="top">
- <dp:text nospace="nospace" wrap="wrap">
- <xts:string id="IDS_SELECT_TENANTID_WARNING"/>
- </dp:text>
- </dp:groupItem>
- </dp:group>
- </dp:section>
- <dp:section>
- <dp:text/>
- </dp:section>
- </dp:list>
- </lyt:section>
- </lyt:layout>
- </cp:param>
- <cp:param name="footer">
- <!-- NOTE: onkeydown required to force navigation within the popup element -->
- <dp:simpleFooter>
- <td>
- <table cellpadding="0" cellspacing="0" role="presentation">
- <tr>
- <td>
- <cp:cmdButton defaultState="active" id="tenantOK">
- <cp:cmdButtonText><xts:string id="IDS_OK"/></cp:cmdButtonText>
- <cp:cmdButtonEvents>
- <cp:cmdButtonEvent name="onclick">setNewTenantID();</cp:cmdButtonEvent>
- <cp:cmdButtonEvent name="onkeypress">javascript:<xsl:value-of select="$chkSpaceEnterKeyEvent"/><xsl:text>{</xsl:text> this.onclick(); return false; <xsl:text>}</xsl:text> return true;</cp:cmdButtonEvent>
- </cp:cmdButtonEvents>
- </cp:cmdButton>
- </td>
- <td>
- <cp:cmdButton defaultState="active" id="tenantCancel">
- <cp:cmdButtonText><xts:string id="IDS_CANCEL"/></cp:cmdButtonText>
- <cp:cmdButtonEvents>
- <cp:cmdButtonEvent name="onclick">javascript:selectTenantDialog.hide();</cp:cmdButtonEvent>
- <cp:cmdButtonEvent name="onkeypress">javascript:<xsl:value-of select="$chkSpaceEnterKeyEvent"/><xsl:text>{</xsl:text> this.onclick(); return false; <xsl:text>}</xsl:text> return true;</cp:cmdButtonEvent>
- <cp:cmdButtonEvent name="onkeydown">javascript:if(event.keyCode==9) <xsl:text>{</xsl:text> if(event.shiftKey==true) return true; else <xsl:text>{</xsl:text> if(document.getElementById("tenantHelp")) <xsl:text>{</xsl:text>document.getElementById("tenantHelp").focus(); return false; <xsl:text>}</xsl:text> <xsl:text>}</xsl:text> <xsl:text>}</xsl:text> return true;</cp:cmdButtonEvent>
- </cp:cmdButtonEvents>
- </cp:cmdButton>
- </td>
- </tr>
- </table>
- </td>
- </dp:simpleFooter>
- </cp:param>
- </cp:genericDialog>
- </div>
- </xsl:if>
- </dp:link>
- </dp:section>
- </dp:list>
- </xsl:if>
- </lyt:section>
- <lyt:section>
- <xsl:if test="$the-object/cm:disabled and not($has_read_permission and /root/cm:queryResponse/*/cm:contactEMail)">
- <!-- this section was the largest in a small section so i eliminated it -->
- <xsl:call-template name="render-disabled"/>
- </xsl:if>
- </lyt:section>
- <lyt:section>
- <xsl:if test="$the-object/cm:disabled and $has_read_permission and /root/cm:queryResponse/*/cm:contactEMail">
- <!-- this section was the largest in a small section so i eliminated it -->
- <xsl:call-template name="render-disabled"/>
- </xsl:if>
- </lyt:section>
- <lyt:section>
- <xsl:if test="$showHideEntry">
- <xsl:call-template name="render-hideobject"/>
- </xsl:if>
- </lyt:section>
- </lyt:layout>
- </td>
- <td width="50%" valign="top">
- <xsl:variable name="propLocation">
- <xsl:choose>
- <xsl:when test="$rootFolder">
- <xts:string id="IDS_ROOT"/>
- </xsl:when>
- <xsl:otherwise>
- <cf:do-the-path-link>
- <cf:param name="familytree">$the-object/cm:ancestors</cf:param>
- <cf:param name="familymember">$the-object/cm:defaultName</cf:param>
- <cf:param name="home"><xsl:value-of select="$start-at-path"/></cf:param>
- <cf:param name="onlyAncestors">true</cf:param>
- </cf:do-the-path-link>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <lyt:layout style="1" width="100%" lyt:kbA11y="true">
- <lyt:section>
- <dp:list width="100%">
- <!-- Location -->
- <!-- ============================================================ -->
- <dp:section>
- <dp:label valign="top" width="15%" aria-labelledby="propLoc"><xts:string id="IDS_PROP_LOCATION"/></dp:label>
- <dp:text wrap="wrap" valign="top" width="40%">
- <xsl:value-of select="$propLocation"/>
- </dp:text>
- <span style="position: absolute;margin-left: -9999px; margin-top: -9999px;" id="propLoc"><xsl:value-of select="$propLocation"/></span>
- <dp:list>
- <dp:section valign="top">
- <img width="16" title="" style="height: 16px;position: relative;top:2px" >
- <xsl:attribute name="alt"><xts:string id="IDS_PROP_SEARPATH_VIEW_ICON_ALT"/></xsl:attribute>
- <xsl:attribute name="src"><xsl:value-of select="concat($image_root, 'action_unique_identifier.gif')"/></xsl:attribute>
- </img>
- <dp:link tdClass="">
- <!-- Show the search path -->
- <pm:permissions origin="/root/cm:queryResponse/*/"/>
- <xsl:variable name="isDangling" select="(/root/cm:queryResponse/*/cm:objectClass = 'shortcut' and (/root/cm:queryResponse/*/cm:target/*/cm:objectClass = 'nil' or /root/cm:queryResponse/*/cm:target/*/cm:base/*/cm:objectClass = 'nil' or (/root/cm:queryResponse/*/cm:target/*/cm:base and not(/root/cm:queryResponse/*/cm:target/*/cm:base/*/cm:objectClass)))) or ((/root/cm:queryResponse/*/cm:objectClass = 'reportView' or /root/cm:queryResponse/*/cm:objectClass = 'agentDefinitionView' or /root/cm:queryResponse/*/cm:objectClass = 'dataMovementTaskAlias' or /root/cm:queryResponse/*/cm:objectClass = 'powerPlay8ReportView') and (/root/cm:queryResponse/*/cm:base/*/cm:objectClass = 'nil' or not(/root/cm:queryResponse/*/cm:base/*/cm:objectClass)))"/>
- <xsl:variable name="url-encoded-id"><pf:idToSearchPathForURL source="/root/cm:queryResponse/*/cm:storeID"/></xsl:variable>
- <xsl:variable name="class">
- <xsl:choose>
- <xsl:when test=" /root/cm:queryResponse/*/cm:objectClass = 'shortcut' "><xsl:value-of select="/root/cm:queryResponse/*/cm:target/*/cm:objectClass[1]"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="/root/cm:queryResponse/*/cm:objectClass"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="documentType">
- <xsl:choose>
- <xsl:when test=" /root/cm:queryResponse/*/cm:objectClass = 'shortcut' "><xsl:value-of select="/root/cm:queryResponse/*/cm:target/*/cm:documentType"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="/root/cm:queryResponse/*/cm:documentType"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="action">
- <xsl:call-template name="gen-action">
- <xsl:with-param name="class" select="$class"/>
- <xsl:with-param name="object" select="/root/cm:queryResponse/*"/>
- <xsl:with-param name="canExecute" select="$canExecute"/>
- <xsl:with-param name="canRead" select="$canRead"/>
- <xsl:with-param name="canTraverse" select="$canTraverse"/>
- <xsl:with-param name="output_format" select="$output_format"/>
- <xsl:with-param name="userInterfaces" select="$userInterfaces"/>
- <xsl:with-param name="launchableType" select="$launchableType"/>
- <xsl:with-param name="effectiveUserCapabilities" select="$effectiveUserCapabilities"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="actionString">
- <xsl:call-template name="gen-action-string">
- <xsl:with-param name="action" select="$action"/>
- <xsl:with-param name="class" select="$class"/>
- <xsl:with-param name="userInterfaces" select="$userInterfaces"/>
- <xsl:with-param name="documentType" select="$documentType"/>
- <xsl:with-param name="launchableType" select="$launchableType"/>
- <xsl:with-param name="effectiveUserCapabilities" select="$effectiveUserCapabilities"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="defaultMorphlet"><pf:getDefaultMorphletForObject objectClass="$class"/></xsl:variable>
- <xsl:variable name="geturl">
- <xsl:for-each select="/root/cm:queryResponse/*">
- <!-- Call gen-url to get the default action URL -->
- <xsl:call-template name="gen-url">
- <xsl:with-param name="canExecute" select="$canExecute"/>
- <xsl:with-param name="canRead" select="$canRead"/>
- <xsl:with-param name="canTraverse" select="$canTraverse"/>
- <xsl:with-param name="output_format" select="$output_format"/>
- <xsl:with-param name="class" select="$class"/>
- <xsl:with-param name="userInterfaces" select="$userInterfaces"/>
- <xsl:with-param name="action" select="$action"/>
- <xsl:with-param name="isDangling" select="$isDangling"/>
- <xsl:with-param name="isContainer" select="key('ui-object', string($class))/@container = 'T'"/>
- <xsl:with-param name="canWrite" select="$canWrite"/>
- <xsl:with-param name="morphlet" select="$defaultMorphlet"/>
- <xsl:with-param name="url-encoded-id" select="$url-encoded-id"/>
- <xsl:with-param name="canReadParent" select="contains(/root/cm:queryResponse/*/cm:parent/*/cm:permissions, 'read')"/>
- <xsl:with-param name="hasChildren" select="cm:hasChildren = 'true'"/>
- <xsl:with-param name="genURLForBookmark" select="true()"/>
- <xsl:with-param name="effectiveUserCapabilities" select="$effectiveUserCapabilities"/>
- </xsl:call-template>
- </xsl:for-each>
- </xsl:variable>
- <cp:genericDialog id="searchPath" interactive="true" align="left" positionVertical="false" positionHorizontal="true" width="400" helpid="searchPathHelp" focusidOnShiftTab="closeSearchPath">
- <cp:param name="title"><xts:string id="IDS_PROP_SEARPATH_VIEW"/></cp:param>
- <cp:param name="body">
- <lyt:layout style="1">
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:text tdClass="formLabel"><xts:string id="IDS_PROP_SEARPATH_LABEL"/></dp:text>
- </dp:section>
- <dp:section>
- <dp:text wrap="true">
- <div class="dialogSearchPathDisplayPanel" style="width:400px;word-break:break-all;" name="searchPathtextarea" tabindex="0">
- <xsl:value-of select="$the-object/cm:searchPath"/>
- </div>
- </dp:text>
- </dp:section>
- <dp:section>
-
- <dp:text tdClass="formLabel"><div tabindex="0"><xts:string id="IDS_PROP_ID_LABEL"/></div></dp:text>
- </dp:section>
- <dp:section>
-
- <dp:text nospace="true"><div class="dialogSearchPathDisplayPanel" style="width:400px;word-break:break-all;" tabindex="0"><xsl:value-of select="$the-object/cm:storeID"/></div></dp:text>
- </dp:section>
- <dp:section>
- <dp:text/>
- </dp:section>
- <dp:section>
-
- <dp:text tdClass="formLabel"><div tabindex="0"><xts:string id="IDS_PROP_URL_LABEL"/></div></dp:text>
- </dp:section>
- <xsl:choose>
- <xsl:when test="string($geturl) = ''">
- <dp:section>
-
- <dp:text><div class="dialogSearchPathDisplayPanel" style="width:400px;word-break:break-all;" tabindex="0"><xts:string id="IDS_PROP_URL_NONE"/></div></dp:text>
- </dp:section>
- <dp:section>
- <dp:text/>
- </dp:section>
- </xsl:when>
- <xsl:otherwise>
- <dp:section>
- <dp:text wrap="true">
- <div id="GetURLText" style="width:400px;word-break:break-all;" class="dialogSearchPathDisplayPanel" tabIndex="0">
- <xsl:value-of select="$geturl"/>
- </div>
- </dp:text>
- </dp:section>
- </xsl:otherwise>
- </xsl:choose>
- </dp:list>
- </lyt:section>
- </lyt:layout>
- </cp:param>
- <!-- NOTE: onkeydown required to force navigation within the popup element -->
- <cp:param name="footer">
- <dp:simpleFooter>
- <cp:cmdButton defaultState="active" id="closeSearchPath">
- <cp:cmdButtonText><xts:string id="IDS_CLOSE"/></cp:cmdButtonText>
- <cp:cmdButtonEvents>
- <cp:cmdButtonEvent name="onclick">javascript:searchPath.hide()</cp:cmdButtonEvent>
- <cp:cmdButtonEvent name="onkeypress">javascript:<xsl:value-of select="$chkSpaceEnterKeyEvent"/><xsl:text>{</xsl:text> this.onclick(); return false; <xsl:text>}</xsl:text> return true;</cp:cmdButtonEvent>
- <cp:cmdButtonEvent name="onkeydown">javascript:if(event.keyCode==9) <xsl:text>{</xsl:text> if(event.shiftKey==true) return true; else <xsl:text>{</xsl:text> if(document.getElementById("searchPathHelp")) <xsl:text>{</xsl:text>document.getElementById("searchPathHelp").focus(); return false; <xsl:text>}</xsl:text> <xsl:text>}</xsl:text> <xsl:text>}</xsl:text> return true;</cp:cmdButtonEvent>
- </cp:cmdButtonEvents>
- </cp:cmdButton>
- </dp:simpleFooter>
- </cp:param>
- </cp:genericDialog>
- <a href="#" role="button" >
- <xsl:attribute name="onclick">javascript:searchPath.show();</xsl:attribute>
- <xsl:attribute name="onkeypress">javascript:<xsl:value-of select="$chkSpaceEnterKeyEvent"/>{ this.onclick(); return false;};return true;</xsl:attribute>
- <xsl:text/><xts:string id="IDS_PROP_SEARPATH_VIEW"/><xsl:text/>
- </a>
- </dp:link>
- </dp:section>
- </dp:list>
- </dp:section>
- </dp:list>
- </lyt:section>
- <!-- Created -->
- <!-- ============================================================ -->
- <lyt:section>
- <dp:list width="100%">
- <dp:section>
- <dp:label valign="top" width="15%"><xts:string id="IDS_PROP_CREATED"/></dp:label>
- <dp:text wrap="wrap" valign="top" >
- <xsl:variable name="creationTime">
- <xsl:value-of select="xtsext:formatDateFromUTC( string( $the-object/cm:creationTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ))"/>
- </xsl:variable>
- <xsl:value-of select="xtsext:enforceBTD($creationTime, 'auto', $productLocale, boolean($isBidiEnabled='true'))"/>
- </dp:text>
- </dp:section>
- </dp:list>
- </lyt:section>
- <!-- Modified -->
- <!-- ============================================================ -->
- <lyt:section>
- <dp:list width="100%">
- <dp:section>
- <dp:label valign="top" width="15%"><xts:string id="IDS_PROP_MODIFIED"/></dp:label>
- <dp:text wrap="wrap" valign="top">
- <xsl:variable name="modifTime">
- <xsl:value-of select="xtsext:formatDateFromUTC(string( $the-object/cm:modificationTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
- </xsl:variable>
- <xsl:value-of select="xtsext:enforceBTD($modifTime, 'auto', $productLocale, boolean($isBidiEnabled='true'))"/>
- </dp:text>
- </dp:section>
- </dp:list>
- </lyt:section>
- <!-- Icon -->
- <!-- ============================================================ -->
- <lyt:section>
- <dp:list width="100%">
- <xsl:variable name="customIconURI">
- <xsl:if test="$the-object/cm:iconURI and $the-object/cm:iconURI!=''">
- <xsl:value-of select="$the-object/cm:iconURI"/>
- </xsl:if>
- </xsl:variable>
- <xsl:variable name="sysIcon">
- <xsl:choose>
- <xsl:when test="$objClass = 'document'">
- <xsl:variable name="documentType">
- <xsl:choose>
- <xsl:when test="$target">
- <xsl:value-of select="$target/cm:documentType"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$the-object/cm:documentType"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:value-of select="key('system-param', 'ui_objects')/*[@class = $objClass]/@icon"/><xsl:text/>
- <xsl:value-of select="/root/system/param[@name='ui_graphics']/param[@name='document_format']/format[@name = $documentType]/@icon"/>
- </xsl:when>
- <xsl:when test="$objClass = 'documentContent'">
- <xsl:choose>
- <xsl:when test="$target">
- <xsl:value-of select="key('system-param', 'ui_graphics')/param[@name='output_format']/format[@name=$target/cm:format]/@icon"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="key('system-param', 'ui_graphics')/param[@name='output_format']/format[@name=$the-object/cm:format]/@icon"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="$objClass = 'output'">
- <xsl:value-of select="key('system-param', 'ui_graphics')/param[@name='agentHotlist_format']/format[@name='agentOutputHotlist']/@icon"/>
- </xsl:when>
- <xsl:when test="$objClass = 'launchable'">
- <xsl:value-of select="key('system-param', 'ui_objects')/*[@class = $objClass]/launchableType[@name = $launchableType]/@icon"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="key('system-param', 'ui_objects')/*[@class = $objClass]/@icon"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="scSuffix" select="key('system-param', 'ui_graphics')/param[@name='shortcut_suffix']"/>
- <xsl:variable name="stdIconName">
- <xsl:choose>
- <xsl:when test="$sysIcon!=''">
- <xsl:value-of select="$image_root"/>icon_<xsl:value-of select="$sysIcon"/>
- <xsl:if test="$uiClass='shortcut'">
- <xsl:value-of select="$scSuffix"/>
- </xsl:if>
- <xsl:text/>.gif<xsl:text/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$image_root"/>icon_unknown.gif<xsl:text/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <dp:section>
- <dp:label valign="top" width="15%"><xts:string id="IDS_PROP_ICON"/></dp:label>
- <dp:text wrap="nowrap" valign="top">
- <xsl:variable name="iconLabel"><xts:string id="IDS_PROP_STANDARD_ENTRY_ICON_ALT"/></xsl:variable>
- <img width="16" id="icon_preview" align="absmiddle" style="height: 16px;">
- <xsl:attribute name="alt"><xsl:value-of select="$iconLabel"/></xsl:attribute>
- <xsl:attribute name="src">
- <xsl:choose>
- <xsl:when test="$customIconURI=''">
- <xsl:value-of select="$stdIconName"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <!-- Ignore external URLs -->
- <xsl:when test="contains($customIconURI,':/') or contains($customIconURI,'\\') or contains($customIconURI,'//')">
- <!-- blank -->
- </xsl:when>
- <!-- Relative URLs -->
- <xsl:when test="contains($customIconURI, '/') or contains($customIconURI, '\')">
- <xsl:choose>
- <!-- Relative that doesn't start with / -->
- <xsl:when test="not(starts-with($customIconURI, '/'))">
- <xsl:value-of select="$webRoot"/>/<xsl:value-of select="$customIconURI"/>
- </xsl:when>
- <!-- Relative that better start with / -->
- <xsl:otherwise>
- <xsl:value-of select="$webRoot"/><xsl:value-of select="$customIconURI"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$image_root"/><xsl:value-of select="$customIconURI"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- </img>
- <xsl:variable name="iconProp">
- <xsl:choose>
- <xsl:when test="/root/cm:queryResponse/*/cm:iconURI and /root/cm:queryResponse/*/cm:iconURI!=''">
- <xts:string id="IDS_PROP_CUSTOM"/>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_PROP_STANDARD"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <span id="iconType" style="padding-left:10px;padding-right:10px;">
- <xsl:value-of select="$iconProp"/>
- </span>
- <xsl:if test="$the-object/cm:iconURI[@modifiable='true'] and not($noUserProfile)">
- <span>
- <xsl:if test="$is-ui-rtl">
- <xsl:attribute name="dir">rtl</xsl:attribute>
- </xsl:if>
- <a href="#" role="button">
- <xsl:attribute name="onclick">javascript:iconDialog.show();</xsl:attribute>
- <xsl:attribute name="onkeypress">javascript:<xsl:value-of select="$chkSpaceEnterKeyEvent"/>{ this.onclick(); return false;} return true;</xsl:attribute>
- <xsl:text/><xts:string id="IDS_PROP_EDIT"/><xsl:text/>
- </a>
- </span>
- </xsl:if>
- <div id="customIconType" style="display:none"><xts:string id="IDS_PROP_CUSTOM" tabindex="0"/></div>
- <div id="stdIconType" style="display:none"><xts:string id="IDS_PROP_STANDARD" tabindex="0"/></div>
- </dp:text>
- <xsl:if test="$the-object/cm:iconURI[@modifiable='true']">
- <script language="javascript">
- var g_CustomIcon = "<xsl:value-of select="xtsext:javascriptencode(string(/root/cm:queryResponse/*/cm:iconURI))"/>";
- function buildIconName()
- {
- var sCustomIconURI = document.pform.m_p_iconURI ? removeUCCFromStr(document.pform.m_p_iconURI.value) : '';
- var sImagePath = "<xsl:value-of select="xtsext:javascriptencode(string($image_root))"/>";
- var sWebRoot = "<xsl:value-of select="xtsext:javascriptencode(string($webRoot))"/>";
- var sIcon = "";
- if (sCustomIconURI == '')
- {
- sIcon = "<xsl:value-of select="$stdIconName"/>";
- }
- else
- {
- <!-- ignore absolute urls -->
- if ( sCustomIconURI.indexOf("\\\\") != -1 || sCustomIconURI.indexOf("//") != -1 || sCustomIconURI.indexOf(":/") != -1 )
- {
- // No place for absolute URLs in here
- }
- // relative
- else if ( sCustomIconURI.indexOf("/") != -1 || sCustomIconURI.indexOf("\\") != -1 )
- {
- <!-- // relative - doesn't start with / -->
- if (!(sCustomIconURI.indexOf("/") == 0))
- sIcon = sWebRoot + "/" + sCustomIconURI;
- else
- sIcon = sWebRoot + sCustomIconURI;
- }
- else
- {
- sIcon = sImagePath + sCustomIconURI;
- }
- }
- return sIcon;
- }
- function updateIconPreview()
- {
- // Update the preview
- document.getElementById("icon_preview").src = buildIconName();
- // Update the label
- var sCustomIconURI = document.pform.m_p_iconURI ? removeUCCFromStr(document.pform.m_p_iconURI.value) : '';
- if (sCustomIconURI == '')
- {
- document.getElementById("iconType").innerHTML = document.getElementById("stdIconType").innerHTML;
- if (document.pform.icon_radio)
- {
- document.pform.icon_radio[0].checked=true;
- }
- }
- else
- document.getElementById("iconType").innerHTML = document.getElementById("customIconType").innerHTML;
- saveIconInfo();
- }
- function restoreIconInfo()
- {
- if (g_CustomIcon == '')
- {
- document.pform.icon_radio[0].checked = true;
- document.pform.m_p_iconURI.value = "";
- }
- else
- {
- <xsl:choose>
- <xsl:when test="$isBidiEnabled = 'true'">
- document.pform.m_p_iconURI.value = bidi.sttInjectUCCIntoStr(g_CustomIcon, 'filepath');
- </xsl:when>
- <xsl:otherwise>
- document.pform.m_p_iconURI.value = g_CustomIcon;
- </xsl:otherwise>
- </xsl:choose>
- document.pform.m_p_iconURI.value = g_CustomIcon;
- document.pform.icon_radio[1].checked = true;
- }
- }
- function saveIconInfo()
- {
- g_CustomIcon = document.pform.m_p_iconURI ? removeUCCFromStr(document.pform.m_p_iconURI.value) : '';
- }
- </script>
- <dp:link>
- <!-- link to change the icon -->
- <cp:genericDialog id="iconDialog" interactive="true" align="left" width="500" positionVertical="true" positionHorizontal="true" helpid="iconDialogHelp" focusidOnShiftTab="iconDialogCancel">
- <cp:param name="title"><xts:string id="IDS_PROP_SPECIFY_ENTRY_ICON_TITLE"/></cp:param>
- <cp:param name="body">
- <lyt:layout style="1" lyt:kbA11y="true">
- <lyt:section>
- <dp:list dp:kbA11y="true">
- <dp:section dp:kbA11y="true">
- <table border="0" cellspacing="0" cellpadding="1" role="presentation"><tr tabindex="0" aria-labelledby="iconIntro"><td class="dialogHeaderText" summary="">
- <dp:text>
- <div style="width: 500px; ;white-space: pre-line;"><xts:string id="IDS_PROP_SPECIFY_ENTRY_ICON_INTRO"/></div>
- </dp:text>
- </td></tr></table>
- <span style="position: absolute;margin-left: -9999px; margin-top: -9999px;" id="iconIntro"><xts:string id="IDS_PROP_SPECIFY_ENTRY_ICON_INTRO"/></span>
- </dp:section>
- <dp:section>
- <dp:text/>
- </dp:section>
- <dp:section >
- <utml:radio-group name="icon_radio">
- <utml:default-value>
- <xsl:choose>
- <xsl:when test="/root/cm:queryResponse/*/cm:iconURI and /root/cm:queryResponse/*/cm:iconURI!=''">
- <xsl:value-of select="'custom'"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="'standard'"/>
- </xsl:otherwise>
- </xsl:choose>
- </utml:default-value>
- <div>
- <dp:choice id="IDS_PROP_ENTRY_ICON_LABEL" title="IDS_PROP_ENTRY_ICON_LABEL">
- <dp:section1 type="radio">
- <utml:input type="radio" value="standard" onclick="this.form.m_p_iconURI.value = '';this.form.m_p_iconURI.disabled=true" id="std"/>
- </dp:section1>
- <dp:section2>
- <label for="std"><xts:string id="IDS_PROP_STANDARD_ENTRY_ICON_LABEL"/></label>
- </dp:section2>
- <dp:section1>
- <utml:input type="radio" value="custom" id="custom">
- <xsl:attribute name="onclick">this.form.m_p_iconURI.disabled=false</xsl:attribute>
- </utml:input>
- </dp:section1>
- <dp:section2>
- <label for="custom"><xts:string id="IDS_PROP_SPECIFY_ICON_LABEL"/></label>
- </dp:section2>
- <dp:section3>
- <xsl:variable name="initValue">
- <xsl:value-of select="/root/cm:queryResponse/*/cm:iconURI"/>
- </xsl:variable>
- <utml:input type="text" name="m_p_iconURI" size="70" maxlength="256" title="custom" stttype="filepath">
- <utml:value>
- <xsl:value-of select="xtsext:sttInjectUCCIntoStr($initValue, 'filepath', boolean($isBidiEnabled='true'))"/>
- </utml:value>
- <xsl:if test="/root/cm:queryResponse/*/cm:iconURI/@nil = 'true'">
- <xsl:attribute name="disabled">true</xsl:attribute>
- </xsl:if>
- </utml:input>
- </dp:section3>
- </dp:choice>
- </div>
- </utml:radio-group>
- </dp:section>
- </dp:list>
- </lyt:section>
- </lyt:layout>
- </cp:param>
- <cp:param name="footer">
- <!-- NOTE: onkeydown required to force navigation within the popup element -->
- <dp:simpleFooter>
- <td>
- <table cellpadding="0" cellspacing="0" role="presentation">
- <tr>
- <td>
- <cp:cmdButton defaultState="active" id="iconDialogOK">
- <cp:cmdButtonText><xts:string id="IDS_OK"/></cp:cmdButtonText>
- <cp:cmdButtonEvents>
- <cp:cmdButtonEvent name="onclick">javascript:iconDialog.hide(); updateIconPreview(); setPropertiesChanged();</cp:cmdButtonEvent>
- <cp:cmdButtonEvent name="onkeypress">javascript:<xsl:value-of select="$chkSpaceEnterKeyEvent"/>{ this.onclick(); return false; } return true;</cp:cmdButtonEvent>
- </cp:cmdButtonEvents>
- </cp:cmdButton>
- </td>
- <td>
- <cp:cmdButton defaultState="active" id="iconDialogCancel">
- <cp:cmdButtonText><xts:string id="IDS_CANCEL"/></cp:cmdButtonText>
- <cp:cmdButtonEvents>
- <cp:cmdButtonEvent name="onclick">javascript:iconDialog.hide();restoreIconInfo();</cp:cmdButtonEvent>
- <cp:cmdButtonEvent name="onkeypress">javascript:<xsl:value-of select="$chkSpaceEnterKeyEvent"/> { 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("iconDialogHelp")) {document.getElementById("iconDialogHelp").focus(); return false; } } } return true;</cp:cmdButtonEvent>
- </cp:cmdButtonEvents>
- </cp:cmdButton>
- </td>
- </tr>
- </table>
- </td>
- </dp:simpleFooter>
- </cp:param>
- </cp:genericDialog>
- <!-- <script language="javascript">
- updateIconPreview();
- </script> -->
- </dp:link>
- </xsl:if>
- </dp:section>
- </dp:list>
- </lyt:section>
- <!-- Indexed date and view -->
- <!-- ============================================================ -->
- <lyt:section>
- <xsl:variable name="indexedTime" select="/root/indexResult//*[local-name()='getResponse']/*[local-name()='result']/*[local-name()='details']/*[local-name()='item']/*[local-name()='modificationTime']"/>
- <xsl:if test="$userCanUseIndexSearch and $indexedTime">
- <dp:list width="100%">
- <dp:section>
- <dp:label valign="top" width="15%"><xts:string id="IDS_PROP_INDEXED"/></dp:label>
- <dp:text wrap="wrap" valign="top">
- <xsl:value-of select="xtsext:formatDateFromUTC(string( $indexedTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
- </dp:text>
- <dp:list>
- <dp:section valign="top">
- <dp:link>
- <dp:text>
- <utml:a utml:op="stack-up" utml:formName="pform" utml:kbA11y="true">
- <utml:target><xsl:value-of select="$app"/>/view_indexdetails.xts</utml:target>
- <utml:validate>validate</utml:validate>
- <xsl:text/><xts:string id="IDS_VIEW_INDEXING_DETAILS"/><xsl:text/>
- </utml:a>
- </dp:text>
- </dp:link>
- </dp:section>
- </dp:list>
- </dp:section>
- </dp:list>
- </xsl:if>
- <xsl:if test="$the-object/cm:base or $the-object/cm:target">
- <cp:genericDialog id="decision" interactive="false" align="left" width="300" positionVertical="true" positionHorizontal="true" helpid="decisionHelp" focusidOnShiftTab="decisionCancel">
- <cp:param name="title"><xts:string id="IDS_PROP_CHANGES_TITLE"/></cp:param>
- <cp:param name="body">
- <lyt:layout style="1" lyt:kbA11y="true">
- <lyt:section>
- <dp:list dpkbA11y="true">
- <dp:section>
- <dp:text><xts:string id="IDS_PROP_SAVE_CHANGES_1"/></dp:text>
- </dp:section>
- <dp:section>
- <dp:text/>
- </dp:section>
- <dp:section dpkbA11y="true">
- <dp:text><xts:string id="IDS_PROP_SAVE_CHANGES_2"/></dp:text>
- </dp:section>
- <dp:section>
- <dp:text/>
- </dp:section>
- <dp:section>
- <dp:text/>
- </dp:section>
- </dp:list>
- </lyt:section>
- </lyt:layout>
- </cp:param>
- <cp:param name="footer">
- <dp:simpleFooter>
- <df:button df:id="IDS_PROP_SAVE_CHANGES_YES" df:style="href" df:href="javascript:decision.hide();redirect('save');" df:kbA11y="true"/>
- <df:button df:id="IDS_PROP_SAVE_CHANGES_NO" df:style="href" df:href="javascript:decision.hide();redirect();" df:kbA11y="true"/>
- <df:button df:id="IDS_CANCEL" df:style="href" id="decisionCancel" df:href="javascript:decision.hide();" focusidOnTab="decisionHelp" df:kbA11y="true"/>
- </dp:simpleFooter>
- </cp:param>
- </cp:genericDialog>
- </xsl:if>
- </lyt:section>
- </lyt:layout>
- </td>
- </tr><tr><td></td><td></td></tr>
- </table>
- <xsl:if test="string(/root/*[local-name()='queryResponse'])!=''">
- <!-- Horizontal line -->
- <xsl:call-template name="renderLanguages"/>
- <!-- this section was the largest in a small section so i eliminated it -->
- <xsl:call-template name="render-retention"/>
- </xsl:if>
- <xsl:if test="starts-with(string($the-object/cm:objectClass),'reportDataServiceAgentDefinition')">
- <!-- add source report info when subscription -->
- <xsl:variable name="rdsadName">
- <xsl:choose>
- <xsl:when test="string(key('env-param','m_periodicalProducer'))=''">
- <cf:do-the-path-link>
- <cf:param name="familytree">$rdsad-path/cm:periodicalProducer/*/cm:ancestors</cf:param>
- <cf:param name="familymember">$rdsad-path/cm:periodicalProducer/*/cm:defaultName</cf:param>
- <cf:param name="home"><xsl:value-of select="'/content'"/></cf:param>
- </cf:do-the-path-link>
- </xsl:when>
- <xsl:otherwise>
- <cf:do-the-path-link>
- <cf:param name="familytree">/root/selected/cm:queryResponse/*/cm:ancestors</cf:param>
- <cf:param name="familymember">/root/selected/cm:queryResponse/*/cm:defaultName</cf:param>
- <cf:param name="home"><xsl:value-of select="'/content'"/></cf:param>
- </cf:do-the-path-link>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <lyt:layout style="2" border="yes" width="100%" lyt:kbA11y="true">
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:label valign="top" width="15%"><xts:string id="IDS_PROP_SOURCE_RPT"/></dp:label>
- <dp:text valign="top" width="100%">
- <xsl:value-of select="$rdsadName"/>
- </dp:text>
- <dp:text></dp:text>
- <xsl:if test="$hasCondSubscriptionsCapability">
- <dp:text valign="top"><utml:a utml:op="maintain" utml:formName="pform">
- <xsl:attribute name="onclick">setSelectParams('so.select','<xsl:value-of select="$the-object/cm:objectClass"/>Base',<xsl:text/>
- <xsl:choose>
- <xsl:when test="string($rdsad-path/cm:periodicalProducer/*/cm:searchPath)!='' or string(key('env-param','m_periodicalProducer'))!=''">
- <xsl:text/>'so.defaultObject','<xsl:text/>
- <xsl:choose>
- <xsl:when test="string(key('env-param','m_periodicalProducer'))!=''"><xsl:value-of select="xtsext:javascriptencode(string(key('env-param','m_periodicalProducer')))"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="xtsext:javascriptencode(string($rdsad-path/cm:periodicalProducer/*/cm:searchPath))"/></xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text/>'so.defaultLocation','<xsl:text/>
- <xsl:if test="string(key('env-param','m_path'))!=''"><xsl:text/><xsl:value-of select="xtsext:javascriptencode(string(key('env-param','m_path')))"/><xsl:text/></xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:text/>');<xsl:text/>
- </xsl:attribute>
- <utml:target><xsl:value-of select="$app"/>/select/select.xts</utml:target>
- <utml:validate>validate</utml:validate>
- <xsl:text/><xts:string id="IDS_PROP_LINK_TO_REPORT"/><xsl:text/></utml:a>
- </dp:text>
- </xsl:if>
- </dp:section>
- </dp:list>
- </lyt:section>
- </lyt:layout>
- </xsl:if>
- <!-- show PP series7 gateway -->
- <xsl:if test="$the-object/cm:objectClass ='powerPlayCube' or $the-object/cm:objectClass ='powerPlayReport'">
- <lyt:layout style="1" border="yes" lyt:kbA11y="true">
- <lyt:section>
- <dp:section>
- <dp:input>
- <dp:section1>
- <xts:string id="IDS_PROP_PP_GATEWAY"/>
- </dp:section1>
- <dp:section2>
- <utml:input type="text" class="pInput" size="30" name="m_p_gateway">
- <utml:read-only>
- <xsl:choose>
- <xsl:when test="$the-object/cm:gateway[@modifiable = 'false']">true</xsl:when>
- <xsl:otherwise>false</xsl:otherwise>
- </xsl:choose>
- </utml:read-only>
- <utml:value>
- <xsl:value-of select="$the-object/cm:gateway"/>
- </utml:value>
- </utml:input>
- </dp:section2>
- </dp:input>
- </dp:section>
- </lyt:section>
- </lyt:layout>
- </xsl:if>
- <!-- Shortcut - Target properties -->
- <xsl:if test="$the-object/cm:objectClass = 'shortcut'">
- <xsl:variable name="canReadOnTarget" select="contains($target/cm:permissions, 'read')"/>
- <xsl:variable name="canWriteOnTarget" select="contains($target/cm:permissions, 'write')"/>
- <xsl:variable name="canSPOnTarget" select="contains($target/cm:permissions, 'setPolicy')"/>
- <xsl:variable name="sourceProp">
- <cf:do-the-path-link>
- <cf:param name="familytree">$target/cm:ancestors</cf:param>
- <cf:param name="familymember">$target/cm:defaultName</cf:param>
- <cf:param name="home"><xsl:value-of select="$start-at-path"/></cf:param>
- </cf:do-the-path-link>
- </xsl:variable>
- <lyt:layout style="1" border="yes" lyt:kbA11y="true">
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:label valign="top">
- <xts:string id="IDS_PROP_SHORTCUT_TO"/>
- </dp:label>
- <dp:text wrap="wrap" valign="top">
- <xsl:value-of select="$sourceProp"/>
- </dp:text>
- <xsl:choose>
- <xsl:when test="$the-object/cm:target/cm:nil">
- <dp:text valign="top"><xts:string id="IDS_PROP_SOURCE_NOTFOUND"/></dp:text>
- </xsl:when>
- <xsl:when test="$canReadOnTarget or $canWriteOnTarget or $canSPOnTarget">
- <dp:text valign="top">
- <a href="#">
- <xsl:attribute name="onclick">javascript:if(!getPropertiesChanged()){redirect();} else {decision.show();}</xsl:attribute>
- <xsl:attribute name="onkeypress">javascript:<xsl:value-of select="$chkSpaceEnterKeyEvent"/>{if(!getPropertiesChanged()){redirect(); return false;} else {decision.show();return false;} }return true;</xsl:attribute>
- <xsl:text/><xts:string id="IDS_PROP_SOURCE_PROPERTIES"/><xsl:text/>
- </a>
- </dp:text>
- </xsl:when>
- </xsl:choose>
- </dp:section>
- </dp:list>
- </lyt:section>
- </lyt:layout>
- </xsl:if>
- <!-- repository options and package info -->
- <xsl:variable name="renderRepositoryOverride" select="((/root/env/param[@name='m_class'] = 'package') or (/root/env/param[@name='m_class'] = 'folder') or (/root/env/param[@name='m_class'] = 'content') or (/root/env/param[@name='m_class'] = 'namespace') or (/root/env/param[@name='m_class'] = 'namespaceFolder') or (/root/env/param[@name='m_class'] = 'account')) and $userCanUpdateRepositoryRules='true'"/>
- <xsl:if test="/root/env/param[@name='m_class'] = 'package' or $renderRepositoryOverride">
- <lyt:layout style="1" border="yes" width="100%" lyt:kbA11y="true">
- <lyt:section>
- <xsl:if test="$renderRepositoryOverride='true'">
- <xsl:variable name="hasRepositoryRules" select="count(/root/cm:queryResponse[1]/*/cm:repositoryRules/cm:repositoryRule) > 0"/>
- <xsl:variable name="isRepositoryRulesNotAcquired" select="/root/cm:queryResponse[1]/*/cm:repositoryRules/@acquired = 'false'"/>
- <xsl:variable name="isRepositoryRulesOverriden" select="$isRepositoryRulesNotAcquired and $hasRepositoryRules"/>
- <xsl:variable name="reportVerRepDataSource" select="/root/cm:queryResponse[1]/*/cm:repositoryRules/cm:repositoryRule[cm:objectClass='reportVersion']/cm:dataSourceName"/>
- <xsl:variable name="documentVerRepDataSource" select="/root/cm:queryResponse[1]/*/cm:repositoryRules/cm:repositoryRule[cm:objectClass='documentVersion']/cm:dataSourceName"/>
- <script language="javascript">
- function toggleRepositoryRulesOverride(){
- var controlsEl = document.getElementById("repositoryRulesEdit");
- var docForm = document.pform;
- if (docForm.overrideRepositoryRules.checked){
- controlsEl.style.visibility = "visible";
- }else{
- //hide the selection controls and set the selection to the parents selection
- controlsEl.style.visibility = "hidden";
- }
- setRepositoryDataSourceName(docForm.parent_reportRepositoryDataSource.value, docForm.parent_documentRepositoryDataSource.value);
- var clearEl = document.getElementById("rdsClear");
- if (docForm.parent_reportRepositoryDataSource.value == ""){
- clearEl.style.display = "none";
- } else{
- clearEl.style.display = "inline";
- }
- }
- function setRepositoryDataSourceName(report_repoName, doc_repoName){
- var docForm = document.pform;
- docForm.m_reportRepositoryDataSource.value = report_repoName;
- docForm.m_documentRepositoryDataSource.value = doc_repoName;
- var dataSourceSpanEl = document.getElementById("repRulesText");
- dataSourceSpanEl.innerHTML = "";
- dataSourceSpanEl.appendChild(document.createTextNode(createDataSourceString()));
- }
- function clearRepositoryRules(){
- setRepositoryDataSourceName("","");
- document.getElementById("rdsClear").style.display = "none";
- setPropertiesChanged();
- }
- function createDataSourceString(){
- var returnString = "";
- var docForm = document.pform;
- if (docForm.m_reportRepositoryDataSource.value == docForm.m_documentRepositoryDataSource.value){
- if (docForm.m_reportRepositoryDataSource.value == ""){
- returnString = "<xts:string encode="javascript" id="IDS_NONE"/>";
- } else{
- returnString = docForm.m_reportRepositoryDataSource.value;
- }
- } else{
- if (docForm.m_reportRepositoryDataSource.value == ""){
- returnString = docForm.m_documentRepositoryDataSource.value;
- } else if (docForm.m_documentRepositoryDataSource.value == ""){
- returnString = docForm.m_reportRepositoryDataSource.value;
- } else {
- returnString = docForm.m_reportRepositoryDataSource.value + "," + docForm.m_documentRepositoryDataSource.value;
- }
- }
- return returnString;
- }
- function maskWindow() {
- var d = document.getElementById("windowMask");
- d.style.display = "block";
- }
- var currentSOReturnValue;
- function openDialog() {
- var i = document.getElementById("dialogWindowContainer");
- if(i.style.display == "block") closeDialog();
- //currrentSOReturnValue = document.pform["so.return.m"].value;
- var soRetEl = document.getElementById("soReturnM");
- currrentSOReturnValue = soRetEl.getAttribute("value");
- soRetEl.parentNode.removeChild(soRetEl);
- setDialogContainer();
- var formEl = document.getElementById("theForm");
- var input = document.createElement("input");
- input.setAttribute("id","modalnput");
- input.setAttribute("type", "hidden");
- input.setAttribute("name", "md.callBack");
- input.setAttribute("value", "xml");
- formEl.appendChild(input);
- document.pform.m.value = "portal/select/select.xts";
- document.pform["so.select"].value = "repositoryDataSource";
- var dsName = "";
- if (document.pform.m_reportRepositoryDataSource.value != ""){
- dsName = document.pform.m_reportRepositoryDataSource.value;
- } else if (document.pform.m_documentRepositoryDataSource.value != ""){
- dsName = document.pform.m_documentRepositoryDataSource.value;
- }
- document.pform["so.defaultLocation"].value = "CAMID(\":\")";
- document.pform["so.defaultObject"].value = dsName!='' ? "CAMID(\":\")/dataSource[@name='" + dsName.replace(/'/g,"''") + "']" : "";
- document.pform.target = "dialogWindow2";
- document.pform.submit();
- }
- function setDialogContainer() {
- // Get ready to show a modal dialog
- maskWindow();
- var i = document.getElementById("dialogWindowContainer");
- i.style.display = "block";
- // Size it
- i.style.height = "325px";
- i.style.width = "600px";
- // Position it
- i.style.position="absolute";
- i.style.top = ((document.body.clientHeight - i.scrollHeight) / 2) + document.body.scrollTop + "px";
- i.style.left = ((document.body.clientWidth - i.scrollWidth) / 2) + document.body.scrollLeft + "px";
- console.log("top: " + i.style.top + " left: " + i.style.left);
- }
- //-- Closes a simple dialog
- function closeDialog() {
- var inputEl = document.getElementById("modalnput");
- inputEl.parentNode.removeChild(inputEl);
- var soRetEl = document.createElement("input");
- soRetEl.setAttribute("id","soReturnM");
- soRetEl.setAttribute("type", "hidden");
- soRetEl.setAttribute("name", "so.return.m");
- soRetEl.setAttribute("value", currrentSOReturnValue);
- var formEl = document.getElementById("theForm");
- formEl.appendChild(soRetEl);
- document.pform.target = "_self";
- document.pform.m.value ="<xsl:value-of select="$app"/>/properties_general.xts";
- document.getElementById("windowMask").style.display = "none";
- document.getElementById("dialogWindowContainer").style.display = "none";
- document.getElementById("dialogWindow2").src = "../ps/images/space.gif";
- document.getElementById("repositoryRulesEditLink").focus();
- }
- //-- Handle Call back
- //------------------------------------------------------------------------------------------
- function ccModalCmdTarget(cmd) {
- var result = "";
- if (cmd == 'error')
- result = document.getElementById(dialogWindow()).document.enterdfaultact();
- else
- result = cmd;
- closeDialog();
- }
- function ccModalCallBack(cmd,sResponse) {
- var result = "";
- if (cmd == 'error')
- result = cmd;
- else
- result = cmd;
- closeDialog();
- if(sResponse!='') {
- var xmlDoc = null;
- var decodedResponse = xmlDecodeResponse(sResponse);
- if (window.DOMParser) {
- xmlDoc=new DOMParser().parseFromString(decodedResponse,"text/xml");
- }
- else { // Internet Explorer (less than IE 7)
- xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
- xmlDoc.async="false";
- xmlDoc.loadXML(decodedResponse);
- }
- var items = xmlDoc.getElementsByTagName("item")[0];
- var dataSourceName = items.getElementsByTagName("value")[0];
- var dataSourceNameValue= dataSourceName.firstChild.nodeValue;
- setRepositoryDataSourceName(dataSourceNameValue, dataSourceNameValue);
- document.getElementById("rdsClear").style.display = "inline";
- setPropertiesChanged();
- }
- }
- </script>
- <utml:input type="hidden" name="m_reportRepositoryDataSource">
- <utml:value><xsl:value-of select="$reportVerRepDataSource"/></utml:value>
- </utml:input>
- <utml:input type="hidden" name="m_documentRepositoryDataSource" >
- <utml:value><xsl:value-of select="$documentVerRepDataSource"/></utml:value>
- </utml:input>
- <utml:input type="hidden" name="parent_reportRepositoryDataSource">
- <utml:value><xsl:value-of select="/root/cm:queryResponse[1]/*/cm:parent/*/cm:repositoryRules/cm:repositoryRule[cm:objectClass='reportVersion']/cm:dataSourceName"/></utml:value>
- </utml:input>
- <utml:input type="hidden" name="parent_documentRepositoryDataSource" >
- <utml:value><xsl:value-of select="/root/cm:queryResponse[1]/*/cm:parent/*/cm:repositoryRules/cm:repositoryRule[cm:objectClass='documentVersion']/cm:dataSourceName"/></utml:value>
- </utml:input>
- <span style="position: absolute;margin-left: -9999px; margin-top: -9999px;" id="reposTitle"><xts:string id="IDS_PROP_OBJ_REPORT_REPOSITORY"/></span>
- <xsl:variable name="has-no-parent" select="/root/cm:queryResponse/*/cm:parent/cm:root"/>
- <dp:input dp:kbA11y="true" tabindex="0">
- <dp:section1 aria-labelledby="reposTitle">
- <label><xts:string id="IDS_PROP_OBJ_REPORT_REPOSITORY"/></label>
- </dp:section1>
- <dp:section2>
- <dp:choice>
- <dp:section1>
- <table border="0" cellpadding="1" cellspacing="0" style="padding-left: 2px;" role="presentation">
- <tr role="checkbox" id="overrideRepositoryRulesTable" summary="" aria-labelledby="labelForOverrideRepositoryRules" tabindex="0">
- <xsl:attribute name="onclick">javascript:if(document.getElementById('overrideRepositoryRules')!=null){if(document.getElementById('overrideRepositoryRules').checked) document.getElementById('overrideRepositoryRules').checked=false; else document.getElementById('overrideRepositoryRules').checked=true; toggleRepositoryRulesOverride();} return false;</xsl:attribute>
- <xsl:attribute name="onkeypress">javascript:<xsl:value-of select="$chkSpaceEnterKeyEvent"/>{ return this.onclick(); } return true;</xsl:attribute>
- <xsl:choose>
- <xsl:when test="$isRepositoryRulesOverriden">
- <xsl:attribute name="aria-checked">true</xsl:attribute>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="aria-checked">false</xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- <td class="formText" nowrap="">
- <xsl:choose>
- <xsl:when test="$has-no-parent">
- <utml:input type="checkbox" name="dummyOverrideRepositoryRules" value="true" disabled="true"/>
- <utml:input type="hidden" name="overrideRepositoryRules" value="true"/>
- </xsl:when>
- <xsl:otherwise>
- <utml:input type="checkbox" name="overrideRepositoryRules" id="overrideRepositoryRules" value="true" utml:track="true" onclick="toggleRepositoryRulesOverride();event.cancelBubble='true';if(event.stopPropogation)event.stopPropagation();" tabindex="-1">
- <utml:default-value>
- <xsl:choose>
- <xsl:when test="$isRepositoryRulesOverriden">true</xsl:when>
- <xsl:otherwise>false</xsl:otherwise>
- </xsl:choose>
- </utml:default-value>
- </utml:input>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td id="labelForOverrideRepositoryRules" class="formText" nowrap="">
- <label for="overrideRepositoryRules">
- <xsl:text/><xts:string id="IDS_PROP_ADVANCED_REPOSITORY_OVERRIDE"/><xsl:text/>
- </label>
- </td>
- </tr>
- <tr>
- <td><img src="{$webcontent}/images/space.gif" width="1" height="1" border="0"/></td>
- <td>
- <dp:list>
- <dp:section>
- <dp:label>
- <xsl:text/><xts:string id="IDS_PROP_ADVANCED_REPOSITORY_RULES_CONNECT_LABEL"/><xsl:text/>
- </dp:label>
- </dp:section>
- <dp:section>
- <div id="repositoryRules">
- <xsl:variable name="reposConnectName">
- <xsl:choose>
- <xsl:when test="$hasRepositoryRules">
- <xsl:choose>
- <xsl:when test="$reportVerRepDataSource = $documentVerRepDataSource and $documentVerRepDataSource = ''">
- <xsl:text><xts:string id="IDS_NONE"/></xsl:text>
- </xsl:when>
- <xsl:when test="$reportVerRepDataSource = $documentVerRepDataSource">
- <xsl:text/><xsl:value-of select="$reportVerRepDataSource"/><xsl:text/>
- </xsl:when>
- <xsl:when test="$reportVerRepDataSource = ''"><xsl:value-of select="$documentVerRepDataSource"/></xsl:when>
- <xsl:when test="$documentVerRepDataSource = ''"><xsl:value-of select="$reportVerRepDataSource"/></xsl:when>
- <xsl:otherwise>
- <xsl:text/><xsl:value-of select="$reportVerRepDataSource"/><xsl:text/>
- <xsl:text>, </xsl:text>
- <xsl:text/><xsl:value-of select="$documentVerRepDataSource"/><xsl:text/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise><xts:string id="IDS_NONE"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <dp:text wrap="true">
- <span id="repRulesText">
- <xsl:value-of select="$reposConnectName"/>
- </span>
- </dp:text>
- <!-- aria-labelledby="reposConnect" Tried this everywhere, list, div, secion not same as others -->
- </div>
- <div id="repositoryRulesEdit">
- <xsl:if test="not($has-no-parent) and (not($isRepositoryRulesOverriden) or not($has_write_permission or $has_policy_permission))">
- <xsl:attribute name="style">visibility: hidden</xsl:attribute>
- </xsl:if>
- <dp:link>
- <xsl:variable name="ancTitleSet"><xts:string id="IDS_PROP_REPOSITORY_DATASOURCE_SET"/></xsl:variable>
- <a href="#" title="" alt="" id="repositoryRulesEditLink" role="button">
- <xsl:attribute name="onclick">javascript:openDialog();</xsl:attribute>
- <xsl:attribute name="onkeypress">javascript:<xsl:value-of select="$chkSpaceEnterKeyEvent"/>{ this.onclick(); return false;}return true;</xsl:attribute>
- <xsl:text/><xsl:value-of select="$ancTitleSet"/>
- </a>
- </dp:link>
- <xsl:text>  </xsl:text>
- <dp:link>
- <xsl:variable name="ancTitleClr"><xts:string id="IDS_PROP_REPOSITORY_DATASOURCE_CLEAR"/></xsl:variable>
- <a href="#" title="" alt="" id="rdsClear">
- <xsl:variable name="hasSelectedDataSource" select="not($reportVerRepDataSource = '') or not($documentVerRepDataSource = '')"/>
- <xsl:if test="not($isRepositoryRulesOverriden and $hasSelectedDataSource)">
- <xsl:attribute name="style">display: none</xsl:attribute>
- </xsl:if>
- <xsl:attribute name="onclick">javascript:clearRepositoryRules();</xsl:attribute>
- <xsl:attribute name="onkeypress">javascript:<xsl:value-of select="$chkSpaceEnterKeyEvent"/>{ this.onclick(); return false;} return true;</xsl:attribute>
- <xsl:text/><xsl:value-of select="$ancTitleClr"/>
- </a>
- </dp:link>
- </div>
- </dp:section>
- </dp:list>
- </td>
- </tr>
- </table>
- </dp:section1>
- </dp:choice>
- </dp:section2>
- </dp:input>
- </xsl:if>
- </lyt:section>
- <lyt:section>
- <xsl:if test="/root/env/param[@name='m_class'] = 'package'"> <!-- package options -->
- <xsl:variable name="qryModeName">
- <xsl:if test="not(contains(/root/packageModel/cm:queryResponse/cm:model/cm:permissions,'read'))">
- <xts:string id="IDS_PROP_PACKAGE_UNAVAILABLE_QUERY_STACK"/>
- </xsl:if>
- <xsl:if test="contains(/root/packageModel/cm:queryResponse/cm:model/cm:permissions,'read')">
- <xsl:variable name="queryMode" select="/root/packageModel/cm:queryResponse/cm:model/options/value/*[name='http://developer.cognos.com/ceba/constants/queryOptionEnum#mode']/value"/>
- <xsl:choose>
- <xsl:when test="not($queryMode)">
- <xts:string id="IDS_PROP_PACKAGE_CLASSIC_QUERY_STACK"/>
- </xsl:when>
- <xsl:when test="not(count($queryMode)=1)">
- <xts:string id="IDS_PROP_PACKAGE_MULTIPLE_QUERY_STACK"/>
- </xsl:when>
- <xsl:when test="string($queryMode)='http://developer.cognos.com/ceba/constants/queryModeEnum#compatible'">
- <xts:string id="IDS_PROP_PACKAGE_CLASSIC_QUERY_STACK"/>
- </xsl:when>
- <xsl:when test="string($queryMode)='http://developer.cognos.com/ceba/constants/queryModeEnum#dynamic'">
- <xts:string id="IDS_PROP_PACKAGE_V5_QUERY_STACK"/>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_PROP_PACKAGE_UNKNOWN_QUERY_STACK">
- <xts:param name="queryStack"><xsl:value-of select="string($queryMode)"/></xts:param>
- </xts:string>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- </xsl:variable>
- <dp:input dp:kbA11y="true" tabindex="0">
- <dp:section1>
- <label><xts:string id="IDS_PROP_PACKAGE_QUERY_STACK"/></label>
- </dp:section1>
- <dp:section2>
- <dp:text wrap="true">
- <xsl:value-of select="$qryModeName"/>
- </dp:text>
- </dp:section2>
- </dp:input>
- </xsl:if>
- </lyt:section>
- </lyt:layout>
- </xsl:if>
- <!-- dataSourceAccessAccount prop of rolapDataSource -->
- <xsl:if test="/root/env/param[@name='m_class'] = 'rolapDataSource'">
- <xsl:variable name="accessAccountProp">
- <xsl:choose>
- <!-- A dataSourceAccessAccount object has just been selected -->
- <xsl:when test="string(key('env-param','accessAccount.so.searchPath')) != '' and key('env-param','accessAccount.so.defaultName')">
- <xsl:value-of select="/root/env/param[@name='accessAccount.so.defaultName']"/>
- </xsl:when>
- <!-- A dataSourceAccessAccount is specified on the entry -->
- <xsl:when test="$the-object/cm:dataSourceAccessAccount/*/cm:objectClass">
- <xsl:choose>
- <xsl:when test="not(string($the-object/cm:dataSourceAccessAccount/*/cm:defaultName)='')">
- <xsl:value-of select="$the-object/cm:dataSourceAccessAccount/*/cm:defaultName"/>
- </xsl:when>
- <xsl:when test="not(string($the-object/cm:dataSourceAccessAccount/*/cm:searchPath)='')">
- <xts:string id="IDS_PROP_UNKNOWN_OWNER"/>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_NONE"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <!-- There is no dataSourceAccessAccount specified -->
- <xsl:otherwise>
- <xts:string id="IDS_NONE"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <lyt:layout style="2" width="100%" border="yes" lyt:kbA11y="true">
- <lyt:section>
- <dp:list width="100%">
- <!-- Datasource Access Account -->
- <!-- ============================================================ -->
- <xsl:if test="$the-object/cm:dataSourceAccessAccount/@modifiable = 'true'">
- <dp:section>
- <dp:label valign="top" width="15%" aria-labelledby="labelForDataSourceAccessAccount" tabindex="0"><xts:string id="IDS_PROP_ACCESS_ACCOUNT"/></dp:label>
- </dp:section>
- <dp:section>
- <dp:text><xsl:value-of select="$accessAccountProp"/></dp:text>
- <script language="javascript">
- function selectAccessAccount()
- {
- <!-- m_p_dataSourceAccessAccount -->
- setSelectParams('form', 'pform','so.select','dataSourceAccessAccount','so.defaultObject','<xsl:text/>
- <xsl:choose>
- <xsl:when test="key('env-param','accessAccount.so.searchPath')"><xsl:value-of select="xtsext:javascriptencode(string(key('env-param','accessAccount.so.searchPath')))"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="xtsext:javascriptencode(string($the-object/cm:dataSourceAccessAccount/*/cm:searchPath))"/></xsl:otherwise>
- </xsl:choose>
- <xsl:text/>');<xsl:text/>
- utmlSubmitForm(document.pform,'<xsl:value-of select="xtsext:javascriptencode(string($app))"/>/select/select.xts','maintain','validate');
- }
- </script>
- <dp:link>
- <dp:text>
- <a href="javascript:selectAccessAccount();">
- <xsl:text/><xts:string id="IDS_PROP_SELECT_ACCESS_ACCOUNT"/><xsl:text/>
- </a>
- </dp:text>
- </dp:link>
- </dp:section>
- </xsl:if>
- </dp:list>
- </lyt:section>
- </lyt:layout>
- </xsl:if>
- <!-- advanced routing -->
- <xsl:if test="contains(' package role group ', concat(' ',$the-object/cm:objectClass, ' ')) and $isAdminUser">
- <script language="javascript">
- <!-- Page State must be managed so that dynamic area behaves when refreshing page -->
- function validate()
- {
- <!-- Reset the hasHints state tag -->
- resetPageState();
- return true;
- }
- function resetPageState()
- {
- <!-- Clear the cookie value hasHints -->
- clearSessionEntry('hHints');
- }
- function toggleHintsOverride( item )
- {
- var frm = document.pform;
- <!-- Change state based on the checkbox selected -->
- var val = getSessionValue(item);
- if (val != '0') {
- var msg = "<xts:string id="IDS_PROP_ADVANCED_ROUTING_INHERIT_CONFIRM" encode="javascript"/>";
- if (!confirm(msg))
- {
- frm.overrideRoutingHints.checked = "checked";
- return;
- }
- setStateValue(item,'0');
- resetHintsToParent();
- }
- else
- {
- setStateValue(item,'1');
- }
- toggledynamicDiv('overrideHintsDiv');
- toggledynamicDiv('defaultHintsDiv');
- frm.routingHintsChanged.value = 'true';
- setPropertiesChanged();
- }
- function resetHintsToOrig ()
- {
- }
- function resetHintsToParent()
- {
- // Start by removing all the hidden 'm_routingHints' fields
- var hints = document.getElementsByName("m_routingHints");
- for(var i=0; i < hints.length; i++) {
- var obj = hints[i];
- if (obj.parentNode.removeChild ) {
- obj.parentNode.removeChild(obj);
- i--;
- }
- }
- // Next replace them with copies of the defaultRoutingHints
- var frm = document.pform;
- var newHints = document.getElementsByName("defaultRoutingHints");
- for (var i=0; i < newHints.length; i++) {
- var obj = newHints[i];
- var hiddenElement = document.createElement("input");
- hiddenElement.setAttribute("type","hidden");
- hiddenElement.setAttribute("name","m_routingHints");
- hiddenElement.setAttribute("value", obj.value);
- frm.appendChild(hiddenElement);
- }
- // Finally replace the summary text for the overrideHintsDiv
- document.getElementById("overrideHintsSummary").innerHTML = document.getElementById("defaultHintsSummary").innerHTML;
- }
- </script>
- <xsl:variable name="overrideRoutinghints">
- <xsl:choose>
- <xsl:when test="key('session-param', 'hHints')='1'">true</xsl:when>
- <xsl:when test="key('session-param', 'hHints')='0'">false</xsl:when>
- <xsl:when test="key('env-param', 'routingHintsChanged') and key('env-param', 'overrideRoutingHints')">true</xsl:when>
- <xsl:when test="key('env-param', 'routingHintsChanged')">false</xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="/root/cm:queryResponse[1]/*/cm:routingHints/@acquired = 'false'">true</xsl:when>
- <xsl:otherwise>false</xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <utml:input type="hidden" name="routingHintsChanged" value="false"/>
- <lyt:layout style="1" title="IDS_PROP_ADVANCED_ROUTING" border="yes" width="100%" lyt:kbA11y="true">
- <lyt:section>
- <dp:choice width="100%">
- <dp:section1>
- <table border="0" cellpadding="1" cellspacing="0" style="padding-left: 2px;" role="presentation">
- <tr role="checkbox" id="overrideRouting" summary="" tabindex="0" aria-labelledby="lbl_overrideRoutingHints">
- <xsl:attribute name="onclick">javascript:if(document.getElementById('overrideRoutingHints')!=null){if(document.getElementById('overrideRoutingHints').checked) document.getElementById('overrideRoutingHints').checked=false; else document.getElementById('overrideRoutingHints').checked=true; toggleHintsOverride('hHints');} return false;</xsl:attribute>
- <xsl:attribute name="onkeypress">javascript:<xsl:value-of select="$chkSpaceEnterKeyEvent"/>{ return this.onclick(); } return true;</xsl:attribute>
- <xsl:choose>
- <xsl:when test="$overrideRoutinghints = 'true'">
- <xsl:attribute name="aria-checked">true</xsl:attribute>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="aria-checked">false</xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- <td class="formText" nowrap="">
- <xsl:choose>
- <xsl:when test="$the-object/cm:objectClass='package'">
- <utml:input type="checkbox" name="overrideRoutingHints" id="overrideRoutingHints" value="true" utml:track="true" onclick="toggleHintsOverride('hHints');event.cancelBubble='true';if(event.stopPropogation)event.stopPropagation();" tabindex="-1" aria-labelledby="lbl_overrideRoutingHints">
- <utml:default-value>
- <xsl:value-of select="$overrideRoutinghints"/>
- </utml:default-value>
- </utml:input>
- </xsl:when>
- <xsl:otherwise>
- <utml:input type="hidden" name="overrideRoutingHints">
- <utml:default-value>
- <xsl:value-of select="$overrideRoutinghints"/>
- </utml:default-value>
- </utml:input>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </tr>
- </table>
- </dp:section1>
- <dp:section2>
- <xsl:if test="$the-object/cm:objectClass='package'">
- <span id="lbl_overrideRoutingHints"><xts:string id="IDS_PROP_ADVANCED_ROUTING_OVERRIDE"/></span>
- </xsl:if>
- </dp:section2>
- <dp:section3 width="100%">
- <cf:dynamicDiv name="defaultHintsDiv" runTimeVisibleCheck="$overrideRoutinghints='false'">
- <xsl:for-each select="/root/cm:queryResponse[2]/*[last()]/cm:routingHints/cm:string">
- <utml:input type="hidden" name="defaultRoutingHints" utml:update="false">
- <utml:value><xsl:value-of select="."/></utml:value>
- </utml:input>
- </xsl:for-each>
- <dp:list>
- <dp:section>
- <div>
- <dp:label>
- <xts:string id="IDS_PROP_ADVANCED_ROUTING_SETS_LABEL"/>
- </dp:label>
- </div>
- </dp:section>
- <xsl:variable name="routingValue">
- <xsl:choose>
- <xsl:when test="/root/cm:queryResponse[2]/*[last()]/cm:routingHints/cm:string != ''">
- <xsl:for-each select="/root/cm:queryResponse[2]/*[last()]/cm:routingHints/cm:string">
- <xsl:if test="position() != '1'"><xsl:value-of select="', '"/></xsl:if>
- <xsl:value-of select="."/>
- </xsl:for-each>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_PROP_ADVANCED_ROUTING_NO_VALUES"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <dp:section>
- <dp:text wrap="true">
- <div tabindex="0">
- <span id="defaultHintsSummary">
- <xsl:value-of select="$routingValue"/>
- </span>
- </div>
- </dp:text>
- </dp:section>
- </dp:list>
- </cf:dynamicDiv>
- <cf:dynamicDiv name="overrideHintsDiv" runTimeVisibleCheck="$overrideRoutinghints='true'">
- <xsl:variable name="routingHints">
- <xsl:choose>
- <xsl:when test="key('env-param','m_routingHints')!=''">
- <xsl:for-each select="key('env-param','m_routingHints')">
- <xsl:if test="position() != '1'"><xsl:value-of select="', '"/></xsl:if>
- <xsl:value-of select="."/>
- </xsl:for-each>
- </xsl:when>
- <xsl:when test="not(key('env-param', 'routingHintsChanged')) and /root/cm:queryResponse[1]/*/cm:routingHints/cm:string != ''">
- <xsl:for-each select="/root/cm:queryResponse[1]/*/cm:routingHints/cm:string">
- <xsl:if test="position() != '1'"><xsl:value-of select="', '"/></xsl:if>
- <xsl:value-of select="."/>
- </xsl:for-each>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_PROP_ADVANCED_ROUTING_NO_VALUES"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <dp:list>
- <dp:section>
- <dp:label>
- <xts:string id="IDS_PROP_ADVANCED_ROUTING_SETS_LABEL"/>
- </dp:label>
- </dp:section>
- <xsl:choose>
- <xsl:when test="key('env-param','m_routingHints')!=''">
- <xsl:for-each select="key('env-param','m_routingHints')">
- <utml:input type="hidden" name="m_routingHints" utml:update="false">
- <utml:value><xsl:value-of select="."/></utml:value>
- </utml:input>
- </xsl:for-each>
- <dp:section>
- <dp:text wrap="true">
- <span id="overrideHintsSummary">
- <xsl:value-of select="$routingHints"/>
- </span>
- </dp:text>
- </dp:section>
- <xsl:if test="$has_write_permission">
- <dp:section>
- <dp:link>
- <utml:a utml:op="stack-up" utml:formName="pform" utml:kbA11y="true">
- <utml:target><xsl:value-of select="$app"/>/specify_advanced_routing.xts</utml:target>
- <utml:validate>validate</utml:validate>
- <xts:string id="IDS_PROP_ADVANCED_ROUTING_EDIT"/>
- </utml:a>
- </dp:link>
- </dp:section>
- </xsl:if>
- </xsl:when>
- <!-- if this is the first time we visit the general dialog, and there are hints stored in CM, then show them. -->
- <xsl:when test="not(key('env-param', 'routingHintsChanged')) and /root/cm:queryResponse[1]/*/cm:routingHints/cm:string != ''">
- <xsl:for-each select="/root/cm:queryResponse[1]/*/cm:routingHints/cm:string">
- <utml:input type="hidden" name="m_routingHints" utml:update="false">
- <utml:value><xsl:value-of select="."/></utml:value>
- </utml:input>
- </xsl:for-each>
- <dp:section wrap="true">
- <dp:text wrap="true">
- <span id="overrideHintsSummary">
- <xsl:value-of select="$routingHints"/>
- </span>
- </dp:text>
- </dp:section>
- <xsl:if test="$has_write_permission">
- <dp:section>
- <dp:link>
- <utml:a utml:op="stack-up" utml:formName="pform" utml:kbA11y="true">
- <utml:target><xsl:value-of select="$app"/>/specify_advanced_routing.xts</utml:target>
- <utml:validate>validate</utml:validate>
- <xts:string id="IDS_PROP_ADVANCED_ROUTING_EDIT"/>
- </utml:a>
- </dp:link>
- </dp:section>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <dp:section>
- <dp:text>
- <span id="overrideHintsSummary">
- <xsl:value-of select="$routingHints"/>
- </span>
- </dp:text>
- </dp:section>
- <xsl:if test="$has_write_permission">
- <dp:section>
- <dp:link>
- <utml:a utml:op="stack-up" utml:formName="pform" utml:kbA11y="true">
- <utml:target><xsl:value-of select="$app"/>/specify_advanced_routing.xts</utml:target>
- <utml:validate>validate</utml:validate>
- <xts:string id="IDS_PROP_ADVANCED_ROUTING_SET"/>
- </utml:a>
- </dp:link>
- </dp:section>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- </dp:list>
- </cf:dynamicDiv>
- </dp:section3>
- </dp:choice>
- </lyt:section>
- </lyt:layout>
- <xsl:if test="$has_write_permission">
- <script language="javascript">
- <!-- The following script is executed on page load or when the page is refreshed to render the correct view of the dynamic region -->
- <!-- The states that can be set are:
- 0 - hasHints - override the default routing sets checkbox is not checked.
- 1 - hasHints - override the default routing sets checkbox is checked.
- information.
- -->
- var hHints = getSessionValue('hHints');
- <!-- This portion of the script is executed on refresh -->
- if ( hHints != null && hHints != "" )
- {
- if ( hHints == '0' )
- {
- if (document.pform['overrideRoutingHints']) {
- document.pform['overrideRoutingHints'].checked = false;
- }
- hideDynamicDiv('overrideHintsDiv');
- showDynamicDiv('defaultHintsDiv');
- }
- else
- {
- if (document.pform['overrideRoutingHints']) {
- document.pform['overrideRoutingHints'].checked = "checked";
- }
- showDynamicDiv('overrideHintsDiv');
- hideDynamicDiv('defaultHintsDiv');
- }
- }
- else
- {
- <!-- This portion of the script is executed on page load -->
- <xsl:choose>
- <xsl:when test="$overrideRoutinghints = 'true'">
- if (document.pform['overrideRoutingHints']) {
- document.pform['overrideRoutingHints'].checked = "checked";
- }
- setStateValue('hHints','1');
- showDynamicDiv('overrideHintsDiv');
- hideDynamicDiv('defaultHintsDiv');
- </xsl:when>
- <xsl:otherwise>
- if (document.pform['overrideRoutingHints']) {
- document.pform['overrideRoutingHints'].checked = false;
- }
- setStateValue('hHints','0');
- hideDynamicDiv('overrideHintsDiv');
- showDynamicDiv('defaultHintsDiv');
- </xsl:otherwise>
- </xsl:choose>
- }
- </script>
- </xsl:if>
- </xsl:if>
- <!-- Base Report -->
- <xsl:if test="$the-object/cm:base">
- <xsl:call-template name="renderBase"/>
- </xsl:if>
- <xsl:if test="$the-object/cm:metadataModelPackage and (contains(' report interactiveReport powerPlay8Report query analysis metricsDataSourceETLTask metricsExportTask metricsFileImportTask metricsMaintenanceTask ', concat(' ',$the-object/cm:objectClass,' ')))">
- <xsl:call-template name="renderPackage"/>
- </xsl:if>
- <xsl:if test="/root/agentReport/cm:queryResponse">
- <xsl:call-template name="renderPackage">
- <xsl:with-param name="nodeObject" select="/root/agentReport/cm:queryResponse/*"/>
- <xsl:with-param name="entryNameIndicator" select="'agsr'"/>
- </xsl:call-template>
- </xsl:if>
- <dp:footer>
- <xsl:choose>
- <xsl:when test="$showOKCancel">
- <!-- The following is needed to get prevent an issue with a zero width OK buttom on IE8 only -->
- <div/>
- <df:button df:id="IDS_OK" utml:validate="true" df:style="submit" df:nav_op="stack-down" df:kbA11y="true"/>
- <xsl:choose>
- <xsl:when test="key('env-param','ps_nav_stack') and not(key('env-param','ps_nav_stack') = '') ">
- <!-- The following is needed to get around some issues with formlogic_lite (needs more investigation) -->
- <df:button df:id="IDS_CANCEL" df:idPrefix="dialogButton" df:style="stack-down" df:kbA11y="true"/>
- </xsl:when>
- <xsl:otherwise>
- <!-- The following is needed to get around some issues with formlogic_lite (needs more investigation) -->
- <df:button df:id="IDS_CANCEL" df:idPrefix="dialogButton" df:href="javascript:cwb();" df:style="href" df:kbA11y="true"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <df:button df:id="IDS_CLOSE" df:style="back-url" df:kbA11y="true"/>
- </xsl:otherwise>
- </xsl:choose>
- </dp:footer>
- </utml:form>
- </dp:page>
- </xsl:template>
- <xsl:template name="renderBase">
- <xsl:variable name="start-at-reportbase-path">
- <xsl:choose>
- <xsl:when test="string(key('env-param','m_p_base'))!=''">
- <xsl:choose>
- <xsl:when test="starts-with(/root/selected/cm:queryResponse/*/cm:searchPath, key('session-param', 'e_hp'))">
- <xsl:value-of select="concat(key('session-param', 'e_hp'),'/folder')"/>
- </xsl:when>
- <xsl:when test="starts-with(/root/selected/cm:queryResponse/*/cm:searchPath,'/content')">
- <xsl:value-of select="$defaultContentRoot"/>
- </xsl:when>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="starts-with($base/cm:searchPath, key('session-param', 'e_hp'))">
- <xsl:value-of select="concat(key('session-param', 'e_hp'),'/folder')"/>
- </xsl:when>
- <xsl:when test="starts-with($base/cm:searchPath,'/content')">
- <xsl:value-of select="$defaultContentRoot"/>
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="canReadOnSource" select="contains($base/cm:permissions, 'read')"/>
- <xsl:variable name="canWriteOnSource" select="contains($base/cm:permissions, 'write')"/>
- <xsl:variable name="canSPOnSource" select="contains($base/cm:permissions, 'setPolicy')"/>
- <xsl:variable name="baselabel">
- <xsl:choose>
- <xsl:when test="/root/selected/cm:queryResponse">
- <xsl:choose>
- <xsl:when test="/root/selected/cm:queryResponse/*/cm:objectClass != 'agentDefinition' and /root/selected/cm:queryResponse/*/cm:objectClass != 'dataMovementTask'"><xts:string id="IDS_PROP_SOURCE_REPORT"/></xsl:when>
- <xsl:when test="/root/selected/cm:queryResponse/*/cm:objectClass = 'dataMovementTask'"><xts:string id="IDS_PROP_SOURCE_DATAMOVEMENT"/></xsl:when>
- <xsl:otherwise><xts:string id="IDS_PROP_SOURCE_AGENT"/></xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="string($the-object/cm:objectClass) = 'reportView' or string($the-object/cm:objectClass) = 'powerPlay8ReportView'"><xts:string id="IDS_PROP_SOURCE_REPORT"/></xsl:when>
- <xsl:when test="string($the-object/cm:objectClass) = 'dataMovementTaskAlias'"><xts:string id="IDS_PROP_SOURCE_DATAMOVEMENT"/></xsl:when>
- <xsl:when test="string($the-object/cm:objectClass) = 'portalSkin'"><xts:string id="IDS_PROP_BASE_SKIN"/></xsl:when>
- <xsl:otherwise><xts:string id="IDS_PROP_SOURCE_AGENT"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="baselinktext">
- <xsl:choose>
- <xsl:when test="/root/selected/cm:queryResponse">
- <xsl:choose>
- <xsl:when test="/root/selected/cm:queryResponse/*/cm:objectClass != 'agentDefinition' and /root/selected/cm:queryResponse/*/cm:objectClass != 'dataMovementTask'"><xts:string id="IDS_PROP_REPORT_PROPERTIES"/></xsl:when>
- <xsl:when test="/root/selected/cm:queryResponse/*/cm:objectClass = 'dataMovementTask'"><xts:string id="IDS_PROP_DATAMOVEMENT_PROPERTIES"/></xsl:when>
- <xsl:otherwise><xts:string id="IDS_PROP_AGENT_PROPERTIES"/></xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="$base/cm:objectClass != 'agentDefinition' and $base/cm:objectClass != 'dataMovementTask'"><xts:string id="IDS_PROP_REPORT_PROPERTIES"/></xsl:when>
- <xsl:when test="$base/cm:objectClass = 'dataMovementTask'"><xts:string id="IDS_PROP_DATAMOVEMENT_PROPERTIES"/></xsl:when>
- <xsl:otherwise><xts:string id="IDS_PROP_AGENT_PROPERTIES"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="linktotext">
- <xsl:choose>
- <xsl:when test="$the-object/cm:objectClass = 'reportView' or $the-object/cm:objectClass = 'powerPlay8ReportView'"><xts:string id="IDS_PROP_LINK_TO_REPORT"/></xsl:when>
- <xsl:when test="$the-object/cm:objectClass = 'dataMovementTaskAlias'"><xts:string id="IDS_PROP_LINK_TO_DATAMOVEMENT"/></xsl:when>
- <xsl:when test="$the-object/cm:objectClass = 'agentDefinitionView'"><xts:string id="IDS_PROP_LINK_TO_AGENT"/></xsl:when>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="baseLabelPath">
- <xsl:choose>
- <xsl:when test="( string($base/cm:objectClass)='' or string($base/cm:objectClass) = 'nil') and string(/root/env/param[@name='m_p_base'])=''">
- <xts:string id="IDS_PROP_BASE_UNAVAILABLE"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="string(/root/env/param[@name='m_p_base'])=''">
- <cf:do-the-path-link>
- <cf:param name="familytree">$base/cm:ancestors</cf:param>
- <cf:param name="familymember">$base/cm:defaultName</cf:param>
- <cf:param name="home"><xsl:value-of select="$start-at-reportbase-path"/></cf:param>
- </cf:do-the-path-link>
- </xsl:when>
- <xsl:otherwise>
- <cf:do-the-path-link>
- <cf:param name="familytree">/root/selected/cm:queryResponse/*/cm:ancestors</cf:param>
- <cf:param name="familymember">/root/selected/cm:queryResponse/*/cm:defaultName</cf:param>
- <cf:param name="home"><xsl:value-of select="$start-at-reportbase-path"/></cf:param>
- </cf:do-the-path-link>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <lyt:layout style="1" border="yes" lyt:kbA11y="true">
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:label valign="top"><xsl:value-of select="$baselabel"/></dp:label>
- <dp:text valign="top"><xsl:value-of select="$baseLabelPath"/></dp:text>
- <dp:link valign="top">
- <xsl:choose>
- <xsl:when test="string(/root/env/param[@name='m_p_base'])=''">
- <xsl:if test="$canReadOnSource or $canWriteOnSource or $canSPOnSource">
- <a href="#">
- <xsl:attribute name="onclick">javascript:if(!getPropertiesChanged()){redirect();} else {decision.show();}</xsl:attribute>
- <xsl:attribute name="onkeypress">javascript:<xsl:value-of select="$chkSpaceEnterKeyEvent"/>{ this.onclick(); return false; } return true;</xsl:attribute>
- <xsl:value-of select="$baselinktext"/>
- </a>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="permis" select="/root/selected/cm:queryResponse/*/cm:permissions"/>
- <xsl:if test="contains(string($permis),'read') or contains(string($permis),'write') or contains(string($permis),'setPolicy')">
- <a href="#">
- <xsl:attribute name="onclick">javascript:if(!getPropertiesChanged()){redirect();} else {decision.show();}</xsl:attribute>
- <xsl:attribute name="onkeypress">javascript:<xsl:value-of select="$chkSpaceEnterKeyEvent"/>{this.onclick(); return false;}return true;</xsl:attribute>
- <xsl:value-of select="$baselinktext"/>
- </a>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- </dp:link>
- <dp:text></dp:text>
- <xsl:if test="$has_write_permission and $noUserProfile!=true()">
- <dp:text><utml:a utml:op="maintain" utml:formName="pform">
- <xsl:attribute name="onclick">setSelectParams('so.select','<xsl:value-of select="$the-object/cm:objectClass"/>Base',<xsl:text/>
- <xsl:choose>
- <xsl:when test="string($base/cm:searchPath)!='' or string(key('env-param','m_p_base'))!=''">
- <xsl:text/>'so.defaultObject','<xsl:text/>
- <xsl:choose>
- <xsl:when test="string(key('env-param','m_p_base'))!=''"><xsl:value-of select="xtsext:javascriptencode(string(key('env-param','m_p_base')))"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="xtsext:javascriptencode(string($base/cm:searchPath))"/></xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text/>'so.defaultLocation','<xsl:text/>
- <xsl:if test="string(key('env-param','m_path'))!=''"><xsl:text/><xsl:value-of select="xtsext:javascriptencode(string(key('env-param','m_path')))"/><xsl:text/></xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:text/>');<xsl:text/>
- </xsl:attribute>
- <utml:target><xsl:value-of select="$app"/>/select/select.xts</utml:target>
- <utml:validate>validate</utml:validate>
- <xsl:text/><xsl:value-of select="$linktotext"/><xsl:text/>
- </utml:a></dp:text>
- </xsl:if>
- </dp:section>
- </dp:list>
- </lyt:section>
- </lyt:layout>
- </xsl:template>
- <!-- kludge!: if you introduce a new 'entryNameIndicator', remember to delete it to the 'updateEnv' block -->
- <!-- that is, add this: <xts:delete select="/root/env/param[@name='{$entryNameIndicator}']"/>, otherwise you'll run into problem /w duplicates -->
- <!-- note: utml:exclusion-list would work nicely here but it's not available in formlogic-lite! -->
- <xsl:template name="renderPackage">
- <xsl:param name="nodeObject" select="$the-object"/>
- <xsl:param name="entryNameIndicator" select="'p'"/>
- <xsl:variable name="modelPackage" select="$nodeObject/cm:metadataModelPackage/*"/>
- <xsl:variable name="mdmp" select="key('env-param',concat('m_',$entryNameIndicator,'__metadataModelPackage'))"/>
- <xsl:variable name="isMMS" select="(contains(string($nodeObject/cm:objectClass),'metrics') and ($nodeObject/cm:metadataModelPackage/*/cm:userInterfaces/cm:uiComponentEnum='metricStudio' or $nodeObject/cm:metadataModelPackage/*/cm:userInterfaces/cm:uiComponentEnum='')) or $nodeObject/cm:metadataModelPackage/*/cm:userInterfaces/cm:uiComponentEnum='metricStudio'"/>
- <xsl:variable name="selectedPackageValue">
- <xsl:choose>
- <xsl:when test="(key('env-param','so.select')='packageBase' or key('env-param','so.select')='metricspackageBase') and key('env-param','so.searchPath')!=''"><xsl:value-of select="key('env-param','so.searchPath')"/></xsl:when>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="packageName">
- <xsl:choose>
- <xsl:when test="string($modelPackage/cm:defaultName)!='' and not(/root/selected)">
- <xsl:value-of select="$modelPackage/cm:defaultName"/>
- </xsl:when>
- <xsl:when test="not(/root/selected)">
- <xts:string id="IDS_PROP_BASE_UNAVAILABLE"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="/root/selected">
- <xsl:value-of select="/root/selected/cm:queryResponse/*/cm:defaultName"/>
- </xsl:when>
- <xsl:when test="/root/env/param[@name=concat('m_',$entryNameIndicator,'_metadataModelPackage')]">
- <xsl:value-of select="/root/env/param[@name=concat('m_',$entryNameIndicator,'_metadataModelPackage')]"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text/><xts:string id="IDS_PROP_BASE_UNAVAILABLE"/><xsl:text/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="packageNameDisplay">
- <xsl:value-of select="xtsext:enforceBTD($packageName, $baseTextDirection, $productLocale, boolean($isBidiEnabled='true'))"/>
- </xsl:variable>
- <lyt:layout style="1" border="yes">
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:label valign="top"><xts:string id="IDS_PROP_PACKAGE_LABEL"/></dp:label>
- </dp:section>
- <dp:section>
- <xsl:choose>
- <xsl:when test="string($modelPackage/cm:defaultName)!='' and not(/root/selected)">
- <dp:text wrap="wrap" valign="top">
- <xsl:value-of select="$packageNameDisplay"/>
- </dp:text>
- </xsl:when>
- <xsl:when test="not(/root/selected)">
- <dp:text wrap="wrap" valign="top"><xsl:text/><xsl:value-of select="$packageNameDisplay"/><xsl:text/></dp:text>
- </xsl:when>
- <xsl:otherwise>
- <dp:text wrap="wrap" valign="top">
- <xsl:choose>
- <xsl:when test="/root/selected">
- <xsl:text/><xsl:value-of select="$packageNameDisplay"/>
- <utml:input type="hidden">
- <xsl:attribute name="name">m_<xsl:value-of select="$entryNameIndicator"/>_metadataModelPackage</xsl:attribute>
- <utml:value><xsl:value-of select="/root/selected/cm:queryResponse/*/cm:searchPath"/></utml:value>
- </utml:input>
- <!-- When updating metadataModelPackage for the report object, metadataModel needs to be cleared -->
- <xsl:if test="contains( ' report interactiveReport query analysis agentDefinition',concat(' ',$the-object/cm:objectClass,' '))">
- <utml:input type="hidden">
- <xsl:attribute name="name">m_<xsl:value-of select="$entryNameIndicator"/>_metadataModel</xsl:attribute>
- <utml:value></utml:value>
- </utml:input>
- </xsl:if>
- </xsl:when>
- <xsl:when test="/root/env/param[@name=concat('m_',$entryNameIndicator,'_metadataModelPackage')]">
- <xsl:text/><xsl:value-of select="$packageNameDisplay"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text/><xsl:value-of select="$packageNameDisplay"/><xsl:text/>
- </xsl:otherwise>
- </xsl:choose>
- </dp:text>
- </xsl:otherwise>
- </xsl:choose>
- <!-- Determine whether to display the package link -->
- <xsl:if test="$has_write_permission and not(/root/agentReport/cm:queryResponse and not($has_write_permission_to_agentReport))">
- <dp:text wrap="wrap" valign="top">
- <utml:a utml:op="maintain" utml:formName="pform">
- <xsl:attribute name="onclick">setSelectParams('so.select','<xsl:text/>
- <xsl:choose>
- <xsl:when test="not($isMMS)"><xsl:text/>packageBase<xsl:text/></xsl:when>
- <xsl:otherwise><xsl:text/>metricspackageBase<xsl:text/></xsl:otherwise>
- </xsl:choose>
- <xsl:text/>','so.defaultObject','<xsl:text/>
- <xsl:choose>
- <xsl:when test="not(/root/selected)"><xsl:value-of select="xtsext:javascriptencode(string($modelPackage/cm:searchPath))"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="xtsext:javascriptencode(string(/root/selected/cm:queryResponse/*/cm:searchPath))"/></xsl:otherwise>
- </xsl:choose>
- <xsl:text/>');<xsl:text/></xsl:attribute>
- <utml:target><xsl:value-of select="$app"/>/select/select.xts</utml:target>
- <utml:validate>validate</utml:validate>
- <xsl:text/><xts:string id="IDS_PROP_LINK_TO_PACKAGE"/><xsl:text/>
- </utml:a>
- </dp:text>
- </xsl:if>
- </dp:section>
- </dp:list>
- </lyt:section>
- </lyt:layout>
- </xsl:template>
- <xsl:template name="renderLanguages">
- <lyt:layout style="2" width="100%" border="yes" intro="IDS_PROP_SET_LANG_HINT">
- <lyt:section>
- <span style="position: absolute;margin-left: -9999px; margin-top: -9999px;" id="intro"><xts:string id="IDS_PROP_SET_LANG_HINT"/></span>
- <dp:group>
- <dp:groupItem>
- <dp:list>
- <dp:section>
- <dp:input dp:kbA11y="true">
- <dp:section1>
- <label for="selLang"><xts:string id="IDS_PROP_LANGUAGE"/></label>
- </dp:section1>
- <dp:section2>
- <!-- Build up the values that the user has currently defined -->
- <xsl:variable name="vals">
- <xsl:for-each select="/root/multiLangs/name">
- <xsl:if test="not(preceding-sibling::name = .)">
- <xsl:choose>
- <xsl:when test="position()!=last"><xsl:value-of select="concat(' ',string(.))"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="concat(' ',string(.),' ')"/></xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- </xsl:for-each>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="$has_write_permission and $noUserProfile!=true()">
- <utml:select name="m_transloc" onchange="javascript:checkLang(this)" id="selLang">
- <!-- Loop through the content locales to display the entries (in alpha order) that the user currently has defined -->
- <xsl:for-each select="/root/multiLangs/name">
- <xsl:if test="not(preceding-sibling::name= .)">
- <xsl:variable name="locnam"><xsl:value-of select="."/></xsl:variable>
- <xsl:variable name="displayName">
- <xsl:choose>
- <xsl:when test="/root/config/param[@name='locale']/locale[@type='contentLocale' and string(id) = $locnam]"><xsl:value-of select="/root/config/param[@name='locale']/locale[@type='contentLocale' and string(id) = $locnam]/displayName"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="$locnam"/>(<xts:string id="IDS_PROP_BASE_UNAVAILABLE"/>)</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <utml:option value="{$locnam}">
- <xsl:attribute name="id"><xsl:value-of select="$displayName"/></xsl:attribute>
- <xsl:choose>
- <xsl:when test="string(key('env-param','pty_add'))!='' and $locnam = $activeLang">
- <xsl:attribute name="selected"><xsl:value-of select="'true'"/></xsl:attribute>
- </xsl:when>
- <xsl:when test="string(key('env-param','pty_add'))='' and $locnam = $lang">
- <xsl:attribute name="selected"><xsl:value-of select="'true'"/></xsl:attribute>
- </xsl:when>
- </xsl:choose>
- <xsl:value-of select="$displayName"/>
- </utml:option>
- </xsl:if>
- </xsl:for-each>
- <!-- This is the separator bar between what languages are defined and what languages are available to define -->
- <utml:option value="not" role="separator"><xsl:value-of select="'-----------------------'"/></utml:option>
- <!-- Loop through the content locales to display the entries (in alpha order) that the user has available to define -->
- <xsl:for-each select="/root/config/param[@name='locale']/locale[@type='contentLocale']">
- <xsl:if test="not(contains($vals,concat(' ',id,' ')))">
- <utml:option value="{id}" >
- <xsl:attribute name="id"><xsl:value-of select="./displayName"/></xsl:attribute>
- <xsl:value-of select="./displayName"/>
- </utml:option>
- </xsl:if>
- </xsl:for-each>
- </utml:select>
- <!-- Hidden fields to process the add, remove capabilities of this page -->
- <utml:input value="" type="hidden" name="pty_activeLang"/>
- <utml:input value="" type="hidden" name="pty_deactivLang"/>
- <utml:input value="" type="hidden" name="pty_del"/>
- <utml:input value="" type="hidden" name="pty_add"/>
- <xsl:if test="$the-object/cm:defaultName[@modifiable = 'false']
- and $the-object/cm:objectClass='namespace'">
- <utml:input type="hidden" name="pty_keep"><utml:value><xsl:value-of select="$the-object/cm:name/*/@xml:lang"/></utml:value></utml:input>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <utml:select name="m_transloc" onchange="checkLang(this)" role="listbox" aria-readonly="true">
- <utml:read-only>true</utml:read-only>
- <xsl:variable name="actval">
- <xsl:value-of select="/root/config/param[@name='locale']/locale[@type='contentLocale' and string(id)=$lang]/displayName"/>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="$actval=''">
- <xsl:variable name="actval2"><xsl:value-of select="substring-before(substring-after($vals,' '),' ')"/></xsl:variable>
- <xsl:value-of select="/root/config/param[@name='locale']/locale[@type='contentLocale' and string(id)=$actval2]/displayName"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$actval"/>
- </xsl:otherwise>
- </xsl:choose>
- </utml:select>
- </xsl:otherwise>
- </xsl:choose>
- </dp:section2>
- </dp:input>
- </dp:section>
- </dp:list>
- </dp:groupItem>
- <xsl:choose>
- <xsl:when test="$has_write_permission and $noUserProfile!=true()">
- <xsl:choose>
- <!-- Output the remove languages link when there is more than one entry and at least one of them has a modifiable value -->
- <xsl:when test="$activeLang=''">
- <xsl:if test="$compareField != 'noDefaultField' and count(/root/multiLangs/name[not(preceding-sibling::name = .)]) > 1">
- <dp:groupItem><dp:text/><dp:text/></dp:groupItem>
- <dp:groupItem>
- <dp:text>
- <a href="#" role="link">
- <xsl:attribute name="onclick">javascript:removeLang()</xsl:attribute>
- <xsl:attribute name="onkeypress">javascript:<xsl:value-of select="$chkSpaceEnterKeyEvent"/>{this.onclick();return false;}return true;</xsl:attribute>
- <xsl:text/><xts:string id="IDS_PROP_REMOVE_MULTILINGUAL"/><xsl:text/>
- </a>
- </dp:text>
- </dp:groupItem>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="cnt" select="count(/root/env/param[starts-with(@name,$compareField)])"/>
- <xsl:if test="$cnt > 1 or ($cnt = 1 and string(key('env-param','pty_add'))!='')">
- <dp:groupItem><dp:text/><dp:text/></dp:groupItem>
- <dp:groupItem>
- <dp:text>
- <a href="#" role="link">
- <xsl:attribute name="onclick">javascript:removeLang()</xsl:attribute>
- <xsl:attribute name="onkeypress">javascript:<xsl:value-of select="$chkSpaceEnterKeyEvent"/>{this.onclick(); return false;}return true;</xsl:attribute>
- <xsl:text/><xts:string id="IDS_PROP_REMOVE_MULTILINGUAL"/><xsl:text/>
- </a>
- </dp:text>
- </dp:groupItem>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:if test="count(/root/multiLangs/name[not(preceding-sibling::name = .)]) > 1">
- <dp:groupItem><dp:text/><dp:text/></dp:groupItem>
- <dp:groupItem>
- <dp:text>
- <dp:link>
- <utml:a utml:op="stack-up" utml:formName="pform" utml:kbA11y="true" role="link">
- <utml:href><xsl:text/>
- <xsl:text/>document.pform.m_return.value='<xsl:value-of select="concat($app,'/',$mname)"/>';</utml:href>
- <utml:target><xsl:value-of select="$app"/>/properties_multilingual.xts</utml:target>
- <utml:validate>validate</utml:validate>
- <xts:string id="IDS_PROP_TRANSLATION_RO"/><xsl:text/>
- </utml:a>
- </dp:link>
- </dp:text>
- </dp:groupItem>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- </dp:group>
- </lyt:section>
- <lyt:section/>
- <!-- Name -->
- <lyt:section>
- <dp:list dp:kbA11y="true">
- <xsl:if test="$the-object/cm:defaultName">
- <dp:section>
- <dp:input dp:kbA11y="true">
- <dp:section1>
- <label for="ptyName"><xts:string id="IDS_PROP_NAME"/></label>
- </dp:section1>
- <dp:section2>
- <utml:input type="text" class="pInput" size="30" name="pty_name" onchange="anyNames(this.value)" maxlength="256" id="ptyName" role="textbox" >
- <utml:read-only>
- <xsl:choose>
- <xsl:when test="$the-object/cm:defaultName[@modifiable = 'false'] or $noUserProfile">true</xsl:when>
- <xsl:otherwise>false</xsl:otherwise>
- </xsl:choose>
- </utml:read-only>
- <utml:value>
- <xsl:choose>
- <xsl:when test="$the-object/cm:defaultName[@modifiable = 'false'] and $the-object/cm:objectClass='namespace'">
- <xsl:value-of select="$the-object/cm:defaultName"/>
- </xsl:when>
- <xsl:when test="not(/root/env/param[starts-with(@name,'m_t_default_name_')])">
- <xsl:value-of select="$the-object/cm:name/*[@xml:lang=$lang]"/>
- </xsl:when>
- <xsl:when test="/root/env/param[@name= concat('m_t_default_name_',$lang)]">
- <xsl:value-of select="/root/env/param[@name = concat('m_t_default_name_',$lang)]"/>
- </xsl:when>
- </xsl:choose>
- </utml:value>
- </utml:input>
- </dp:section2>
- </dp:input>
- </dp:section>
- </xsl:if>
- <xsl:if test="$the-object/cm:defaultScreenTip and not($rootFolder)">
- <dp:section>
- <dp:input dp:kbA11y="true">
- <dp:section1>
- <label for="ptyScrt"><xts:string id="IDS_PROP_SCREENTIP"/></label>
- </dp:section1>
- <dp:section2>
- <utml:input type="text" maxlength="100" size="30" class="pInput" name="pty_scrt" onchange="chgST(this.value)" id="ptyScrt" role="textbox" >
- <utml:read-only>
- <xsl:choose>
- <xsl:when test="$the-object/cm:defaultScreenTip[@modifiable = 'false'] or $noUserProfile">true</xsl:when>
- <xsl:otherwise>false</xsl:otherwise>
- </xsl:choose>
- </utml:read-only>
- <utml:value>
- <xsl:choose>
- <xsl:when test="not(/root/env/param[starts-with(@name,'m_t_default_screenTip_')])">
- <xsl:value-of select="$the-object/cm:screenTip/*[@xml:lang=$lang]"/>
- </xsl:when>
- <xsl:when test="/root/env/param[@name= concat('m_t_default_screenTip_',$lang)]">
- <xsl:value-of select="/root/env/param[@name= concat('m_t_default_screenTip_',$lang)]"/>
- </xsl:when>
- </xsl:choose>
- </utml:value>
- </utml:input>
- </dp:section2>
- </dp:input>
- </dp:section>
- </xsl:if>
- </dp:list>
- </lyt:section>
- <!-- Description -->
- <lyt:section>
- <xsl:if test="$the-object/cm:defaultDescription and not($the-object/cm:shortcut != '')">
- <dp:input>
- <dp:section1>
- <label for="ptyDesc"><xts:string id="IDS_PROP_DESCRIPTION"/></label>
- </dp:section1>
- <dp:section2>
- <utml:textarea class="pTextarea" rows="4" cols="30" name="pty_desc" onchange="chgD(this.value)" id="ptyDesc" role="textbox" aria-multiline="true">
- <utml:read-only>
- <xsl:choose>
- <xsl:when test="$the-object/cm:defaultDescription[@modifiable = 'false'] or $noUserProfile">true</xsl:when>
- <xsl:otherwise>false</xsl:otherwise>
- </xsl:choose>
- </utml:read-only>
- <utml:value>
- <xsl:choose>
- <xsl:when test="not(/root/env/param[starts-with(@name,'m_t_default_description_')])">
- <xsl:value-of select="$the-object/cm:description/*[@xml:lang=$lang]"/>
- </xsl:when>
- <xsl:when test="/root/env/param[@name= concat('m_t_default_description_',$lang)]">
- <xsl:value-of select="/root/env/param[@name= concat('m_t_default_description_',$lang)]"/>
- </xsl:when>
- </xsl:choose>
- </utml:value>
- </utml:textarea>
- </dp:section2>
- </dp:input>
- </xsl:if>
- </lyt:section>
- </lyt:layout>
- </xsl:template>
- <!-- template for the floating disabled entry -->
- <xsl:template name="render-disabled">
- <!-- Disabled option.-->
- <xsl:variable name="disabledSetting">
- <xsl:choose>
- <xsl:when test="key('env-param','m_p_disabled')"><xsl:value-of select="key('env-param','m_p_disabled')"/></xsl:when>
- <xsl:when test="$the-object/cm:disabled/@acquired='false'"><xsl:value-of select="$the-object/cm:disabled"/></xsl:when>
- </xsl:choose>
- </xsl:variable>
- <table role="checkbox" border="0" cellpadding="1" cellspacing="0" tabindex="0" id="isDisabled" summary="" aria-labelledby="labelForIsDisabled" style="padding-left: 2px;">
- <xsl:if test="$has_write_permission and $noUserProfile!=true()">
- <xsl:attribute name="onclick">javascript:if(document.getElementById('is_disabled')!=null)<xsl:text>{</xsl:text>setPropertiesChanged();if(document.getElementById('is_disabled').checked) <xsl:text> { </xsl:text>this.setAttribute('aria-checked','false'); document.getElementById('is_disabled').checked=false; <xsl:text>}</xsl:text>else <xsl:text>{</xsl:text>this.setAttribute('aria-checked','true');document.pform.m_p_disabled.value='true'; document.getElementById('is_disabled').checked=true; <xsl:text>}</xsl:text>return false;<xsl:text>} return true;</xsl:text></xsl:attribute>
- <xsl:attribute name="onkeypress">javascript:<xsl:value-of select="$chkSpaceEnterKeyEvent"/>{ return this.onclick(); } return true;</xsl:attribute>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="not(string($disabledSetting) = 'true')">
- <xsl:attribute name="aria-checked">false</xsl:attribute>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="aria-checked">true</xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- <tr>
- <td class="formText" nowrap="">
- <utml:input type="checkbox" id="is_disabled" name="is_disabled" value="true" tabindex="-1">
- <xsl:attribute name="onclick">setPropertiesChanged();if(this.checked) <xsl:text> { </xsl:text>document.getElementById('isDisabled').setAttribute('aria-checked','true');document.pform.m_p_disabled.value='true'; <xsl:text>}</xsl:text>else <xsl:text>{</xsl:text>document.getElementById('isDisabled').setAttribute('aria-checked','false');document.pform.m_p_disabled.value='false'; <xsl:text>}</xsl:text>event.cancelBubble='true';if(event.stopPropogation)event.stopPropagation();</xsl:attribute>
- <utml:read-only>
- <xsl:choose>
- <!-- also set to readonly when parent's disabled property is true and the disabled property is acquired -->
- <xsl:when test="$the-object/cm:disabled/@modifiable = 'false' or $noUserProfile or ($the-object/cm:disabled/@acquired='true' and $the-object/cm:disabled='true')">true</xsl:when>
- <xsl:otherwise>false</xsl:otherwise>
- </xsl:choose>
- </utml:read-only>
- <utml:default-value>
- <xsl:choose>
- <xsl:when test="key('env-param','m_p_disabled')">
- <xsl:value-of select="key('env-param','m_p_disabled')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$the-object/cm:disabled"/>
- </xsl:otherwise>
- </xsl:choose>
- </utml:default-value>
- </utml:input>
- </td>
- <td id="labelForIsDisabled" class="formText" nowrap=""><label for="is_disabled"><xts:string id="IDS_PROP_DISABLE"/></label></td>
- </tr>
- </table>
- <xsl:if test="$has_write_permission and $noUserProfile!=true()">
- <utml:input type="hidden" name="m_p_disabled">
- <xsl:attribute name="value"><xsl:value-of select="$disabledSetting"/></xsl:attribute>
- </utml:input>
- </xsl:if>
- </xsl:template>
- <xsl:template name="render-hideobject">
- <xsl:variable name="hiddenSetting">
- <xsl:choose>
- <xsl:when test="key('env-param','m_p_hidden')"><xsl:value-of select="key('env-param','m_p_hidden')"/></xsl:when>
- <xsl:when test="$objectHiddenProperty/@acquired='false'"><xsl:value-of select="$objectHiddenProperty"/></xsl:when>
- </xsl:choose>
- </xsl:variable>
- <table role="checkbox" border="0" cellpadding="1" cellspacing="0" tabindex="0" id="isHidden" summary="" aria-labelledby="labelForIsHidden" style="padding-left: 2px;">
- <xsl:if test="$has_write_permission and $noUserProfile!=true()">
- <xsl:attribute name="onclick">javascript:if(document.getElementById('is_hidden')!=null)<xsl:text>{</xsl:text>setPropertiesChanged();if(document.getElementById('is_hidden').checked) <xsl:text> { </xsl:text>this.setAttribute('aria-checked','false');document.pform.m_p_hidden.value='false';document.getElementById('is_hidden').checked=false; <xsl:text>}</xsl:text>else <xsl:text>{</xsl:text>this.setAttribute('aria-checked','true');document.pform.m_p_hidden.value='true';document.getElementById('is_hidden').checked=true; <xsl:text>}</xsl:text>return false;<xsl:text>} return true;</xsl:text></xsl:attribute>
- <xsl:attribute name="onkeypress">javascript:<xsl:value-of select="$chkSpaceEnterKeyEvent"/>{ return this.onclick(); } return true;</xsl:attribute>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="not(string($hiddenSetting) = 'false')">
- <xsl:attribute name="aria-checked">true</xsl:attribute>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="aria-checked">false</xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- <tr>
- <td class="formText" nowrap="">
- <utml:input type="checkbox" id="is_hidden" name="is_hidden" value="true" tabindex="-1">
- <xsl:attribute name="onclick">setPropertiesChanged();if(this.checked) <xsl:text> { </xsl:text>document.getElementById('isHidden').setAttribute('aria-checked','true');document.pform.m_p_hidden.value='true'; <xsl:text>}</xsl:text>else <xsl:text>{</xsl:text>document.getElementById('isHidden').setAttribute('aria-checked','false');document.pform.m_p_hidden.value='false'; <xsl:text>}</xsl:text>event.cancelBubble='true';if(event.stopPropogation)event.stopPropagation();</xsl:attribute>
- <utml:read-only>
- <xsl:choose>
- <!-- also set to readonly when parent's disabled property is true and the disabled property is acquired -->
- <xsl:when test="$objectHiddenProperty/@modifiable = 'false' or $noUserProfile or ($objectHiddenProperty/@acquired='true' and $objectHiddenProperty='true')">true</xsl:when>
- <xsl:otherwise>false</xsl:otherwise>
- </xsl:choose>
- </utml:read-only>
- <utml:default-value>
- <xsl:choose>
- <xsl:when test="key('env-param','m_p_hidden')">
- <xsl:value-of select="key('env-param','m_p_hidden')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$objectHiddenProperty"/>
- </xsl:otherwise>
- </xsl:choose>
- </utml:default-value>
- </utml:input>
- </td>
- <td id="labelForIsHidden" class="formText" nowrap=""><label for="is_hidden"><xts:string id="IDS_PROP_HIDE_OBJECT"/></label></td>
- </tr>
- </table>
- <xsl:if test="$has_write_permission and $noUserProfile!=true()">
- <utml:input type="hidden" name="m_p_hidden">
- <xsl:attribute name="value"><xsl:value-of select="$hiddenSetting"/></xsl:attribute>
- </utml:input>
- </xsl:if>
- </xsl:template>
- <!-- template for the notification and retention sections -->
- <xsl:template name="render-retention">
- <utml:group>
- <!-- only show the retention if we have read permission -->
- <xsl:if test="$has_read_permission">
- <utml:read-only>
- <xsl:choose>
- <xsl:when test="$has_write_permission and $the-object/cm:retentions/@modifiable = 'true'">false</xsl:when>
- <xsl:otherwise>true</xsl:otherwise>
- </xsl:choose>
- </utml:read-only>
- <!-- Notification and Retention settings -->
- <xsl:if test="(/root/system/param[@name='ui_objects']/object[@class=string($the-object/cm:objectClass) and @runnable='T']) or ($the-object/cm:objectClass = 'document')">
- <lyt:layout style="2" border="yes" width="100%">
- <lyt:section>
- <xsl:choose>
- <xsl:when test="$the-object/cm:objectClass = 'document'"><dt:retention class="documentVersion" title="IDS_PROP_DOCUMENT_RETENTION_EXECUTION" trackchange="setPropertiesChanged()" label="IDS_PROP_DOCUMENT_RETENTION_EXECUTION_LABEL"/></xsl:when>
- <xsl:otherwise><dt:retention class="history" title="IDS_PROP_RETENTION_EXECUTION" trackchange="setPropertiesChanged()" label="IDS_PROP_RETENTION_EXECUTION_LABEL"/></xsl:otherwise>
- </xsl:choose>
- </lyt:section>
- <lyt:section>
- <xsl:if test="contains(' analysis report interactiveReport reportView query powerPlay8Report powerPlay8ReportView ', concat(' ', $the-object/cm:objectClass, ' '))">
- <dt:retention class="reportVersion" title="IDS_PROP_RETENTION_OUTPUTS" trackchange="setPropertiesChanged()" label="IDS_PROP_RETENTION_OUTPUTS_LABEL"/>
- </xsl:if>
- </lyt:section>
- </lyt:layout>
- </xsl:if>
- </xsl:if>
- <!-- only show the "URL" or "File System Location settings" if user has read permission -->
- <xsl:if test="$has_read_permission">
- <!-- URL -->
- <xsl:if test="key('env-param', 'm_class') = 'URL'">
- <!-- Check to see if url is safe (e.g.: domain-valid) -->
- <xsl:variable name="is-url-validated" select="xtsext:cafaction('issafeurl_null', normalize-space($the-object/cm:uri)) = 'true'"/>
- <xsl:variable name="urlValue">
- <xsl:if test="$is-url-validated or $isAdminUser">
- <xsl:value-of select="$the-object/cm:uri"/>
- </xsl:if>
- </xsl:variable>
- <dt:domainListPopup/>
- <lyt:layout style="1" border="yes" lyt:kbA11y="true">
- <lyt:section>
- <dp:input>
- <dp:section1>
- <xts:string id="IDS_PROP_URL"/>
- <dp:list>
- <dp:section>
- <div>
- <xsl:text/><xts:string id="IDS_NEW_URL_HINT"/>  <xsl:text/>
- <a href="#">
- <xsl:attribute name="onclick">javascript:validDomains.show();return false;</xsl:attribute>
- <xsl:attribute name="onkeypress">javascript:<xsl:value-of select="$chkSpaceEnterKeyEvent"/>{ return this.onclick(); }return true;</xsl:attribute>
- <xsl:text/><xts:string id="IDS_NEW_URL_VIEW_VALID_DOMAINS"/><xsl:text/>
- </a>
- </div>
- </dp:section>
- </dp:list>
- </dp:section1>
- <dp:section2>
- <dp:list>
- <dp:section>
- <utml:input type="text" name="m_p_uri" maxlength="2048" size="30" class="pInput" onchange="setPropertiesChanged()" aria-labelledby="urlInEdit" stttype="url">
- <utml:read-only>
- <xsl:choose>
- <xsl:when test="$the-object/cm:uri/@modifiable = 'false'">true</xsl:when>
- <xsl:otherwise>false</xsl:otherwise>
- </xsl:choose>
- </utml:read-only>
- <utml:value>
- <xsl:value-of select="$urlValue"/>
- </utml:value>
- </utml:input>
- <span style="position: absolute;margin-left: -9999px; margin-top: -9999px;" id="urlInEdit"><xsl:value-of select="$urlValue"/></span>
- </dp:section>
- <dp:section>
- <xsl:if test="not($is-url-validated)">
- <xsl:choose>
- <xsl:when test="$isAdminUser">
- <xts:string id="IDS_NEW_URL_NOT_VALID_URL"/>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_NEW_URL_NOT_ALLOWED_TO_VIEW"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- </dp:section>
- </dp:list>
- </dp:section2>
- </dp:input>
- </lyt:section>
- </lyt:layout>
- </xsl:if>
- <!-- File System Location settings -->
- <xsl:if test="key('env-param', 'm_class') = 'archiveLocation'">
- <!-- get ROOT value from configuration -->
- <xsl:variable name="fileSystemRoot" select="string(/root/configuration/property[@name='archiveLocationFileSchemeRoot'])"/>
- <xsl:variable name="sysRootValue">
- <xsl:choose>
- <xsl:when test="$fileSystemRoot=''">
- <xts:string id="IDS_PROP_FILE_SYSTEM_ROOT_LOCATION_MISSING"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$fileSystemRoot"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <lyt:layout style="1" border="yes" lyt:kbA11y="true">
- <lyt:section>
- <dp:input>
- <dp:section1>
- <xts:string id="IDS_PROP_FILE_SYSTEM_ROOT_LOCATION_LABEL"/>
- <dp:list>
- <dp:section>
- <dp:hint>
- <xts:string id="IDS_PROP_FILE_SYSTEM_ROOT_LOCATION_INTRO"/>
- </dp:hint>
- </dp:section>
- </dp:list>
- </dp:section1>
- <dp:section2>
- <xsl:value-of select="$sysRootValue"/>
- </dp:section2>
- </dp:input>
- <dp:input>
- <dp:section1>
- <label for="ctrl_m_p_archiveLocation_uri"><xts:string id="IDS_PROP_FILE_SYSTEM_LOCATION_LABEL"/></label>
- <dp:list>
- <dp:section>
- <dp:hint>
- <xts:string id="IDS_PROP_FILE_SYSTEM_LOCATION_INTRO"/>
- </dp:hint>
- </dp:section>
- </dp:list>
- </dp:section1>
- <dp:section2>
- <utml:input type="text" name="m_p_archiveLocation_uri" maxlength="2048" size="30" class="pInput" onchange="setPropertiesChanged()" id="ctrl_m_p_archiveLocation_uri">
- <utml:read-only>
- <xsl:choose>
- <xsl:when test="$the-object/cm:uri/@modifiable = 'false'">true</xsl:when>
- <xsl:otherwise>false</xsl:otherwise>
- </xsl:choose>
- </utml:read-only>
- <utml:value>
- <xsl:value-of select="$the-object/cm:uri"/>
- </utml:value>
- </utml:input>
- </dp:section2>
- </dp:input>
- </lyt:section>
- </lyt:layout>
- </xsl:if>
- </xsl:if>
- </utml:group>
- </xsl:template>
- <!-- Variables needed for pf:gen-url -->
- <xsl:variable name="location" select="''"/>
- <xsl:variable name="request-url-params">
- <xsl:if test="/root/env/param[@name='rui']">
- <xsl:text/>&rui=<xsl:value-of select="xtsext:protect(xtsext:urlencode(string(/root/env/param[@name='rui'])),'url','rui','getdata')"/>
- </xsl:if>
- </xsl:variable>
- <!-- Back URLs will be stripped from the final URL, so these variables may be blank. -->
- <xsl:variable name="back-url" select="''"/>
- <xsl:variable name="encodedPPBack" select="''"/>
- <xsl:variable name="encodedPP8Back" select="''"/>
- <xsl:variable name="javascript-encodedPP8Back" select="''"/>
- <xsl:variable name="encoded-back-url" select="''"/>
- <xsl:variable name="encoded-s7-back-url" select="''"/>
- <pf:gen-action/>
- <pf:gen-action-string/>
- <pf:gen-url/>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="ignoreFaultHandler" type="fault" processor="XSLT">
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" exclude-result-prefixes="xsl">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <ignoreFault/>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- debug - display debug information
- ===============================================================================================
- -->
- <xts:block id="debug" dependency="renderPage missingObject" condition=".[/root/session/param[@name='debug']='1']" type="exec" mode="output" processor="XSLT" mandatory="false" mimeType="text/html">
- <!-- get the debug logic sheet -->
- <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/" exclude-result-prefixes="dbg">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <dbg:dumpxml select="/root"/>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- </xts:morphlet>
|