version 1.250, 2013/05/03 14:00:58
|
version 1.254, 2014/06/22 19:46:48
|
Line 389 sub select_course {
|
Line 389 sub select_course {
|
&mt('You can choose to transfer data from the added fields to the "Notes" field if you are planning to change the course association.').'<br /><br />'. |
&mt('You can choose to transfer data from the added fields to the "Notes" field if you are planning to change the course association.').'<br /><br />'. |
&Apache::loncommon::start_data_table(). |
&Apache::loncommon::start_data_table(). |
&Apache::loncommon::start_data_table_header_row(). |
&Apache::loncommon::start_data_table_header_row(). |
'<th>Copy to notes?</th>'."\n". |
'<th>'.&mt('Copy to notes?').'</th>'."\n". |
'<th>Field name</th>'."\n". |
'<th>'.&mt('Field Name').'</th>'."\n". |
'<th>Values</th>'."\n". |
'<th>'.&mt('Values').'</th>'."\n". |
&Apache::loncommon::end_data_table_header_row(). |
&Apache::loncommon::end_data_table_header_row(). |
$transfernotes. |
$transfernotes. |
&Apache::loncommon::end_data_table().'<br />'; |
&Apache::loncommon::end_data_table().'<br />'; |
Line 455 sub prettyprint {
|
Line 455 sub prettyprint {
|
} |
} |
# MIME |
# MIME |
if ($type eq 'mime') { |
if ($type eq 'mime') { |
return '<img src="'.&Apache::loncommon::icon($value).'" /> '. |
return '<img src="'.&Apache::loncommon::icon($value).'" alt="" /> '. |
&Apache::loncommon::filedescription($value); |
&Apache::loncommon::filedescription($value); |
} |
} |
# Person |
# Person |
Line 763 sub pageheader {
|
Line 763 sub pageheader {
|
sub handler { |
sub handler { |
my $r=shift; |
my $r=shift; |
&Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, |
&Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, |
['currentpath','changecourse']); |
['currentpath','changecourse','modal']); |
my $uri=$r->uri; |
my $uri=$r->uri; |
# |
# |
# Set document type |
# Set document type |
Line 778 sub handler {
|
Line 778 sub handler {
|
|
|
if ($env{'request.state'} eq 'construct') { |
if ($env{'request.state'} eq 'construct') { |
&Apache::lonhtmlcommon::add_breadcrumb({ |
&Apache::lonhtmlcommon::add_breadcrumb({ |
'text' => 'Construction Space', |
'text' => 'Authoring Space', |
'href' => &Apache::loncommon::authorspace($uri), |
'href' => &Apache::loncommon::authorspace($uri), |
}); |
}); |
} |
} |
Line 829 sub handler {
|
Line 829 sub handler {
|
$r->print(&pageheader()); |
$r->print(&pageheader()); |
&present_editable_metadata($r,$uri,'groups'); |
&present_editable_metadata($r,$uri,'groups'); |
} elsif ($uri=~m|^/priv|) { |
} elsif ($uri=~m|^/priv|) { |
# Construction space |
# Authoring space |
&Apache::lonhtmlcommon::add_breadcrumb({ |
&Apache::lonhtmlcommon::add_breadcrumb({ |
'text' => 'Edit Metadata', |
'text' => 'Edit Metadata', |
'href' => '', |
'href' => '', |
Line 854 sub handler {
|
Line 854 sub handler {
|
'only_body' => 1,}) |
'only_body' => 1,}) |
.'<h1>'.&mt('Metadata').'</h1>' |
.'<h1>'.&mt('Metadata').'</h1>' |
); |
); |
|
if ($env{'form.modal'}) { |
|
my $width = 500; |
|
my $height = 400; |
|
my $machine = &Apache::lonnet::absolute_url(); |
|
$r->print(&Apache::loncommon::nicescroll_javascript('metadatawrapper', |
|
{cursorcolor => '#00F', |
|
railalign => 'right', |
|
railoffset => '{top:5,left:40}'}, |
|
undef,1,$machine.$uri)); |
|
$r->print('<div id="metadatawrapper" style="height:'.$height.'px; width:'.$width.'px; overflow: auto;">'); |
|
} |
&present_uneditable_metadata($r,$uri); |
&present_uneditable_metadata($r,$uri); |
|
if ($env{'form.modal'}) { |
|
$r->print('</div>'); |
|
} |
} |
} |
$r->print(&Apache::loncommon::end_page()); |
$r->print(&Apache::loncommon::end_page()); |
return OK; |
return OK; |
Line 1122 sub print_dynamic_metadata {
|
Line 1136 sub print_dynamic_metadata {
|
if (exists($dynmeta{'stats'})) { |
if (exists($dynmeta{'stats'})) { |
my $table=&Apache::loncommon::start_data_table() |
my $table=&Apache::loncommon::start_data_table() |
.&Apache::loncommon::start_data_table_header_row() |
.&Apache::loncommon::start_data_table_header_row() |
|
.'<th>'.&mt('Domain').'</th>' |
.'<th>'.&mt('Course').'</th>' |
.'<th>'.&mt('Course').'</th>' |
.'<th>'.&mt('Section(s)').'</th>' |
.'<th>'.&mt('Section(s)').'</th>' |
.'<th>'.&mt('Num Students').'</th>' |
.'<th>'.&mt('Num Students').'</th>' |
Line 1142 sub print_dynamic_metadata {
|
Line 1157 sub print_dynamic_metadata {
|
next; |
next; |
} |
} |
$table .= &Apache::loncommon::start_data_table_row(); |
$table .= &Apache::loncommon::start_data_table_row(); |
|
$table .= |
|
'<td><span class="LC_nobreak">'.$courseinfo{'domain'}.'</span></td>'; |
$table .= |
$table .= |
'<td><span class="LC_nobreak">'.$courseinfo{'description'}.'</span></td>'; |
'<td><span class="LC_nobreak">'.$courseinfo{'description'}.'</span></td>'; |
$table .= |
$table .= |
Line 1292 sub print_dynamic_metadata {
|
Line 1309 sub print_dynamic_metadata {
|
##################################################### |
##################################################### |
sub present_editable_metadata { |
sub present_editable_metadata { |
my ($r,$uri,$file_type) = @_; |
my ($r,$uri,$file_type) = @_; |
# Construction Space Call |
# Authoring Space Call |
# Header |
# Header |
my $disuri=$uri; |
my $disuri=$uri; |
my $fn=&Apache::lonnet::filelocation('',$uri); |
my $fn=&Apache::lonnet::filelocation('',$uri); |