[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /interface londocs.pm lonindexer.pm

raeburn raeburn at source.lon-capa.org
Mon May 7 01:15:00 EDT 2012


raeburn		Mon May  7 05:15:00 2012 EDT

  Modified files:              (Branch: version_2_11_X)
    /loncom/interface	londocs.pm lonindexer.pm 
  Log:
  - For 2.11
    Wishlist not in 2.11.
  
  
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.484.2.1 loncom/interface/londocs.pm:1.484.2.2
--- loncom/interface/londocs.pm:1.484.2.1	Mon May  7 02:19:44 2012
+++ loncom/interface/londocs.pm	Mon May  7 05:14:59 2012
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Documents
 #
-# $Id: londocs.pm,v 1.484.2.1 2012/05/07 02:19:44 raeburn Exp $
+# $Id: londocs.pm,v 1.484.2.2 2012/05/07 05:14:59 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2540,7 +2540,6 @@
                 'upld' => 'Import Document',
                 'srch' => 'Search',
                 'impo' => 'Import',
-		'wish' => 'Import from Wishlist',
                 'selm' => 'Select Map',
                 'load' => 'Load Map',
                 'reco' => 'Recover Deleted Documents',
@@ -2608,7 +2607,6 @@
 	my @simpleeditdefaultforma = ( 
 	{ '<img class="LC_noBorder LC_middle" src="/res/adm/pages/src.png" alt="'.$lt{srch}.'"  onclick="javascript:groupsearch()" />' => "$uploadtag<a class='LC_menubuttons_link' href='javascript:groupsearch()'>$lt{'srch'}</a>" },
 	{ '<img class="LC_noBorder LC_middle" src="/res/adm/pages/res.png" alt="'.$lt{impo}.'"  onclick="javascript:groupimport();"/>' => "<a class='LC_menubuttons_link' href='javascript:groupimport();'>$lt{'impo'}</a>$help{'Importing_LON-CAPA_Resource'}" },
-	{ '<img class="LC_noBorder LC_middle" src="/res/adm/pages/wishlist.png" alt="'.$lt{wish}.'" onclick="javascript:open_Wishlist_Import();" />' => "<a class='LC_menubuttons_link' href='javascript:open_Wishlist_Import();'>$lt{'wish'}</a>" },
 	);
 	$simpleeditdefaultform .= &create_form_ul(&create_list_elements(@simpleeditdefaultforma));
 	$simpleeditdefaultform .=(<<SEDFFORM);
Index: loncom/interface/lonindexer.pm
diff -u loncom/interface/lonindexer.pm:1.213 loncom/interface/lonindexer.pm:1.213.4.1
--- loncom/interface/lonindexer.pm:1.213	Fri Dec  9 01:04:27 2011
+++ loncom/interface/lonindexer.pm	Mon May  7 05:15:00 2012
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Directory Indexer
 #
-# $Id: lonindexer.pm,v 1.213 2011/12/09 01:04:27 www Exp $
+# $Id: lonindexer.pm,v 1.213.4.1 2012/05/07 05:15:00 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -166,7 +166,6 @@
        $r->print(&Apache::loncommon::start_page(undef,$js,
 						{'only_body'   =>1,
                                                  'add_modal' => 1,
-                                                 'add_wishlist' => 1,
 						 'add_entries' =>
 						     {'onload' => "load();"},}
 						).
@@ -417,7 +416,7 @@
         if ($env{'form.catalogmode'}) {
             # "Popup mode"
             $r->print(&Apache::loncommon::start_page('Browse published resources',$js,
-                                                     {'only_body' => 1, 'add_wishlist'=>1, 'add_modal' =>1, 
+                                                     {'only_body' => 1, 'add_modal' =>1, 
                                                       'domain' => $headerdom,}));
         } else {
             # Only display page header and breadcrumbs in non-popup mode
@@ -592,7 +591,6 @@
         $r->print(&Apache::loncommon::start_data_table("LC_tableBrowseRes")
                  .&Apache::loncommon::start_data_table_header_row());
 	$r->print("<th $colspan>".&mt('Name')."</th>\n");
-	$r->print("<th></th>\n");
 	$r->print("<th>".&mt('Title')."</th>\n") 
 	    if ($hash{'display_attrs_0'} == 1);
 	$r->print('<th class="LC_right">'.&mt("Size")." (".&mt("bytes").") ".
@@ -939,7 +937,7 @@
 	$r->print ('<a href="#" onclick="document.dirpathUP.submit()"><img src="'.$iconpath.'arrow.up.gif"');
 	$r->print (' alt="'.$msg.'" class="LC_fileicon" />'.
 		   "\n");
-	$r->print(&mt("Up")."</a></form></td><td>$tabtag");
+	$r->print(&mt("Up")."</a></form>$tabtag");
         $r->print(&Apache::loncommon::end_data_table_row());
 	return OK;
     }
@@ -974,7 +972,7 @@
 	    $r->print("<br />(".&Apache::lonnet::domain($listname,'description').
 		      ")");
 	}
-	$r->print("</form></td><td>$tabtag");
+	$r->print("</form>$tabtag");
          $r->print(&Apache::loncommon::end_data_table_row());
 	return OK;
 
@@ -1006,12 +1004,7 @@
         $r->print ($listname.'</a>');
 
         if (defined($plainname) && $plainname) { $r->print(" ($plainname) "); }
-# Wishlistlink
-        $r->print('</form></td><td><a href="javascript:;" '.
-                  'title="'.&mt('Set a link for this folder to wishlist').'" '.
-                  'onclick="set_wishlistlink('."'$plainname','$startdir$listname'".')">'.
-                  '<img class="LC_icon" src="/res/adm/pages/wishlist.png" '.
-                  'alt="'.&mt('set wishlistlink').'" style="width:22px;"/></a>'.$tabtag);
+        $r->print('</form></td>');
         $r->print(&Apache::loncommon::end_data_table_row());
         return OK;
     }
@@ -1102,12 +1095,6 @@
 	    $r->print('</form>');
 	}
 	$r->print("</td>\n");
-# Wishlistlink
-        $r->print('<td><a href="javascript:;" title="'.&mt('Set a link for this resource to wishlist').'" '.
-                  'onclick="set_wishlistlink('."'".&Apache::lonnet::gettitle($filelink).
-                  "','$startdir$listname'".')">'.
-                  '<img class="LC_icon" src="/res/adm/pages/wishlist.png" '.
-                  'alt="'.&mt('set wishlistlink').'" style="width:22px;"/></a></td>');
 	if ($hash{'display_attrs_0'} == 1) {
 	    $r->print('<td> '.($title eq '' ? ' ' : $title).
 		      ' </td>'."\n");
@@ -1256,12 +1243,7 @@
                   .$location.'/'.$icon.'" />'
                   ."\n");
 	$r->print ("$listname</a></form>");
-# Wishlistlink
-        $r->print('</td><td><a href="javascript:;" '.
-                  'title="'.&mt('Set a link for this folder to wishlist').'" '.
-                  'onclick="set_wishlistlink('."'$listname','$startdir$listname'".')">'.
-                  '<img class="LC_icon" src="/res/adm/pages/wishlist.png" '.
-                  'alt="'.&mt('set wishlistlink').'" style="width:22px;"/></a></td>');
+        $r->print('</td>');
 # Attributes
 	my $filelink = $startdir.$filecom[0].'/default';
 




More information about the LON-CAPA-cvs mailing list