[LON-CAPA-cvs] cvs: loncom /imspackages imsimportdocs.pm

raeburn raeburn at source.lon-capa.org
Wed May 2 13:06:46 EDT 2018


raeburn		Wed May  2 17:06:46 2018 EDT

  Modified files:              
    /loncom/imspackages	imsimportdocs.pm 
  Log:
  - Bug 6754 LON-CAPA as LTI Provider
    - LTI launch of LON-CAPA may be for display within an iframe.
  
  
Index: loncom/imspackages/imsimportdocs.pm
diff -u loncom/imspackages/imsimportdocs.pm:1.36 loncom/imspackages/imsimportdocs.pm:1.37
--- loncom/imspackages/imsimportdocs.pm:1.36	Sun Nov  5 20:04:30 2017
+++ loncom/imspackages/imsimportdocs.pm	Wed May  2 17:06:45 2018
@@ -1,6 +1,6 @@
 # The LearningOnline Network with CAPA
 #
-# $Id: imsimportdocs.pm,v 1.36 2017/11/05 20:04:30 raeburn Exp $
+# $Id: imsimportdocs.pm,v 1.37 2018/05/02 17:06:45 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -559,8 +559,12 @@
            '<input type="button" value="'
           .&mt('re-initializing Course')
           .'" onclick="javascript:init(this.form)" />';
+    my $windowname = 'loncapaclient';
+    if ($env{'request.lti.login'}) {
+        $windowname .= 'lti';
+    }
     $r->print(
-        '<form method="post" action="/adm/roles" target="loncapaclient" name="importDone">'
+        '<form method="post" action="/adm/roles" target="'.$windowname.'" name="importDone">'
        .'<input type="hidden" name="orgurl" value="/adm/coursedocs" />'
        .'<input type="hidden" name="selectrole" value="1" />'
        .'<input type="hidden" name="'.$env{'request.role'}.'" value="1" />'




More information about the LON-CAPA-cvs mailing list