--- rat/lonratmenu.pm 2009/12/04 15:13:04 1.15
+++ rat/lonratmenu.pm 2022/05/27 18:00:59 1.18.8.4.2.1
@@ -2,7 +2,7 @@
# Build menu bar for Advanced RAT. Uses javascript code originally in
# static file: rat/client/code.html, now in rat/client/ratcode.js
#
-# $Id: lonratmenu.pm,v 1.15 2009/12/04 15:13:04 bisitz Exp $
+# $Id: lonratmenu.pm,v 1.18.8.4.2.1 2022/05/27 18:00:59 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -46,9 +46,16 @@ sub handler {
my $readfile=$r->uri;
$readfile=~s/\/loadonly\/adveditmenu$//;
+ my $target = '_top';
+ if ((($env{'request.lti.login'}) && ($env{'request.lti.target'} eq 'iframe')) ||
+ (($env{'request.deeplink.login'}) && ($env{'request.deeplink.target'}))) {
+ $target = '_parent';
+ }
+
# Breadcrumbs
- my $brcrum = [{'href' => &Apache::loncommon::authorspace(),
- 'text' => 'Construction Space'},
+ my $brcrum = [{'href' => &Apache::loncommon::authorspace($r->uri),
+ 'text' => 'Authoring Space',
+ 'target' => $target},
{'href' => '',
'text' => 'RAT'},
{'href' => '',
@@ -108,8 +115,8 @@ sub handler {
''
.&mt('Import').'')
.&Apache::lonhtmlcommon::add_item_funclist(
- ''
- .&mt('Import Bookmarks').'')
+ ''
+ .&mt('Import from Stored Links').'')
.&Apache::lonhtmlcommon::add_item_funclist(
''
.&mt('Copy').'')
@@ -132,6 +139,7 @@ sub handler {
# Print Advanced RAT page header
$r->send_http_header('text/html');
+ my $frameset = 1;
$r->print(
&Apache::loncommon::start_page(
@@ -141,7 +149,7 @@ sub handler {
'bread_crumbs' => $brcrum,})
.&Apache::loncommon::head_subbox(
- &Apache::loncommon::CSTR_pageheader()
+ &Apache::loncommon::CSTR_pageheader('',$frameset)
.$functions)
.&Apache::loncommon::end_page()