[LON-CAPA-cvs] cvs: loncom /homework essayresponse.pm

banghart lon-capa-cvs@mail.lon-capa.org
Tue, 26 Oct 2004 21:27:10 -0000


banghart		Tue Oct 26 17:27:10 2004 EDT

  Modified files:              
    /loncom/homework	essayresponse.pm 
  Log:
  	Echo previously selected portfolio files
  
  
Index: loncom/homework/essayresponse.pm
diff -u loncom/homework/essayresponse.pm:1.42 loncom/homework/essayresponse.pm:1.43
--- loncom/homework/essayresponse.pm:1.42	Mon Oct 25 17:41:58 2004
+++ loncom/homework/essayresponse.pm	Tue Oct 26 17:27:10 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # essay (ungraded) style responses
 #
-# $Id: essayresponse.pm,v 1.42 2004/10/25 21:41:58 banghart Exp $
+# $Id: essayresponse.pm,v 1.43 2004/10/26 21:27:10 banghart Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -75,7 +75,11 @@
                 '<br />'.
                 '<input type="text" size="50" name="HWPORT'.$part.'_'.$id.'" value="" />'.
 		'<br />';
-           if ($uploadedfile) {
+	    if ($portfile=~/[^\s]/){
+	        $result.="Portfolio files previously selected: <strong>".$Apache::lonhomework::history{"resource.$part.$id.portfiles"}."</strong><br />";
+	    }
+
+            if ($uploadedfile) {
 	       my $url=$Apache::lonhomework::history{"resource.$part.$id.uploadedurl"};
 	       push (@Apache::lonxml::extlinks,$url);
 	       &Apache::lonnet::allowuploaded('/adm/essayresponse',$url);