--- loncom/interface/loncommon.pm 2003/10/05 00:44:44 1.126 +++ loncom/interface/loncommon.pm 2003/11/04 19:01:01 1.142 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.126 2003/10/05 00:44:44 www Exp $ +# $Id: loncommon.pm,v 1.142 2003/11/04 19:01:01 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -69,6 +69,7 @@ use Apache::Constants qw(:common :http : use Apache::lonmsg(); use Apache::lonmenu(); use Apache::lonlocal; +use HTML::Entities; my $readit; @@ -274,7 +275,7 @@ of the element the selection from the se sub browser_and_searcher_javascript { return < var stdeditbrowser; function opencrsbrowser(formname,uname,udom) { @@ -373,6 +381,12 @@ sub coursebrowser_javascript { url += 'filter='+filter+'&'; } } + var domainfilter='$domainfilter'; + if (domainfilter != null) { + if (domainfilter != '') { + url += 'domainfilter='+domainfilter+'&'; + } + } url += 'form=' + formname + '&cnumelement='+uname+ '&cdomelement='+udom; var title = 'Course_Browser'; @@ -768,7 +782,13 @@ See lonrights.pm for an example invocati sub select_form { my ($def,$name,%hash) = @_; my $selectform = "