--- loncom/interface/loncommon.pm 2004/07/03 19:12:41 1.195 +++ loncom/interface/loncommon.pm 2004/07/19 17:50:53 1.200 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.195 2004/07/03 19:12:41 albertel Exp $ +# $Id: loncommon.pm,v 1.200 2004/07/19 17:50:53 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -250,6 +250,8 @@ of the element the selection from the se =cut sub browser_and_searcher_javascript { + my ($mode)=@_; + if (!defined($mode)) { $mode='edit'; } my $resurl=&lastresurl(); return <". + "$text"; + } + $template .= <<"ENDTEMPLATE"; (Help Menu) ENDTEMPLATE + if ($text ne '') { $template.='' }; return $template; } @@ -1778,9 +1787,11 @@ sub screenname { # ------------------------------------------------------------- Message Wrapper sub messagewrapper { - my ($link,$un,$do)=@_; + my ($link,$username,$domain)=@_; return -"$link"; + ''.$link.''; } # --------------------------------------------------------------- Notes Wrapper @@ -1793,8 +1804,8 @@ sub noteswrapper { sub aboutmewrapper { my ($link,$username,$domain,$target)=@_; - return "$link"; + return ''.$link.''; } # ------------------------------------------------------------ Syllabus Wrapper @@ -1874,6 +1885,9 @@ returns description of a specified copyr sub copyrightdescription { return &mt($cprtag{shift(@_)}); } + +=pod + =item * source_copyrightids() returns list of all source copyrights