23. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 10/18/2017 8:22:15 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

23.1 Files compared

# Location File Last Modified
1 RAMS.zip\RAMS\UI\R2.1\sitePages manageCommittee.html Wed Oct 18 12:48:40 2017 UTC
2 RAMS.zip\RAMS\UI\R2.1\sitePages manageCommittee.html Wed Oct 18 13:02:50 2017 UTC

23.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 1696
Changed 1 2
Inserted 0 0
Removed 0 0

23.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

23.4 Active regular expressions

No regular expressions were active.

23.5 Comparison detail

  1   <!DOCTYPE  html>
  2   <html lang ="en" xmln s:mso="urn :schemas-m icrosoft-c om:office: office" xm lns:msdt=" uuid:C2F41 010-65B3-1 1d1-A29F-0 0AA00C1488 2"><head>
  3   <meta http -equiv="co ntent-type " content= "text/html ; charset= UTF-8">
  4       <meta  charset="u tf-8">
  5       <meta  http-equiv ="X-UA-Com patible" c ontent="IE =edge">
  6       <meta  name="desc ription" c ontent="">
  7       <meta  name="auth or" conten t="Veteran s Affairs  Research A dministrat ive Manage ment Syste m">
  8       <meta  http-equiv ="Pragma"  content="n o-cache">
  9       <meta  http-equiv ="Expires"  content=" -1">
  10       <!-- N ote there  is no resp onsive met a tag here  -->
  11  
  12       <title >VA RAMS</ title>
  13  
  14  
  15           <l ink rel="s tylesheet"  href="../ SiteAssets /css/jquer y-ui.css">
  16  
  17     <script  src="../Si teAssets/j s/jquery.j s"></scrip t>
  18  
  19     <script  src="../Si teAssets/j s/jquery-u i.js"></sc ript>  
  20     
  21      <script  type="tex t/javascri pt" src=". ./SiteAsse ts/js/rams -environme nt.js"></s cript>
  22     
  23      <!-- Bo otstrap co re CSS -->
  24       <link  href="../S iteAssets/ css/bootst rap.min.cs s" rel="st ylesheet">
  25     
  26       <!-- C ustom styl es for thi s template  -->
  27       <link  href="../S iteAssets/ css/styles .css" rel= "styleshee t">
  28  
  29  
  30  
  31   <!--[if gt e mso 9]>< xml>
  32   <mso:Custo mDocumentP roperties>
  33   <mso:ItemR etentionFo rmula msdt :dt="strin g"></mso:I temRetenti onFormula>
  34   <mso:_dlc_ policyId m sdt:dt="st ring"></ms o:_dlc_pol icyId>
  35   </mso:Cust omDocument Properties >
  36   </xml><![e ndif]-->
  37   </head>
  38  
  39     <body>
  40       <a hre f="#insert " class="s r-only sr- only-focus able">Skip  to main c ontent</a>   <!-- Ski p to main  content -- >
  41       <!-- F ixed navba r -->
  42       <div c lass="navb ar navbar- default na vbar-stati c-top" rol e="navigat ion">
  43         <div  class="co ntainer">
  44           <d iv class=" navbar-hea der">
  45              <h1 title= "Departmen t of Veter ans Affair s Seal.Vet erans Affa irs Resear ch Adminis trative Ma nagement S ystem"><a  class="nav bar-brand"  href="#"> Department  of Vetera ns Affairs  Seal.Vete rans Affai rs Researc h Administ rative Man agement Sy stem</a></ h1>
  46           </ div>
  47           <d iv class=" navbar-col lapse coll apse">
  48              <ul class= "nav navba r-nav navb ar-right m ain-nav">
  49                <li><a t itle="Home " href="/s ites/IRBAp plications /SitePages /Home.aspx ">Home</a> </li>
  50                <li clas s="active" ><a title= "Research  Study Appl ications"  href="/sit es/IRBAppl ications/S itePages/i rb%20appli cations.as px">Resear ch Study A pplication </a></li>
  51                <li><a t itle="Comm ittee Acti vities" hr ef="../Sit eAssets/co mmittee_re direct.htm l">Committ ee Activit ies</a></l i>
  52                <li><a i d="profile " title="P ersonal Pr ofile" hre f="">Perso nal Profil e</a></li>                 
  53              </ul>
  54           </ div><!--/. nav-collap se -->
  55         </di v>
  56       </div>  <!-- /.na vbar-stati c-top -->
  57  
  58   <script ty pe="text/j avascript" >
  59   var siteUr l = "/site s/IRBAppli cations/";
  60   var SiteNa me = "";
  61   //replace  page
  62   var replac eFrom = ""
  63   var replac eFacility  = "";
  64   var replac eCommittee  = "";
  65   var toFaci lity = "";
  66   var toComm ittee = "" ;
  67   //remove p age
  68   var selIte m = ""; 
  69   var selFac ility = "" ;
  70   var selCom mittee = " ";
  71  
  72  
  73   $( documen t ).ready( function()  {
  74           
  75       SiteNa me = getPa ramValue(' facilityNa me');
  76       $('#si teUsersHea der').appe nd(SiteNam e);
  77       retrie veListItem s();
  78       
  79   });
  80  
  81  
  82   function s electOnlyT his(id) {
  83       for (v ar i = 0;i  <= 3; i++ )
  84       {
  85           do cument.get ElementByI d("Check"  + i).check ed = false ;
  86       }
  87       docume nt.getElem entById(id ).checked  = true;
  88   }
  89  
  90   function s electRepla ceFrom(id)  {
  91       for (v ar i = 0;i  <= 3; i++ )
  92       {
  93           do cument.get ElementByI d("replace checkbox"  + i).check ed = false ;
  94       }
  95       docume nt.getElem entById(id ).checked  = true;
  96   }
  97  
  98   function s electRepla ceTo(id) {
  99       for (v ar i = 0;i  <= 3; i++ )
  100       {
  101           do cument.get ElementByI d("ToCheck box" + i). checked =  false;
  102       }
  103       docume nt.getElem entById(id ).checked  = true;
  104   }
  105  
  106   function r emove(id)  {
  107       for (v ar i = 0;i  <= 3; i++ )
  108       {
  109           do cument.get ElementByI d("removec heckbox" +  i).checke d = false;
  110       }
  111       docume nt.getElem entById(id ).checked  = true;
  112   }
  113  
  114   function g etParamVal ue(param)  {
  115           va r urlParam String = l ocation.se arch.split (param + " =");
  116           if  (urlParam String.len gth <= 1)
  117                    retu rn "";
  118           el se {
  119                    var  tmp = urlP aramString [1].split( "&");
  120  
  121                    retu rn tmp[0];
  122           }
  123  
  124   }
  125  
  126   function a ddgetvalue ()
  127   {
  128           va r e = docu ment.getEl ementById( "adddropdo wn");
  129           va r selFacil ity = e.op tions[e.se lectedInde x].text;        
  130           re turn selFa cility;
  131   }
  132  
  133   function r eplacegetv alue()
  134   {
  135           va r e = docu ment.getEl ementById( "replacedr opdown");
  136           va r selFacil ity = e.op tions[e.se lectedInde x].text;        
  137           re turn selFa cility;
  138   }
  139  
  140                
  141   function r eplaceDele teSel()
  142   {
  143       for (v ar i = 0;i  <= 3; i++ )
  144       {
  145                    docu ment.getEl ementById( "replacech eckbox" +  i).checked =false;
  146                    docu ment.getEl ementById( "ToCheckbo x" + i).ch ecked=fals e;
  147                    
  148           }
  149           $( '#replaced ropdown'). val(0);
  150   }
  151  
  152   function r emoveDelet eSel()
  153   {
  154       for (v ar i = 0;i  <= 3; i++ )
  155       {
  156                    docu ment.getEl ementById( "removeche ckbox" + i ).checked= false;
  157                    
  158           }
  159   }
  160  
  161  
  162   function a ddDeleteSe l()
  163   {
  164           do cument.get ElementByI d("Check0" ).checked= false;
  165           do cument.get ElementByI d("Check1" ).checked= false;
  166           do cument.get ElementByI d("Check2" ).checked= false;
  167           do cument.get ElementByI d("Check3" ).checked= false;
  168           // $('#e').at tr('disabl ed','disab led');  
  169           $( '#adddropd own').val( 0);
  170   }
  171  
  172   function a ddSaveTo()
  173   {
  174       var re placestyle  = documen t.getEleme ntById('re placecheck box3').sty le ; 
  175       var e  = document .getElemen tById("add dropdown") ;
  176       var se lFacility  = e.option s[e.select edIndex].t ext;
  177           va r iacuc =  document.g etElementB yId("Check 0").checke d;
  178           va r srs = do cument.get ElementByI d("Check1" ).checked;
  179           va r irb = do cument.get ElementByI d("Check2" ).checked;
  180           va r rdc = do cument.get ElementByI d("Check3" ).checked;
  181  
  182  
  183           if (replacest yle.visibi lity == "v isible")
  184           {
  185               alert("Th ere are al ready exsi ting four  committees , please r emove or r eplace the m first")
  186           } 
  187           el se if(selF acility ==  "Please s elect faci lity")  
  188           {
  189               alert("Pl ease selec t facility ")
  190           } 
  191       else i f((iacuc = = false)&& (srs == fa lse)&&(irb  == false) &&(rdc ==  false))  
  192           {
  193               alert("Pl ease selec t committe e")
  194           }        
  195       else 
  196       {   
  197                    if ( selFacilit y!= 'Pleas e select f acility')               
  198                    {
  199           
  200                         var client Context =  new SP.Cli entContext (siteUrl);
  201                         var oList  = clientCo ntext.get_ web().get_ lists().ge tByTitle(' Site Confi g');
  202                             
  203                         var itemCr eateInfo =  new SP.Li stItemCrea tionInform ation();
  204                         this.oList Item = oLi st.addItem (itemCreat eInfo);
  205                        
  206                         if(iacuc = = true)
  207                         {
  208                             oListI tem.set_it em('Site',  SiteName) ;
  209                                 oL istItem.se t_item('Fa cility', a ddgetvalue ());
  210                                 oL istItem.se t_item('Co mmittee',  'IACUC');
  211                         }
  212                         if(srs ==  true)
  213                         {
  214                             oListI tem.set_it em('Site',  SiteName) ;
  215                                 oL istItem.se t_item('Fa cility', a ddgetvalue ());
  216                                 oL istItem.se t_item('Co mmittee',  'SRS');
  217                         }
  218                             if(irb  == true)
  219                         {
  220                             oListI tem.set_it em('Site',  SiteName) ;
  221                                 oL istItem.se t_item('Fa cility', a ddgetvalue ());
  222                                 oL istItem.se t_item('Co mmittee',  'IRB');
  223                         }
  224                         if(rdc ==  true)
  225                         {
  226                             oListI tem.set_it em('Site',  SiteName) ;
  227                                 oL istItem.se t_item('Fa cility', a ddgetvalue ());
  228                                 oL istItem.se t_item('Co mmittee',  'RDC');
  229                         }
  230  
  231                             
  232                         oListItem. update();
  233                    
  234                         clientCont ext.load(o ListItem);
  235                             
  236                         clientCont ext.execut eQueryAsyn c(Function .createDel egate(this , this.onQ uerySuccee ded), Func tion.creat eDelegate( this, this .onQueryFa iled));
  237                }
  238                else
  239               {
  240                 alert(" please sel ect facili ty and com mittee to  add");
  241               }
  242      }
  243   }
  244   function o nQuerySucc eeded() {
  245  
  246       //aler t('success ed!');
  247       window .location. href("/sit es/IRBAppl ications/S itePages/L SACP.html? facilityNa me="+SiteN ame+"&faci lityTitle= "+SiteName );
  248  
  249   }
  250  
  251   function o nQueryFail ed(sender,  args) {
  252  
  253       alert( 'Request f ailed. ' +  args.get_ message()  + '\n' + a rgs.get_st ackTrace() );
  254   }
  255  
  256   function r emoveSel()
  257  
  258        for ( var i = 0; i <= 3; i+ +)
  259        {
  260          if( document.g etElementB yId("remov echeckbox"  + i).chec ked == tru e)
  261            s elItem = d ocument.ge tElementBy Id('remove lbl' + i). innerText;
  262        }
  263        if(se lItem == " ")
  264        {
  265           al ert("pleas e select c ommittee t o remove") ;
  266        }
  267        if(se lItem != " ")
  268        {
  269                 selItem  = selItem .split(" " );
  270                 if(selI tem.length  == 2)
  271                 {
  272                    selF acility =  selItem[0] ;
  273                    selC ommittee =  selItem[1 ];
  274                 }
  275                 if(selI tem.length  == 3)
  276                 {
  277                    selF acility =  selItem[0] +" "+selIt em[1];
  278                    selC ommittee =  selItem[2 ];
  279           
  280                 }
  281                 if(selI tem.length  == 4)
  282                 {
  283                    selF acility =  selItem[0] +" "+selIt em[1]+" "+ selItem[2] ;
  284                    selC ommittee =  selItem[3 ];
  285           
  286                 }
  287  
  288            g etSelIDRem ove();
  289                        
  290           }
  291  
  292   }
  293  
  294   function g etSelIDRem ove()
  295   {
  296           va r clientCo ntext = ne w SP.Clien tContext(s iteUrl);
  297                    spLi st = clien tContext.g et_web().g et_lists() .getByTitl e('Site Co nfig');
  298                    var  camlQuery  = new SP.C amlQuery() ;
  299                    var  queryStrin g = '<View ><Query><O rderBy><Fi eldRef Nam e="ID"/></ OrderBy><W here><And> <And><Eq>< FieldRef N ame="Site" /><Value T ype="Text" >' + SiteN ame +
  300                                        '</Val ue></Eq><E q><FieldRe f Name="Fa cility"/>< Value Type ="Text">'+  selFacili ty +
  301                                        '</Val ue></Eq></ And><Eq><F ieldRef Na me="Commit tee"/><Val ue Type="T ext">'+ se lCommittee  +'</Value ></Eq></An d></Where> </Query></ View>'
  302                camlQuer y.set_view Xml(queryS tring);
  303                this.col lListItem  = spList.g etItems(ca mlQuery);
  304                    
  305                    clie ntContext. load(collL istItem);
  306                    
  307                    clie ntContext. executeQue ryAsync(Fu nction.cre ateDelegat e(this, th is.onQuery RemoveID),  Function. createDele gate(this,  this.onQu eryFailed) );  
  308  
  309   }
  310  
  311   function o nQueryRemo veID() {
  312        
  313       var it emId = '';
  314       var li stItemEnum erator = c ollListIte m.getEnume rator();
  315           
  316       while  (listItemE numerator. moveNext() ) {
  317           va r oListIte m = listIt emEnumerat or.get_cur rent();
  318           it emId =  oL istItem.ge t_item('ID ');    
  319           }
  320       remove SelfromLis t(itemId);   
  321   }
  322  
  323   function r emoveSelfr omList(id)
  324   {
  325       var cl ientContex t = new SP .ClientCon text(siteU rl);
  326       var oL ist = clie ntContext. get_web(). get_lists( ).getByTit le('Site C onfig');
  327  
  328       this.o ListItem =  oList.get ItemById(i d);
  329  
  330       oListI tem.set_it em('Hide',  'Yes');
  331  
  332       oListI tem.update ();
  333  
  334       client Context.ex ecuteQuery Async(Func tion.creat eDelegate( this, this .lookupApp licationli stThenRemo ve), Funct ion.create Delegate(t his, this. onQueryFai led));
  335  
  336   }
  337  
  338   function l ookupAppli cationlist ThenRemove ()
  339   {
  340           va r clientCo ntext = ne w SP.Clien tContext(s iteUrl);
  341                    spLi st = clien tContext.g et_web().g et_lists() .getByTitl e('Applica tion');
  342                    var  camlQuery  = new SP.C amlQuery() ;
  343                    var  queryStrin g = '<View ><Query><O rderBy><Fi eldRef Nam e="Modifie d" Ascendi ng="FALSE" /></OrderB y><Where>< And><And>< Eq><FieldR ef Name="S iteLookup" /><Value T ype="Text" >'+SiteNam e +
  344                               '</V alue></Eq> <Eq><Field Ref Name=" FacilityLo okup"/><Va lue Type=" Text">'+ s elFacility  +
  345                               '</V alue></Eq> </And><Eq> <FieldRef  Name="Comm itteesLook up"/><Valu e Type="Te xt">'+ sel Committee  +'</Value> </Eq></And ></Where>< /Query></V iew>';       
  346                    caml Query.set_ viewXml(qu eryString) ;
  347                this.col lListItem  = spList.g etItems(ca mlQuery);
  348                    
  349                    clie ntContext. load(collL istItem);
  350                    
  351                    clie ntContext. executeQue ryAsync(Fu nction.cre ateDelegat e(this, th is.onQuery RemoveIDfr omApplicat ion), Func tion.creat eDelegate( this, this .onQueryFa iled));  
  352  
  353   }
  354  
  355   function o nQueryRemo veIDfromAp plication( ) {
  356        
  357       var it emId = "";
  358       var li stItemEnum erator = c ollListIte m.getEnume rator();
  359       var co unt = coll ListItem.g et_count() ;
  360       if (co unt == 0)
  361       {
  362           // alert("Suc cessed!");
  363           wi ndow.locat ion.href(" /sites/IRB Applicatio ns/SitePag es/LSACP.h tml?facili tyName="+S iteName+"& facilityTi tle="+Site Name);
  364  
  365       }
  366       else
  367           {     
  368                while (l istItemEnu merator.mo veNext())  {
  369                    var  oListItem  = listItem Enumerator .get_curre nt();
  370                    item Id =  oLis tItem.get_ item('ID') ;  
  371                    remo vefromAppl icationLis t(itemId);           
  372                }
  373       
  374       }
  375   }
  376   function r emovefromA pplication List(id)
  377   {
  378       var cl ientContex t = new SP .ClientCon text(siteU rl);
  379       var oL ist = clie ntContext. get_web(). get_lists( ).getByTit le('Applic ation');
  380  
  381       this.o ListItem =  oList.get ItemById(i d);
  382  
  383       oListI tem.set_it em('Hide',  'Yes');
  384  
  385       oListI tem.update ();
  386  
  387       client Context.ex ecuteQuery Async(Func tion.creat eDelegate( this, this .onQuerySu cceeded2),  Function. createDele gate(this,  this.onQu eryFailed) );
  388   }
  389   function o nQuerySucc eeded2() {
  390  
  391       //aler t("Success ed!");
  392       window .location. href("/sit es/IRBAppl ications/S itePages/L SACP.html? facilityNa me="+SiteN ame+"&faci lityTitle= "+SiteName );
  393  
  394   }
  395  
  396  
  397   function r eplaceSave To()
  398   {
  399  
  400        for ( var i = 0; i <= 3; i+ +)
  401        {
  402          if( document.g etElementB yId("repla cecheckbox " + i).che cked == tr ue)
  403            r eplaceFrom  = documen t.getEleme ntById('re placelbl'  + i).inner Text;
  404        }
  405        
  406        
  407        var e  = documen t.getEleme ntById("re placedropd own");
  408            t oFacility  = e.option s[e.select edIndex].t ext;
  409            
  410            f or (var i  = 0;i <= 3 ; i++)
  411        {
  412          if( document.g etElementB yId("ToChe ckbox" + i ).checked  == true)
  413            t oCommittee  = documen t.getEleme ntById('To lbl' + i). innerText;
  414        }
  415            
  416        if(re placeFrom  == "")
  417        {
  418           al ert("pleas e select c ommittee t o replace" );
  419        }
  420        else  if(toFacil ity == "Pl ease selec t facility ")  
  421            {
  422               alert("Pl ease selec t facility ")
  423            }  
  424            e lse if(toC ommittee = = "")
  425        {
  426           al ert("pleas e select c ommittee t o add");
  427        }
  428        else
  429        {
  430            r eplaceFrom  = replace From.split (" ");
  431                 if(repl aceFrom.le ngth == 2)
  432                 {
  433                    repl aceFacilit y = replac eFrom[0];
  434                    repl aceCommitt ee = repla ceFrom[1];
  435                 }
  436                 if(repl aceFrom.le ngth == 3)
  437                 {
  438                    repl aceFacilit y = replac eFrom[0]+"  "+replace From[1];
  439                    repl aceCommitt ee = repla ceFrom[2];
  440           
  441                 }
  442                 if(repl aceFrom.le ngth == 4)
  443                 {
  444                    repl aceFacilit y = replac eFrom[0]+"  "+replace From[1]+"  "+replaceF rom[2];
  445                    repl aceCommitt ee = repla ceFrom[3];
  446           
  447                 }
  448  
  449           ge tSelIDRepl ace();
  450        
  451        }
  452  
  453   }
  454  
  455   function g etSelIDRep lace()
  456   {
  457           va r clientCo ntext = ne w SP.Clien tContext(s iteUrl);
  458                    spLi st = clien tContext.g et_web().g et_lists() .getByTitl e('Site Co nfig');
  459                    var  camlQuery  = new SP.C amlQuery() ;
  460                    var  queryStrin g = '<View ><Query><O rderBy><Fi eldRef Nam e="ID"/></ OrderBy><W here><And> <And><Eq>< FieldRef N ame="Site" /><Value T ype="Text" >' + SiteN ame +
  461                                        '</Val ue></Eq><E q><FieldRe f Name="Fa cility"/>< Value Type ="Text">'+  replaceFa cility +
  462                                        '</Val ue></Eq></ And><Eq><F ieldRef Na me="Commit tee"/><Val ue Type="T ext">'+ re placeCommi ttee +'</V alue></Eq> </And></Wh ere></Quer y></View>'
  463                camlQuer y.set_view Xml(queryS tring);
  464                this.col lListItem  = spList.g etItems(ca mlQuery);
  465                    
  466                    clie ntContext. load(collL istItem);
  467                    
  468                    clie ntContext. executeQue ryAsync(Fu nction.cre ateDelegat e(this, th is.onQuery ReplaceID) , Function .createDel egate(this , this.onQ ueryFailed ));
  469  
  470   }
  471  
  472   function o nQueryRepl aceID() {
  473        
  474       var it emId = '';
  475       var li stItemEnum erator = c ollListIte m.getEnume rator();
  476           
  477       while  (listItemE numerator. moveNext() ) {
  478           va r oListIte m = listIt emEnumerat or.get_cur rent();
  479           it emId =  oL istItem.ge t_item('ID ');    
  480           }
  481       update SelfromLis t(itemId);   
  482   }
  483  
  484   function u pdateSelfr omList(id)
  485   {
  486       var cl ientContex t = new SP .ClientCon text(siteU rl);
  487       var oL ist = clie ntContext. get_web(). get_lists( ).getByTit le('Site C onfig');
  488  
  489       this.o ListItem =  oList.get ItemById(i d);
  490  
  491       oListI tem.set_it em('Facili ty', toFac ility);
  492       oListI tem.set_it em('Commit tee', toCo mmittee);
  493  
  494       oListI tem.update ();
  495  
  496       //clie ntContext. executeQue ryAsync(Fu nction.cre ateDelegat e(this, th is.onQuery Succeeded) , Function .createDel egate(this , this.onQ ueryFailed ));
  497       client Context.ex ecuteQuery Async(Func tion.creat eDelegate( this, this .lookupApp licationli stThenRepl ace), Func tion.creat eDelegate( this, this .onQueryFa iled));
  498  
  499   }
  500  
  501   function l ookupAppli cationlist ThenReplac e()
  502   {
  503           va r clientCo ntext = ne w SP.Clien tContext(s iteUrl);
  504                    spLi st = clien tContext.g et_web().g et_lists() .getByTitl e('Applica tion');
  505                    var  camlQuery  = new SP.C amlQuery() ;
  506                    var  queryStrin g = '<View ><Query><O rderBy><Fi eldRef Nam e="Modifie d" Ascendi ng="FALSE" /></OrderB y><Where>< And><And>< Eq><FieldR ef Name="S iteLookup" /><Value T ype="Text" >'+SiteNam e +
  507                               '</V alue></Eq> <Eq><Field Ref Name=" FacilityLo okup"/><Va lue Type=" Text">'+ r eplaceFaci lity +
  508                               '</V alue></Eq> </And><Eq> <FieldRef  Name="Comm itteesLook up"/><Valu e Type="Te xt">'+ rep laceCommit tee +'</Va lue></Eq>< /And></Whe re></Query ></View>';           
  509                    caml Query.set_ viewXml(qu eryString) ;
  510                this.col lListItem  = spList.g etItems(ca mlQuery);
  511                    
  512                    clie ntContext. load(collL istItem);
  513                    
  514                    clie ntContext. executeQue ryAsync(Fu nction.cre ateDelegat e(this, th is.onQuery Replacefro mApplicati on), Funct ion.create Delegate(t his, this. onQueryFai led));  
  515  
  516   }
  517  
  518   function o nQueryRepl acefromApp lication()  
  519   {
  520        
  521       var it emId = "";
  522       var li stItemEnum erator = c ollListIte m.getEnume rator();
  523       var co unt = coll ListItem.g et_count() ;
  524       if (co unt == 0)
  525       {
  526           // alert("Suc cessed!");
  527           wi ndow.locat ion.href(" /sites/IRB Applicatio ns/SitePag es/LSACP.h tml?facili tyName="+S iteName+"& facilityTi tle="+Site Name);
  528  
  529       }
  530       else
  531           {     
  532                while (l istItemEnu merator.mo veNext())  {
  533                    var  oListItem  = listItem Enumerator .get_curre nt();
  534                    item Id =  oLis tItem.get_ item('ID') ;  
  535                    repl acefromApp licationLi st(itemId) ;           
  536                }
  537       
  538       }
  539   }
  540  
  541   function r eplacefrom Applicatio nList(id)
  542   {
  543       var cl ientContex t = new SP .ClientCon text(siteU rl);
  544       var oL ist = clie ntContext. get_web(). get_lists( ).getByTit le('Applic ation');
  545  
  546       this.o ListItem =  oList.get ItemById(i d);
  547       
  548       var fa cilitylook upVal = ne w SP.Field LookupValu e();
  549       var co mmitteeloo kupVal= ne w SP.Field LookupValu e();
  550       var fa cilityID =  "";
  551       var co mmitteeID  = "";
  552       
  553       if(toF acility ==  "Ashevill e")
  554         faci lityID = 9 ;
  555       if(toF acility ==  "Miami")
  556         faci lityID = 5 ;
  557       if(toF acility ==  "Central  IRB")
  558         faci lityID = 4 ;
  559       if(toF acility ==  "New Orle ans")
  560         faci lityID = 6 ;
  561       if(toF acility ==  "St. Loui s")
  562         faci lityID = 1 0;
  563       if(toF acility ==  "Josh Tem plate test ing")
  564         faci lityID = 8 ;
  565       if(toF acility ==  "Local Si te 2")
  566         faci lityID = 2 ;
  567  
  568       if(toC ommittee = = "RDC")
  569         comm itteeID =  1;
  570       if(toC ommittee = = "SRS")
  571         comm itteeID =  2;
  572       if(toC ommittee = = "IRB")
  573         comm itteeID =  3;
  574       if(toC ommittee = = "IACUC")
  575         comm itteeID =  4;
  576  
  577  
  578           fa cilitylook upVal.set_ lookupId(f acilityID  );
  579       commit teelookupV al.set_loo kupId(comm itteeID );
  580       
  581           oL istItem.se t_item("Fa cilityLook up",facili tylookupVa l);
  582           oL istItem.se t_item("Co mmitteesLo okup",comm itteelooku pVal);
  583       oListI tem.update ();
  584  
  585       client Context.ex ecuteQuery Async(Func tion.creat eDelegate( this, this .onQuerySu cceeded2),  Function. createDele gate(this,  this.onQu eryFailed) );
  586   }
  587  
  588   function r etrieveLis tItems()
  589   {
  590       var cl ientContex t = new SP .ClientCon text(siteU rl);
  591       var oL ist = clie ntContext. get_web(). get_lists( ).getByTit le('Site C onfig');
  592           
  593       var ca mlQuery =  new SP.Cam lQuery();
  594       var ca mlString =  '<View><Q uery><Wher e><And><Eq ><FieldRef  Name="Sit e"/><Value  Type="Tex t">'+ Site Name +'</V alue></Eq> <Neq><Fiel dRef Name= "Hide"/><V alue Type= "Text">Yes </Value></ Neq></And> </Where></ Query></Vi ew>'
  595       camlQu ery.set_vi ewXml(caml String);
  596       this.c ollListIte m = oList. getItems(c amlQuery);
  597           
  598       client Context.lo ad(collLis tItem);
  599           
  600       client Context.ex ecuteQuery Async(Func tion.creat eDelegate( this, this .retrieveL istSucceed ed), Funct ion.create Delegate(t his, this. onQueryFai led));         
  601   }
  602   function r etrieveLis tSucceeded (sender, a rgs) {
  603  
  604       var It emFacility  = new Arr ay();
  605       var It emCommitte e = new Ar ray();
  606       var sh owArray =  new Array( );
  607       var ap plicationL ist = new  Array();
  608       
  609       $('#To lbl0').app end("RDC") ;
  610       $('#To lbl1').app end("IRB") ;
  611       $('#To lbl2').app end("IACUC ");
  612       $('#To lbl3').app end("SRS") ;
  613  
  614       var li stItemEnum erator = c ollListIte m.getEnume rator();
  615           
  616       while  (listItemE numerator. moveNext() ) {
  617          var  oListItem  = listIte mEnumerato r.get_curr ent();
  618          Ite mFacility. push(oList Item.get_i tem('Facil ity'));
  619          Ite mCommittee .push(oLis tItem.get_ item('Comm ittee')) 
  620          
  621       }
  622       
  623       for (v ar i = 0;  i < ItemFa cility.len gth; i++)
  624       {
  625         show Array[i] =  ItemFacil ity[i]+ "  " + ItemCo mmittee[i]
  626       }
  627             
  628       for (v ar i = 0;i  <= showAr ray.length ; i++)
  629       {
  630           $( '#removelb l' + i).ap pend(showA rray[i]);
  631           $( '#replacel bl' + i).a ppend(show Array[i]);
  632       }
  633       
  634       if(sho wArray.len gth ==0)
  635       for(va r j=0; j<4 ; j++)
  636       {
  637                var remo vestyle =  document.g etElementB yId('remov echeckbox' +j).style;
  638                var repl acestyle =  document. getElement ById('repl acecheckbo x'+j).styl e ; 
  639                if (remo vestyle.vi sibility = = "visible ") 
  640                removest yle.visibi lity = "hi dden"; 
  641                if (repl acestyle.v isibility  == "visibl e") 
  642                replaces tyle.visib ility = "h idden";
  643        } 
  644  
  645       if(sho wArray.len gth ==1)
  646       for(va r j=1; j<4 ; j++)
  647       {
  648                var remo vestyle =  document.g etElementB yId('remov echeckbox' +j).style;
  649                var repl acestyle =  document. getElement ById('repl acecheckbo x'+j).styl e ; 
  650                if (remo vestyle.vi sibility = = "visible ") 
  651                removest yle.visibi lity = "hi dden"; 
  652                if (repl acestyle.v isibility  == "visibl e") 
  653                replaces tyle.visib ility = "h idden";
  654        } 
  655  
  656       if(sho wArray.len gth ==2)
  657       for(va r j=2; j<4 ; j++)
  658       {
  659                var remo vestyle =  document.g etElementB yId('remov echeckbox' +j).style;
  660                var repl acestyle =  document. getElement ById('repl acecheckbo x'+j).styl e ; 
  661                if (remo vestyle.vi sibility = = "visible ") 
  662                removest yle.visibi lity = "hi dden"; 
  663                if (repl acestyle.v isibility  == "visibl e") 
  664                replaces tyle.visib ility = "h idden";
  665        } 
  666       if(sho wArray.len gth ==3)
  667       for(va r j=3; j<4 ; j++)
  668       {
  669                var remo vestyle =  document.g etElementB yId('remov echeckbox' +j).style;
  670                var repl acestyle =  document. getElement ById('repl acecheckbo x'+j).styl e ; 
  671                if (remo vestyle.vi sibility = = "visible ") 
  672                    remo vestyle.vi sibility =  "hidden";  
  673                if (repl acestyle.v isibility  == "visibl e") 
  674                    repl acestyle.v isibility  = "hidden" ;
  675        } 
  676  
  677         
  678   }
  679  
  680  
  681   </script>
  682  
  683  
  684   <div class ="containe r">
  685     <h2></h2 >
  686     <h2 id=" siteUsersH eader" cla ss="text-l eft"></h2>
  687     <ul clas s="nav nav -tabs">
  688       <li cl ass="activ e"><a data -toggle="t ab" href=" #add">Add  Committee< /a></li>
  689       <li><a  data-togg le="tab" h ref="#repl ace">Repla ce Committ ee</a></li >
  690       <li><a  data-togg le="tab" h ref="#remo ve">Remove  Committee </a></li>
  691  
  692     </ul>
  693  
  694     <div cla ss="tab-co ntent">
  695       <div i d="add" cl ass="tab-p ane fade i n active">
  696         <h3> Select fac ility to a dd</h3>
  697                                      <select  id="adddro pdown" onc hange="add getvalue() ">
  698                                        <optio n value="0 ">Please s elect faci lity</opti on>
  699                                        <optio n id="a" v alue="1">A sheville</ option>
  700                                        <optio n id="b" v alue="2">C entral IRB </option>
  701                                        <optio n id="c" v alue="3">N ew Orleans </option>
  702                                        <optio n id="d" v alue="4">S t. Louis</ option>
  703                                        <optio n id="e" v alue="5">M iami</opti on>
  704                                        <optio n id="f" v alue="6">J osh Templa te Testing </option>
  705                                        <optio n id="g" v alue="7">L ocal Site  2</option>
  706                    </se lect>
  707                    <br> <br><br><b r><br><br>
  708                    <h3> Select com mittee to  add</h3>
  709                    <for m action=" /action_pa ge.php" me thod="get" >
  710                                        <input  type="che ckbox" id= "Check0" n ame="IACUC " value="I ACUC" oncl ick="selec tOnlyThis( this.id)"> IACUC<br>
  711                                        <input  type="che ckbox" id= "Check1" n ame="SRS"  value="SRS " onclick= "selectOnl yThis(this .id)">SRS< br>
  712                                        <input  type="che ckbox" id= "Check2" n ame="IRB"  value="IRB " onclick= "selectOnl yThis(this .id)">IRB< br>
  713                                        <input  type="che ckbox" id= "Check3" n ame="RDC"  value="RDC " onclick= "selectOnl yThis(this .id)">RDC< br>
  714  
  715                                       </form>
  716                                       
  717                                       <br><br >
  718                                      <button  onclick="a ddSaveTo() ">Save</bu tton>
  719                                      &nbsp;&n bsp;&nbsp; &nbsp;
  720                                               <button on click="add DeleteSel( )">Cancel< /button>
  721       </div>
  722       
  723       <div i d="replace " class="t ab-pane fa de">
  724         <div  class="co ntainer">
  725                    <div  style="wi dth:40%; f loat:left; ">
  726                    <h3> Replace co mmittee fr om</h3>
  727                 <form a ction="/ac tion_page. php" metho d="get">
  728                                        <input  type="che ckbox" id= "replacech eckbox0" v alue="repl acecheckbo x0" style= "visibilit y : visibl e;" onclic k="selectR eplaceFrom (this.id)" >&nbsp;<la bel id="re placelbl0" ></label>< br>
  729                                        <input  type="che ckbox" id= "replacech eckbox1" v alue="repl acecheckbo x1" style= "visibilit y : visibl e;" onclic k="selectR eplaceFrom (this.id)" >&nbsp;<la bel id="re placelbl1" ></label>< br>
  730                                        <input  type="che ckbox" id= "replacech eckbox2" v alue="repl acecheckbo x2" style= "visibilit y : visibl e;" onclic k="selectR eplaceFrom (this.id)" >&nbsp;<la bel id="re placelbl2" ></label>< br>
  731                                        <input  type="che ckbox" id= "replacech eckbox3" v alue="repl acecheckbo x3" style= "visibilit y : visibl e;" onclic k="selectR eplaceFrom (this.id)" >&nbsp;<la bel id="re placelbl3" ></label>< br>
  732                          </form>
  733                     <br ><br><br>< br><br><br ><br><br>< br><br><br ><br>
  734                    <but ton onclic k="replace SaveTo()"> Save</butt on>
  735                    &nbs p;&nbsp;&n bsp;&nbsp;
  736                    <but ton onclic k="replace DeleteSel( )">Cancel< /button>
  737  
  738                    </di v>
  739                    
  740  
  741                    <div  style="wi dth:50%; f loat:right ;">
  742                    <h3> To</h3>
  743                    <br>
  744                   <h4>S elect faci lity to ad d</h4>
  745                                      <select  id="replac edropdown"  onchange= "replacege tvalue()">
  746                                        <optio n value="0 ">Please s elect faci lity</opti on>
  747                                        <optio n id="a" v alue="1">A sheville</ option>
  748                                        <optio n id="b" v alue="2">C entral IRB </option>
  749                                        <optio n id="c" v alue="3">N ew Orleans </option>
  750                                        <optio n id="d" v alue="4">S t. Louis</ option>
  751                                        <optio n id="e" v alue="5">M iami</opti on>
  752                                        <optio n id="f" v alue="6">J osh Templa te Testing </option>
  753                                        <optio n id="g" v alue="7">L ocal Site  2</option>
  754                    </se lect>
  755                    <br> <br><br><b r><br><br>
  756                    <h4> Select com mittee to  add</h4>
  757                    <for m action=" /action_pa ge.php" me thod="get" >
  758                                        <input  type="che ckbox" id= "ToCheckbo x0"  value ="ToCheckb ox0" oncli ck="select ReplaceTo( this.id)"> &nbsp;<lab el id="Tol bl0"></lab el><br>
  759                                        <input  type="che ckbox" id= "ToCheckbo x1"  value ="ToCheckb ox1" oncli ck="select ReplaceTo( this.id)"> &nbsp;<lab el id="Tol bl1"></lab el><br>
  760                                        <input  type="che ckbox" id= "ToCheckbo x2"  value ="ToCheckb ox2" oncli ck="select ReplaceTo( this.id)"> &nbsp;<lab el id="Tol bl2"></lab el><br>
  761                                        <input  type="che ckbox" id= "ToCheckbo x3"  value ="ToCheckb ox3" oncli ck="select ReplaceTo( this.id)"> &nbsp;<lab el id="Tol bl3"></lab el><br>
  762  
  763                                       </form>
  764           </ div>
  765      </div>
  766      </div>
  767       
  768       <div i d="remove"  class="ta b-pane fad e">
  769         <h3> Available  committee  to remove< /h3>
  770                    <for m action=" /action_pa ge.php" me thod="get" >
  771                                        <input  type="che ckbox" id= "removeche ckbox0" va lue="remov echeckbox0 " style="v isibility  : visible; " onclick= "remove(th is.id)">&n bsp;<label  id="remov elbl0"></l abel><br>
  772                                        <input  type="che ckbox" id= "removeche ckbox1" va lue="remov echeckbox1 " style="v isibility  : visible; " onclick= "remove(th is.id)">&n bsp;<label  id="remov elbl1"></l abel><br>
  773                                        <input  type="che ckbox" id= "removeche ckbox2" va lue="remov echeckbox2 " style="v isibility  : visible; " onclick= "remove(th is.id)">&n bsp;<label  id="remov elbl2"></l abel><br>
  774                                        <input  type="che ckbox" id= "removeche ckbox3" va lue="remov echeckbox3 " style="v isibility  : visible; " onclick= "remove(th is.id)">&n bsp;<label  id="remov elbl3"></l abel><br>
  775  
  776                                       </form>
  777                                       <br><br >
  778                                      <button  onclick="r emoveSel() ">Remove</ button>
  779                                      &nbsp;&n bsp;&nbsp;
  780                                               <button on click="rem oveDeleteS el()">Canc el</button >
  781       </div>
  782     </div>
  783   </div>
  784  
  785           
  786                    
  787           <d iv class=" footer">
  788         <div  class="co ntainer">
  789           <u l class="f ooter-nav" >
  790              <li><a tit le="About"  href="/si tes/IRBApp lications/ SitePages/ About.aspx ">About</a ></li>
  791             
  792              <li><a tit le="Traini ng" href=" /sites/IRB Applicatio ns/SitePag es/RAMS%20 Online%20H elp.aspx"> Training</ a></li>
  793             
  794              <li><a tit le="Help"  href="/sit es/IRBAppl ications/S itePages/R AMS%20Onli ne%20Help. aspx">Help </a></li>
  795             
  796              <li><a tit le="FAQs"  href="/sit es/IRBAppl ications/S itePages/F AQ.aspx">F AQs</a></l i>
  797  
  798              <li><a tit le="Contac t Us" href ="/sites/I RBApplicat ions/SiteP ages/Conta ct%20Us.as px">Contac t Us</a></ li>
  799  
  800              <li><a tit le="Site M ap" href=" /sites/IRB Applicatio ns/SitePag es/Site%20 Map.aspx"> Site Map</ a></li>
  801  
  802              <li><a tit le="Discla imer" href ="/sites/I RBApplicat ions/SiteP ages/Discl aimer.aspx ">Disclaim er</a></li >
  803  
  804              <li><a tit le="Privac y/Accessib ility" hre f="/sites/ IRBApplica tions/Site Pages/Acce ssibility. aspx">Priv acy / Acce ssibility< /a></li>
  805  
  806              <li><a tit le="Versio n" href="/ sites/IRBA pplication s/SitePage s/Version. aspx">Vers ion</a></l i>
  807  
  808              <li><a tit le="Descri ption" hre f="/sites/ IRBApplica tions/Site Pages/Desc ription.as px">Descri ption</a>< /li>
  809  
  810               <li><a tit le="VA Hom e" href="h ttp://vaww . DNS     ">VA Home< /a></li>
  811           </ ul>
  812           <p  class="pu ll-right"> <strong> & copy; 2016 -2017 VA R AMS (v2.1. 0) </stron g></p>
  813         </di v>
  814       </div>
  815  
  816       <!-- B ootstrap c ore JavaSc ript
  817       ====== ========== ========== ========== ========== ==== -->
  818       <!-- P laced at t he end of  the docume nt so the  pages load  faster -- >
  819      
  820       <!--<s cript src= "js/jquery -1.11.3.mi n.js"></sc ript>-->
  821  
  822       <scrip t src="../ SiteAssets /js/bootst rap.min.js "></script >
  823       <scrip t src="../ SiteAssets /js/toolti p.js"></sc ript>
  824       <!-- I E10 viewpo rt hack fo r Surface/ desktop Wi ndows 8 bu g -->
  825       <scrip t src="../ SiteAssets /js/ie10-v iewport-bu g-workarou nd.js"></s cript>
  826  
  827       <!-- < script src ="js/boots trap-edita ble.js"></ script>
  828            < script src ="js/boots trap-datep icker.js"> </script>
  829       -->
  830  
  831       <scrip t type="te xt/javascr ipt" src=" ../SiteAss ets/js/Mic rosoftAjax .js"></scr ipt> 
  832       <scrip t type="te xt/javascr ipt" src=" /sites/IRB Applicatio ns/_layout s/15/sp.ru ntime.js"> </script>
  833       <scrip t type="te xt/javascr ipt" src=" /sites/IRB Applicatio ns/_layout s/15/sp.js "></script
  834       <!-- d ynamic cod e generati on tags -- >
  835  
  836       <scrip t src="../ SiteAssets /js/bootst rap-datepi cker.js">< /script>
  837       <scrip t src="../ SiteAssets /js/jquery .popupover lay.js"></ script>
  838       <scrip t src="../ SiteAssets /js/jshash set-3.0.js "></script >
  839       <scrip t src="../ SiteAssets /js/jshash table-3.0. js"></scri pt>
  840      
  841  
  842           <s cript src= "../SiteAs sets/js/UL SLogScript .js"></scr ipt>
  843           
  844           <s cript>
  845            d ocument.ge tElementBy Id("profil e").href =  mySitesSe rverName;    
  846           </ script>
  847  
  848  
  849   </body></h tml>