--- loncom/interface/groupsort.pm 2007/07/12 01:04:36 1.58 +++ loncom/interface/groupsort.pm 2007/07/12 19:54:43 1.59 @@ -2,7 +2,7 @@ # The LON-CAPA group sort handler # Allows for sorting prior to import into RAT. # -# $Id: groupsort.pm,v 1.58 2007/07/12 01:04:36 albertel Exp $ +# $Id: groupsort.pm,v 1.59 2007/07/12 19:54:43 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -246,6 +246,7 @@ function finish_import() { placeResourceInLastRow( eval("document.forms.groupsort.title"+num+".value"), eval("document.forms.groupsort.filelink"+num+".value"), + eval("document.forms.groupsort.id"+num+".value"), linkflag ); linkflag=true; @@ -267,9 +268,9 @@ function insertRowInLastRow() { opener.insertrow(opener.maxrow); opener.addobj(opener.maxrow,'e&2'); } -function placeResourceInLastRow (title,url,linkflag) { +function placeResourceInLastRow (title,url,id,linkflag) { opener.mostrecent=opener.newresource(opener.maxrow,2,opener.escape(title), - opener.escape(url),'false','normal'); + opener.escape(url),'false','normal',id); opener.save(); if (linkflag) { opener.joinres(opener.linkmode,opener.mostrecent,0);