[LON-CAPA-cvs] cvs: loncom /homework/templates DropBox.problem DropBox.problem.meta /interface londocs.pm doc/loncapafiles loncapafiles.lpml
www
lon-capa-cvs@mail.lon-capa.org
Fri, 27 Jan 2006 02:17:27 -0000
www Thu Jan 26 21:17:27 2006 EDT
Modified files:
/doc/loncapafiles loncapafiles.lpml
/loncom/homework/templates DropBox.problem DropBox.problem.meta
/loncom/interface londocs.pm
Log:
Bug #4596: Drop Box
Index: doc/loncapafiles/loncapafiles.lpml
diff -u doc/loncapafiles/loncapafiles.lpml:1.467 doc/loncapafiles/loncapafiles.lpml:1.468
--- doc/loncapafiles/loncapafiles.lpml:1.467 Tue Dec 20 11:25:53 2005
+++ doc/loncapafiles/loncapafiles.lpml Thu Jan 26 21:16:57 2006
@@ -2,7 +2,7 @@
"http://lpml.sourceforge.net/DTD/lpml.dtd">
<!-- loncapafiles.lpml -->
-<!-- $Id: loncapafiles.lpml,v 1.467 2005/12/20 16:25:53 www Exp $ -->
+<!-- $Id: loncapafiles.lpml,v 1.468 2006/01/27 02:16:57 www Exp $ -->
<!--
@@ -1126,6 +1126,23 @@
</description>
</file>
<file>
+<source>loncom/homework/templates/DropBox.problem</source>
+<target dist='default'>home/httpd/html/res/lib/templates/DropBox.problem</target>
+<categoryname>interface file</categoryname>
+<description>
+Generic resource for DOCS "Drop Box"
+</description>
+</file>
+<file>
+<source>loncom/homework/templates/DropBox.problem.meta</source>
+<target dist='default'>home/httpd/html/res/lib/templates/DropBox.problem.meta</target>
+<categoryname>interface file</categoryname>
+<description>
+Meta file for generic resource for DOCS "Drop Box"
+</description>
+</file>
+
+<file>
<source>loncom/homework/templates/examupload.problem</source>
<target dist='default'>home/httpd/html/res/lib/templates/examupload.problem</target>
<categoryname>interface file</categoryname>
Index: loncom/homework/templates/DropBox.problem
diff -u loncom/homework/templates/DropBox.problem:1.1 loncom/homework/templates/DropBox.problem:1.2
--- loncom/homework/templates/DropBox.problem:1.1 Mon Jan 23 17:18:51 2006
+++ loncom/homework/templates/DropBox.problem Thu Jan 26 21:17:20 2006
@@ -1,6 +1,6 @@
<problem>
<startouttext />
-Enter the question text here. Upload files below.
+<displaytitle />
<endouttext />
<essayresponse id="upload">
<responseparam name="uploadedfiletypes" default="doc,xls,ppt,pdf,txt" type="string_fileext" description="Allowed File Extensions for Uploaded Files" />
Index: loncom/homework/templates/DropBox.problem.meta
diff -u loncom/homework/templates/DropBox.problem.meta:1.1 loncom/homework/templates/DropBox.problem.meta:1.2
--- loncom/homework/templates/DropBox.problem.meta:1.1 Mon Jan 23 17:18:51 2006
+++ loncom/homework/templates/DropBox.problem.meta Thu Jan 26 21:17:20 2006
@@ -1 +1,14 @@
-<title>Essay Response</title>
+<copyright>default</copyright>
+<creationdate>1138327352</creationdate>
+<lastrevisiondate>1138327352</lastrevisiondate>
+<mime>problem</mime>
+<parameter part="0" id="upload" name="uploadedfiletypes" type="string_fileext" default="doc,xls,ppt,pdf,txt" display="Allowed File Extensions for Uploaded Files [Part: 0_upload]"></parameter>
+<parameter part="0" id="upload" package="essayresponse"></parameter>
+<parameter part="0" package="part"></parameter>
+<responseorder>upload</responseorder>
+<sourceavail>closed</sourceavail>
+<stores part="0" name="awarded" type="float" display="Partial Credit Factor [Part: 0]"></stores>
+<stores part="0" name="solved" type="string" display="Problem Status [Part: 0]"></stores>
+<stores part="0" name="tries" type="int_zeropos" display="Number of Attempts [Part: 0]"></stores>
+<subject></subject>
+<title>Drop Box</title>
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.218 loncom/interface/londocs.pm:1.219
--- loncom/interface/londocs.pm:1.218 Mon Jan 16 18:42:39 2006
+++ loncom/interface/londocs.pm Thu Jan 26 21:17:26 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: londocs.pm,v 1.218 2006/01/16 23:42:39 albertel Exp $
+# $Id: londocs.pm,v 1.219 2006/01/27 02:17:26 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2263,6 +2263,15 @@
}
}
+function makedropbox() {
+ var title=prompt('Listed Title for the Drop Box');
+ if (title) {
+ this.document.forms.newdropbox.importdetail.value=
+ title+'=/res/lib/templates/DropBox.problem';
+ this.document.forms.newdropbox.submit();
+ }
+}
+
function makebulboard() {
var title=prompt('Listed Title for the Bulletin Board');
if (title) {
@@ -2478,6 +2487,7 @@
'navc' => 'Navigate Contents',
'sipa' => 'Simple Page',
'sipr' => 'Simple Problem',
+ 'drbx' => 'Drop Box',
'scuf' => 'Score Upload Form',
'bull' => 'Bulletin Board',
'mypi' => 'My Personal Info',
@@ -2696,6 +2706,14 @@
onClick="javascript:makesmpproblem();" />$help{'Simple Problem'}
</nobr>
</form>
+<br /><form action="/adm/coursedocs" method="post" name="newdropbox">
+$uploadtag
+<input type=hidden name="importdetail" value="">
+<nobr>
+<input name="newdropbox" type="button" value="$lt{'drbx'}"
+onClick="javascript:makedropbox();" />
+</nobr>
+</form>
<br /><form action="/adm/coursedocs" method="post" name="newexamupload">
$uploadtag
<input type=hidden name="importdetail" value="">