--- loncom/interface/loncommon.pm 2011/05/03 21:38:40 1.1003
+++ loncom/interface/loncommon.pm 2011/05/27 18:36:51 1.1006
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.1003 2011/05/03 21:38:40 www Exp $
+# $Id: loncommon.pm,v 1.1006 2011/05/27 18:36:51 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -438,21 +438,21 @@ ENDSTDBRW
sub resourcebrowser_javascript {
unless ($env{'request.course.id'}) { return ''; }
- return (<<'ENDSTDBRW');
+ return (<<'ENDRESBRW');
-ENDSTDBRW
+ENDRESBRW
}
sub selectstudent_link {
@@ -483,6 +483,19 @@ sub selectstudent_link {
return '';
}
+sub selectresource_link {
+ my ($form,$reslink,$arg)=@_;
+
+ my $callargs = "'".&Apache::lonhtmlcommon::entity_encode($form)."','".
+ &Apache::lonhtmlcommon::entity_encode($reslink)."'";
+ unless ($env{'request.course.id'}) { return $arg; }
+ return ''.
+ ''.
+ $arg.'';
+}
+
+
+
sub authorbrowser_javascript {
return <<"ENDAUTHORBRW";