--- loncom/interface/lonblockingmenu.pm 2020/09/29 18:43:01 1.14.2.3.4.3 +++ loncom/interface/lonblockingmenu.pm 2016/10/22 01:49:10 1.20 @@ -2,7 +2,7 @@ # Routines for configuring blocking of access to collaborative functions, # and specific resources during an exam # -# $Id: lonblockingmenu.pm,v 1.14.2.3.4.3 2020/09/29 18:43:01 raeburn Exp $ +# $Id: lonblockingmenu.pm,v 1.20 2016/10/22 01:49:10 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -116,7 +116,7 @@ Outputs: 2 $readonly - true if modification of blocking events is prohibited. $allowed - true if blocking events information can be shown. - + =item &get_timed_items() @@ -252,7 +252,7 @@ Inputs: 8 - $blockcount - number of existing blocking events in course - $readonly - if true, modification not allowed. - + Output: None @@ -318,16 +318,13 @@ Creates web form elements used to select items in the course for use in an exam block of type: "Triggered by Activating Timer". -Inputs: 8 (four required, last four optional) +Inputs: 7 (three required, last four optional) - $intervals - Reference to hash of parameters for timed intervals - $parmcount - numeric ID of current block - $navmap - navmaps object - - $context - this will be "accesstimes" if called by lonaccesstimes.pm, - or "blocking" if called internally by lonblockingmenu.pm - - $currkey - current interval (where this is a block already using an interval-based trigger). @@ -342,34 +339,6 @@ Inputs: 8 (four required, last four opti Outputs: 1 - $intervalform - web form elements used to select a time interval -=item &interval_details() - -Creates name/scope of current interval and expandable/collapsible -showing which interval parameters apply to the current folder/resource - -Inputs: 6 - - - $item - course, map url, or resource symb - - - $type - course, map, or resource - - - $url - url of item (null if item is course). - - - $navmap - navmaps object - - - $intervals - Reference to hash of parameters for timed intervals - - - $parmcount - unique ID for current element. - - -Outputs: 2 - - - $itemname - name/scope of interval (timer) parameter - - - $iteminfo - Expandable/collapsible block showing which interval - (timer) parameters affect the current folder or resource. - - =item &trigger_details_toggle() Creates link used to expand item showing information about timer for current @@ -379,7 +348,6 @@ Inputs: 1 - $parmcount - numericID of ex Outputs: 1 - returns HTML for link to display contents of information item - =item &show_timer_path() Display hierarchy of names of folders/sub-folders containing the current @@ -424,21 +392,12 @@ Output: 1 - Javascript (with tags) for functions used to: - toggle visibility of unordered list for display of detailed - information about intervals. -=back +=back =cut @@ -527,7 +486,7 @@ sub handler { $r->print(&Apache::loncourserespicker::create_picker($navmap, 'examblock','resourceblocks',$crstype, \%blockedmaps,\%blockedresources, - $env{'form.block'},'','',undef,undef,$readonly)); + $env{'form.block'},'','',undef,$readonly)); } else { $r->print($errormsg); } @@ -561,8 +520,7 @@ sub handler { ({href=>'/adm/setblock', text=>'Blocking communication/content access'}); - my $js = &blockingmenu_javascript($blockcount). - &details_javascript(); + my $js = &blockingmenu_javascript($blockcount); $r->print( &Apache::loncommon::start_page('Blocking communication/content access',$js). @@ -578,7 +536,6 @@ sub handler { my %lt=&Apache::lonlocal::texthash ( 'cbds' => 'Blocking communication and/or content access during exams', 'prev' => "For the duration of an exam, or a timed quiz, students in this course can be prevented from:", - 'flow' => "For the duration of an exam, or a timed quiz, event-driven interruptions to a student's workflow can be suppressed:", 'blca' => "Blocks can potentially interrupt legitimate communication between $usertype who are also both enrolled in a different LON-CAPA $lctype.", 'pobl' => "Portfolio blocking can impact a student's ability to complete assignments in courses besides your own. Please use this feature wisely.", 'actt' => "Action to take:", @@ -620,24 +577,17 @@ sub handler { '
'.$lt{'blca'}.'
'.$lt{'pobl'}.'