[LON-CAPA-cvs] cvs: doc /loncapafiles loncapafiles.lpml loncom/html/res/adm/pages editops.png loncom/interface lonmenu.pm

raeburn raeburn at source.lon-capa.org
Thu Apr 18 13:53:16 EDT 2024


raeburn		Thu Apr 18 17:53:16 2024 EDT

  Added files:                 
    /loncom/html/res/adm/pages	editops.png 

  Modified files:              
    /loncom/interface	lonmenu.pm 
    /doc/loncapafiles	loncapafiles.lpml 
  Log:
  - Access to Authoring Space Configuration from Functions menu instead of
    Settings in inline menu when Authoring Space accessed in course context.
  
  
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.547 loncom/interface/lonmenu.pm:1.548
--- loncom/interface/lonmenu.pm:1.547	Thu Apr 18 16:42:58 2024
+++ loncom/interface/lonmenu.pm	Thu Apr 18 17:53:15 2024
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines to control the menu
 #
-# $Id: lonmenu.pm,v 1.547 2024/04/18 16:42:58 raeburn Exp $
+# $Id: lonmenu.pm,v 1.548 2024/04/18 17:53:15 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1308,6 +1308,17 @@
 ENDMENUITEMS
                 }
             }
+#
+# Editing options usually accessed via "Settings" in inline menu need to be
+# accessed in a different way, when Authoring Space is accessed in course
+# context
+#
+            if ($env{'request.role'} !~/^(aa|ca|au)/) {
+                my $privfile = &Apache::loncommon::escape_single("/priv/$udom/$uname/$thisdisfn");
+                $menuitems .= (<<ENDMENUITEMS);
+s&7&5&editops.png&Options&edit[_1]&gocstr('/adm/preferences?action=authorsettings','$privfile')&Authoring Space Options
+ENDMENUITEMS
+            }
                 if (ref($bread_crumbs) eq 'ARRAY') {
                     &Apache::lonhtmlcommon::clear_breadcrumbs();
                     foreach my $crumb (@{$bread_crumbs}){
@@ -1526,6 +1537,12 @@
                      'tools', $inlineremote[63]);
             }
             &advtools_crumbs(@inlineremote);
+            #options link/icon in constructions space viewed with course role 
+            if (($env{'request.state'} eq 'construct') &&
+                ($env{'request.role'} !~/^(aa|ca|au)/)) {
+                &Apache::lonhtmlcommon::add_breadcrumb_tool(
+                         'advtools', $inlineremote[75]);
+            }
         }
     } else {
         if ($showprogress) {
@@ -2775,6 +2792,10 @@
         this.document.cstrprint.submit();
         return;
     }
+    if (url == '/adm/preferences?action=authorsettings') {
+        document.location.href=url+'&returnurl='+filename;
+        return;
+    }
     if (url !='') {
         this.document.constspace.filename.value = filename;
         this.document.constspace.action = url;
Index: doc/loncapafiles/loncapafiles.lpml
diff -u doc/loncapafiles/loncapafiles.lpml:1.1055 doc/loncapafiles/loncapafiles.lpml:1.1056
--- doc/loncapafiles/loncapafiles.lpml:1.1055	Sun Apr 14 18:14:22 2024
+++ doc/loncapafiles/loncapafiles.lpml	Thu Apr 18 17:53:16 2024
@@ -2,7 +2,7 @@
  "http://lpml.sourceforge.net/DTD/lpml.dtd">
 <!-- loncapafiles.lpml -->
 
-<!-- $Id: loncapafiles.lpml,v 1.1055 2024/04/14 18:14:22 raeburn Exp $ -->
+<!-- $Id: loncapafiles.lpml,v 1.1056 2024/04/18 17:53:16 raeburn Exp $ -->
 
 <!--
 
@@ -8559,6 +8559,7 @@
 edit-find-replace.png;
 edit-find.png;
 edit-mode-22x22.png;
+editops.png;
 edit-redo.png;
 edit-redo-22x22.png;
 edit-select-all.png;




More information about the LON-CAPA-cvs mailing list