--- loncom/interface/lonwishlist.pm 2012/08/01 19:07:51 1.16 +++ loncom/interface/lonwishlist.pm 2013/04/10 22:12:43 1.17 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Utility-routines for wishlist # -# $Id: lonwishlist.pm,v 1.16 2012/08/01 19:07:51 raeburn Exp $ +# $Id: lonwishlist.pm,v 1.17 2013/04/10 22:12:43 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1098,7 +1098,7 @@ JAVASCRIPT # HTML-Markup for table if in view-mode my $wishlistHTMLview; -my $indent = $indentConst; +my $indent_view = $indentConst; sub wishlistView { my $nodes = shift; @@ -1117,7 +1117,7 @@ sub wishlistView { # entry is a folder if ($n->value()->path() eq '') { - $wishlistHTMLview .= ''. + $wishlistHTMLview .= ''. ''. ''. 'folder'. @@ -1125,7 +1125,7 @@ sub wishlistView { } # entry is a link else { - $wishlistHTMLview .= ''. + $wishlistHTMLview .= ''. 'value()->path()."'".');">'. 'link'. $n->value()->title().''; @@ -1155,9 +1155,9 @@ sub wishlistView { # if the entry is a folder, it could have other entries as content. if it has, call wishlistView for those entries my @children = $n->children(); if ($#children >=0) { - $indent += 20; + $indent_view += 20; &wishlistView(\@children); - $indent -= 20; + $indent_view -= 20; } } } @@ -1165,7 +1165,7 @@ sub wishlistView { # HTML-Markup for table if in edit-mode my $wishlistHTMLedit; -my $indent = $indentConst; +my $indent_edit = $indentConst; sub wishlistEdit { my $nodes = shift; my $curNode = 1; @@ -1200,7 +1200,7 @@ sub wishlistEdit { if ($n->value()->path() eq '') { $wishlistHTMLedit .= ''. - ''. + ''. ''. ''. 'folder'. @@ -1212,7 +1212,7 @@ sub wishlistEdit { else { $wishlistHTMLedit .= ''. - ''. + ''. 'link'. ''. ''; @@ -1242,9 +1242,9 @@ sub wishlistEdit { # if the entry is a folder, it could have other entries as content. if it has, call wishlistEdit for those entries my @children = $n->children(); if ($#children >=0) { - $indent += 20; + $indent_edit += 20; &wishlistEdit(\@children); - $indent -= 20; + $indent_edit -= 20; } } } @@ -1254,7 +1254,7 @@ sub wishlistEdit { # HTML-Markup for table if in move-mode my $wishlistHTMLmove =''. ''.&mt('Top level').''; -my $indent = $indentConst; +my $indent_move = $indentConst; sub wishlistMove { my $nodes = shift; my $marked = shift; @@ -1278,12 +1278,12 @@ sub wishlistMove { # display a radio-button, if the folder was not selected to be moved if (!$isIn) { $wishlistHTMLmove .= ''. - ''; + ''; } # highlight the title, if the folder was selected to be moved else { $wishlistHTMLmove .= ''. - ''; } #arrow- and folder-image, all folders are open, and title @@ -1300,7 +1300,7 @@ sub wishlistMove { } # link-image and title $wishlistHTMLmove .= ''. - ''. + ''. 'value()->path()."'".');" '.$highlight.'>'. 'link'. $n->value()->title().''; @@ -1330,9 +1330,9 @@ sub wishlistMove { # if the entry is a folder, it could have other entries as content. if it has, call wishlistMove for those entries my @children = $n->children(); if ($#children >=0) { - $indent += 20; + $indent_move += 20; &wishlistMove(\@children, $marked); - $indent -= 20; + $indent_move -= 20; } } } @@ -1341,7 +1341,7 @@ sub wishlistMove { # HTML-Markup for table if in import-mode my $wishlistHTMLimport; -my $indent = $indentConst; +my $indent_imp = $indentConst; my $form = 1; sub wishlistImport { my ($nodes,$numskipped) = @_; @@ -1395,7 +1395,7 @@ sub wishlistImport { # entry is a folder if ($n->value()->path() eq '') { - $wishlistHTMLimport .= ''. + $wishlistHTMLimport .= ''. ''. ''. 'folder'. @@ -1403,7 +1403,7 @@ sub wishlistImport { } # entry is a link else { - $wishlistHTMLimport .= ''; + $wishlistHTMLimport .= ''; unless ($nopick{$n->value()->path()}) { $wishlistHTMLimport .= 'value()->path()."'".');">'; } @@ -1436,9 +1436,9 @@ sub wishlistImport { # if the entry is a folder, it could have other entries as content. if it has, call wishlistImport for those entries my @children = $n->children(); if ($#children >=0) { - $indent += 20; + $indent_imp += 20; &wishlistImport(\@children,$numskipped); - $indent -= 20; + $indent_imp -= 20; } } return;