--- loncom/homework/structuretags.pm 2001/11/05 22:49:14 1.72 +++ loncom/homework/structuretags.pm 2002/01/11 16:32:29 1.75 @@ -1,5 +1,30 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document +# +# $Id: structuretags.pm,v 1.75 2002/01/11 16:32:29 matthew Exp $ +# +# Copyright Michigan State University Board of Trustees +# +# This file is part of the LearningOnline Network with CAPA (LON-CAPA). +# +# LON-CAPA is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# LON-CAPA is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with LON-CAPA; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# /home/httpd/html/adm/gpl.txt +# +# http://www.lon-capa.org/ +# # 2/19 Guy # 6/26/2001 fixed extra web display at end of tags # 8/17,8/18,8/20 Gerd Kortemeyer @@ -127,6 +152,9 @@ sub start_problem { @Apache::inputtags::responselist = (); @Apache::inputtags::previous=(); &initialize_storage(); + if ($target eq 'web') { + &Apache::lonhomework::showhash(%Apache::lonhomework::history); + } $Apache::lonhomework::type=&Apache::lonnet::EXT('resource.0.type'); &Apache::lonxml::debug("Found this to be of type :$Apache::lonhomework::type:"); if ($Apache::lonhomework::type eq '') { @@ -209,8 +237,10 @@ sub start_problem { $result.= ' + Random Seed: +
'; } @@ -234,6 +264,7 @@ sub start_problem { +

'; @@ -553,8 +584,7 @@ sub end_startouttext { ." ". &Apache::edit::insertlist($target,$token). - " -\n". + &Apache::edit::end_row().&Apache::edit::start_spanning_row()."\n". &Apache::edit::editfield($token->[1],$text,"",50,4); } if ($target eq 'modified') {