--- rat/client/parameter.html 2017/07/13 15:30:01 1.76 +++ rat/client/parameter.html 2019/01/06 04:02:19 1.79 @@ -5,7 +5,7 @@ The LearningOnline Network with CAPA Parameter Input Window // -// $Id: parameter.html,v 1.76 2017/07/13 15:30:01 raeburn Exp $ +// $Id: parameter.html,v 1.79 2019/01/06 04:02:19 raeburn Exp $ // // Copyright Michigan State University Board of Trustees // @@ -192,7 +192,7 @@ function second() { choicewrite('>'+i+''); } choicewrite(''); -} +} function date() { @@ -243,8 +243,8 @@ function month() { } choicewrite(''); } - - + + function intminute() { var thisminutes=cmins; var i; @@ -454,7 +454,7 @@ function ipstringeval() { if (items.length > 0) { for (var j=0; j'); + choicewrite(''); } else { if (pscat=='pos') { tablestart('Positive floating point number or zero'); @@ -1057,10 +1057,35 @@ function draw() { ' type="radio" '+callradiostringeval('map_map')); if (svalue=='map_map') { choicewrite(' checked="checked"'); } choicewrite(' /> Yes, and the scope of student selected slot is the enclosing map/folder. When checking in, all resources in the map/folder are checked in.'); - choicewrite(''); + choicewrite(''); + } + if (pscat=='deeplink') { + tablestart('Deep-linked items'); + choicewrite('Value:'); + choicewrite(' Displayed (linked) in Contents and Grades.'); + choicewrite(' Not displayed in Contents or Grades.'); + choicewrite(' Displayed in Grades only.'); + choicewrite(' Displayed (unlinked) in Contents and Grades.'); + choicewrite(' Displayed (with date status) but unlinked in Contents and Grades.'); + choicewrite(''); } } - + if (ptype=='color') { tablestart('Choose a Color'); choicewrite(''); @@ -1075,7 +1100,7 @@ function draw() { colorfield(ir,ig,ib); } choicewrite(''); - } + } } choicewrite(''); } @@ -1108,7 +1133,7 @@ function recursechange() { if (rform.recurse[i].value == 1) { colnum++; } - pmarker = pmarkerst+'_'+pparm+'&'+colnum; + pmarker = pmarkerst+'_'+pparm+'&'+colnum; } } } @@ -1168,7 +1193,7 @@ function init() { var doneproctorRegExp = /_done(|\:[^\:]+\:)_proctor/; var proctorkeyRegExp = /^(\d+)_(.+)$/; var donetextRegExp = /\:([^\:]+)\:/; - var markerRegExp = /^(.+)_([A-Za-z0-9]+)\&(\d+)$/; + var markerRegExp = /^(.+)_([A-Za-z0-9]+)\&(\d+)$/; var namevalue=this.window.location.search.split('&'); namevalue[0]=namevalue[0].substr(1,namevalue[0].length-1); @@ -1179,10 +1204,10 @@ function init() { if (pair[0]=='type') { subs=pair[1].split('_'); ptype=subs[0]; pscat=subs[1]; - if (typeof(subs[2])!="undefined") { - pscat+='_'+subs[2]; + if (typeof(subs[2])!="undefined") { + pscat+='_'+subs[2]; } - if ((pscat=='') || (typeof(pscat)=="undefined")) { + if ((pscat=='') || (typeof(pscat)=="undefined")) { pscat='default'; } } @@ -1198,21 +1223,21 @@ function init() { if (pair[0]=='defsec' && pair[1] >= 0 && pair[1] < 60) { defsec=pair[1]; } } - var tablecol = ''; + var tablecol = ''; var ismap = ''; if (markerRegExp.test(pmarker)) { var markerinfo = pmarker.match(markerRegExp); if (markerinfo.length == 4) { pmarkerst = markerinfo[1]; pparm = markerinfo[2]; - tablecol = markerinfo[3]; + tablecol = markerinfo[3]; if (tablecol == 17 || tablecol == 16) { ismap = 1; if (tablecol == 17) { precursive = 1; } pnonreccol = 16; - } else if (tablecol == 11 || tablecol == 10) { + } else if (tablecol == 11 || tablecol == 10) { ismap = 1; if (tablecol == 11) { precursive = 1; @@ -1260,7 +1285,7 @@ function init() { } } else { if (doneRegExp.test(pvalue)) { - var current = pvalue.match(doneRegExp); + var current = pvalue.match(doneRegExp); if (current.length == 2) { var textstr = current[1]; if (textstr != '') { @@ -1278,8 +1303,8 @@ function init() { } svalue=pvalue; if (((ptype=='float') || (ptype=='string') || (ptype=='int')) && - (pscat=='default') && - (typeof(svalue)!="undefined") && + (pscat=='default') && + (typeof(svalue)!="undefined") && (svalue!=0) && (svalue!='')) { pscat='any'; } if (ptype=='tolerance') { @@ -1355,7 +1380,7 @@ function init() { months[10]='November'; months[11]='December'; } - + if (ptype=='int') { sopt('default','Default'); sopt('pos','Positive Integer, Not Zero'); @@ -1384,6 +1409,7 @@ function init() { else if (pscat == 'ip') { sopt('ip','IP Number/Name'); } else if (pscat == 'fileext') { sopt('fileext','File Extension'); } else if (pscat == 'useslots') { sopt('useslots','Slots control access'); } + else if (pscat == 'deeplink') { sopt('deeplink','Deep-linked items'); } else { pscat = 'any'; } sopt('any','String Value'); } @@ -1394,7 +1420,7 @@ function init() { } selwrite(''); - if (ismap = 1) { + if (ismap == 1) { if ((pparm != 'hiddenresource') && (pparm != 'encrypturl')) { selwrite(''); selwrite('Recursive: