[Koha-cvs] CVS: koha/admin marctagstructure.pl,1.17,1.17.2.1

Owen Leonard oleonard at users.sourceforge.net
Tue Dec 30 17:14:38 CET 2003


Update of /cvsroot/koha/koha/admin
In directory sc8-pr-cvs1:/tmp/cvs-serv27572/admin

Modified Files:
      Tag: rel_2_0
	marctagstructure.pl 
Log Message:
Changes to generated HTML to allow proper validation (&, quoted attributes, etc.)

Index: marctagstructure.pl
===================================================================
RCS file: /cvsroot/koha/koha/admin/marctagstructure.pl,v
retrieving revision 1.17
retrieving revision 1.17.2.1
diff -C2 -r1.17 -r1.17.2.1
*** marctagstructure.pl	21 Oct 2003 15:47:07 -0000	1.17
--- marctagstructure.pl	30 Dec 2003 16:14:34 -0000	1.17.2.1
***************
*** 106,113 ****
  	if ($searchfield) {
  		$template->param(action => "Modify tag",
! 								searchfield => "<input type=hidden name=tagfield value='$searchfield'>$searchfield");
  	} else {
  		$template->param(action => "Add tag",
! 								searchfield => "<input type=text name=tagfield size=5 maxlength=3>");
  	}
  	$template->param(liblibrarian => $data->{'liblibrarian'},
--- 106,113 ----
  	if ($searchfield) {
  		$template->param(action => "Modify tag",
! 								searchfield => "<input type=\"hidden\" name=\"tagfield\" value=\"$searchfield\" />$searchfield");
  	} else {
  		$template->param(action => "Add tag",
! 								searchfield => "<input type=\"text\" name=\"tagfield\" size=\"5\" maxlength=\"3\" />");
  	}
  	$template->param(liblibrarian => $data->{'liblibrarian'},
***************
*** 166,170 ****
  } else { # DEFAULT
  	if  ($searchfield ne '') {
! 		 $template->param(searchfield => "You Searched for <b>$searchfield<b><p>");
  	}
  	my $env;
--- 166,170 ----
  } else { # DEFAULT
  	if  ($searchfield ne '') {
! 		 $template->param(searchfield => "<p>You Searched for <strong>$searchfield<strong></p>");
  	}
  	my $env;
***************
*** 185,190 ****
  		$row_data{authorised_value} = $results->[$i]{'authorised_value'};
  		$row_data{subfield_link} ="marc_subfields_structure.pl?tagfield=".$results->[$i]{'tagfield'};
! 		$row_data{edit} = "$script_name?op=add_form&searchfield=".$results->[$i]{'tagfield'};
! 		$row_data{delete} = "$script_name?op=delete_confirm&searchfield=".$results->[$i]{'tagfield'};
  		$row_data{bgcolor} = $toggle;
  		push(@loop_data, \%row_data);
--- 185,190 ----
  		$row_data{authorised_value} = $results->[$i]{'authorised_value'};
  		$row_data{subfield_link} ="marc_subfields_structure.pl?tagfield=".$results->[$i]{'tagfield'};
! 		$row_data{edit} = "$script_name?op=add_form&amp;searchfield=".$results->[$i]{'tagfield'};
! 		$row_data{delete} = "$script_name?op=delete_confirm&amp;searchfield=".$results->[$i]{'tagfield'};
  		$row_data{bgcolor} = $toggle;
  		push(@loop_data, \%row_data);





More information about the Koha-cvs mailing list