version 1.25, 2004/07/02 09:41:07
|
version 1.26, 2005/01/05 17:38:27
|
Line 26
|
Line 26
|
# http://www.lon-capa.org/ |
# http://www.lon-capa.org/ |
# |
# |
# |
# |
# (Publication Handler |
|
# |
|
# (TeX Content Handler |
|
# |
|
# YEAR=2000 |
|
# 05/29/00,05/30,10/11 Gerd Kortemeyer) |
|
# |
|
# 11/28,11/29,11/30,12/01,12/02,12/04,12/23 Gerd Kortemeyer |
|
# YEAR=2001 |
|
# 03/23 Guy Albertelli |
|
# 03/24,03/29 Gerd Kortemeyer) |
|
# |
|
# 03/31,04/03,05/02,05/09,06/23,08/20 Gerd Kortemeyer |
|
# |
|
### |
### |
|
|
package Apache::lonretrieve; |
package Apache::lonretrieve; |
Line 74 sub phaseone {
|
Line 60 sub phaseone {
|
'<input type=hidden name=phase value=two>'. |
'<input type=hidden name=phase value=two>'. |
'<table border=2><tr><th>'.&mt('Select').'</th><th>'. |
'<table border=2><tr><th>'.&mt('Select').'</th><th>'. |
&mt('Version').'</th>'. |
&mt('Version').'</th>'. |
'<th>'.&mt('Became this version on ...').'</th>'. |
'<th>'.&mt('Published on ...').'</th>'. |
'<th>'.&mt('Metadata').'</th></tr>'); |
'<th>'.&mt('Metadata').'</th></tr>'); |
my $filename; |
my $filename; |
opendir(DIR,$resdir); |
opendir(DIR,$resdir); |
while ($filename=readdir(DIR)) { |
while ($filename=readdir(DIR)) { |
if ($filename=~/^\Q$main\E\.(\d+)\.\Q$suffix\E$/) { |
if ($filename=~/^\Q$main\E\.(\d+)\.\Q$suffix\E$/) { |
my $version=$1; |
my $version=$1; |
my ($rdev,$rino,$rmode,$rnlink, |
my $rmtime=&Apache::lonnet::metadata($resdir.'/'.$filename,'lastrevisiondate'); |
$ruid,$rgid,$rrdev,$rsize, |
|
$ratime,$rmtime,$rctime, |
|
$rblksize,$rblocks)=stat($resdir.'/'.$filename); |
|
$r->print('<tr><td><input type=radio name=version value="'. |
$r->print('<tr><td><input type=radio name=version value="'. |
$version.'"></td><th>'.$version.'</th><td>'. |
$version.'"></td><td>'.&mt('Previously published version').' '.$version.'</td><td>'. |
localtime($rmtime).'</td><td>'. |
localtime($rmtime).'</td><td>'. |
'<a href="'.$urldir.$filename.'.meta" target=cat>'. |
'<a href="'.$urldir.$filename.'.meta" target=cat>'. |
&mt('Metadata Version').' '.$version.'</a>'); |
&mt('Metadata Version').' '.$version.'</a>'); |
Line 101 sub phaseone {
|
Line 84 sub phaseone {
|
} |
} |
} |
} |
closedir(DIR); |
closedir(DIR); |
my ($rdev,$rino,$rmode,$rnlink, |
my $rmtime=&Apache::lonnet::metadata($resfn,'lastrevisiondate'); |
$ruid,$rgid,$rrdev,$rsize, |
|
$ratime,$rmtime,$rctime, |
|
$rblksize,$rblocks)=stat($resfn); |
|
$r->print('<tr><td><input type=radio name=version value="new"></td>'. |
$r->print('<tr><td><input type=radio name=version value="new"></td>'. |
'<th>'.&mt('Current').'</th><td>'.localtime($rmtime). |
'<th>'.&mt('Currently public version').'</th><td>'.localtime($rmtime). |
'</td><td><a href="'.$urldir.$main.'.'.$suffix.'.meta" target=cat>'. |
'</td><td><a href="'.$urldir.$main.'.'.$suffix.'.meta" target=cat>'. |
&mt('Metadata current version').'</a>'); |
&mt('Metadata current version').'</a>'); |
if (&Apache::loncommon::fileembstyle($suffix) eq 'ssi') { |
if (&Apache::loncommon::fileembstyle($suffix) eq 'ssi') { |