[Koha-cvs] koha/acqui.simple addbiblio.pl [dev_week]

Owen Leonard oleonard at athenscounty.lib.oh.us
Wed Oct 4 18:20:14 CEST 2006


CVSROOT:	/sources/koha
Module name:	koha
Branch:		dev_week
Changes by:	Owen Leonard <oleonard>	06/10/04 16:20:14

Modified files:
	acqui.simple   : addbiblio.pl 

Log message:
	Changes to generated HTML markup to improve standards-compliance

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/acqui.simple/addbiblio.pl?cvsroot=koha&only_with_tag=dev_week&r1=1.52.2.40.2.6&r2=1.52.2.40.2.7

Patches:
Index: addbiblio.pl
===================================================================
RCS file: /sources/koha/koha/acqui.simple/Attic/addbiblio.pl,v
retrieving revision 1.52.2.40.2.6
retrieving revision 1.52.2.40.2.7
diff -u -b -r1.52.2.40.2.6 -r1.52.2.40.2.7
--- addbiblio.pl	4 Oct 2006 14:34:01 -0000	1.52.2.40.2.6
+++ addbiblio.pl	4 Oct 2006 16:20:14 -0000	1.52.2.40.2.7
@@ -1,6 +1,6 @@
 #!/usr/bin/perl
 
-# $Id: addbiblio.pl,v 1.52.2.40.2.6 2006/10/04 14:34:01 oleonard Exp $
+# $Id: addbiblio.pl,v 1.52.2.40.2.7 2006/10/04 16:20:14 oleonard Exp $
 
 # Copyright 2000-2002 Katipo Communications
 #
@@ -225,7 +225,7 @@
 		$subfield_data{marc_value}= build_authorized_values_list($tag, $subfield, $value, $dbh,$authorised_values_sth);
 	# it's a thesaurus / authority field
 	} elsif ($tagslib->{$tag}->{$subfield}->{authtypecode}) {
-		$subfield_data{marc_value}="<input type=\"text\" name=\"field_value\" value=\"$value\" size=\"67\" maxlength=\"255\" DISABLE READONLY> <a href=\"javascript:Dopop('../authorities/auth_finder.pl?authtypecode=".$tagslib->{$tag}->{$subfield}->{authtypecode}."&index=$i',$i)\">...</a>";
+		$subfield_data{marc_value}="<input type=\"text\" name=\"field_value\" value=\"$value\" size=\"67\" maxlength=\"255\" disabled=\"disabled\" readonly=\"readonly\" \/> <a href=\"javascript:Dopop('../authorities/auth_finder.pl?authtypecode=".$tagslib->{$tag}->{$subfield}->{authtypecode}."&index=$i',$i)\">...</a>";
 	# it's a plugin field
 	} elsif ($tagslib->{$tag}->{$subfield}->{'value_builder'}) {
 		# opening plugin. Just check wether we are on a developper computer on a production one
@@ -238,18 +238,18 @@
 		require $plugin;
 		my $extended_param = plugin_parameters($dbh,$rec,$tagslib,$i,$tabloop);
 		my ($function_name,$javascript) = plugin_javascript($dbh,$rec,$tagslib,$i,$tabloop);
-		$subfield_data{marc_value}="<input tabindex=\"1\" type=\"text\" name=\"field_value\"  value=\"$value\" size=\"70\" maxlength=\"255\" OnFocus=\"javascript:Focus$function_name($i)\" OnBlur=\"javascript:Blur$function_name($i); \"> <a  style=\"cursor: help;\" href=\"javascript:Clic$function_name($i)\">...</a> $javascript";
+		$subfield_data{marc_value}="<input tabindex=\"1\" type=\"text\" name=\"field_value\"  value=\"$value\" size=\"70\" maxlength=\"255\" onfocus=\"Focus$function_name($i)\" onblur=\"Blur$function_name($i); \" \/> <a  style=\"cursor: help;\" href=\"javascript:Clic$function_name($i)\">...</a> $javascript";
 	# it's an hidden field
 	} elsif  ($tag eq '') {
-		$subfield_data{marc_value}="<input onblur=\"this.className='addbiblioInput';\" onfocus=\"this.className='addbiblioInputFocus'; \" tabindex=\"1\" type=\"hidden\" name=\"field_value\" value=\"$value\">";
+		$subfield_data{marc_value}="<input onblur=\"this.className='addbiblioInput';\" onfocus=\"this.className='addbiblioInputFocus'; \" tabindex=\"1\" type=\"hidden\" name=\"field_value\" value=\"$value\" \/>";
 	} elsif  ($tagslib->{$tag}->{$subfield}->{'hidden'}) {
-		$subfield_data{marc_value}="<input onblur=\"this.className='addbiblioInput';\" onfocus=\"this.className='addbiblioInputFocus'; \" tabindex=\"1\" type=\"text\" name=\"field_value\" value=\"$value\" size=\"70\" maxlength=\"255\" >";
+		$subfield_data{marc_value}="<input onblur=\"this.className='addbiblioInput';\" onfocus=\"this.className='addbiblioInputFocus'; \" tabindex=\"1\" type=\"text\" name=\"field_value\" value=\"$value\" size=\"70\" maxlength=\"255\" \/>";
 	# it's a standard field
 	} else {
 		if (length($value) >100) {
 			$subfield_data{marc_value}="<textarea tabindex=\"1\" name=\"field_value\" cols=\"40\" rows=\"5\" >$value</textarea>";
 		} else {
-			$subfield_data{marc_value}="<input onblur=\"this.className='addbiblioInput';\" onfocus=\"this.className='addbiblioInputFocus'; \" tabindex=\"1\" type=\"text\" name=\"field_value\" value=\"$value\" size=\"70\">"; #"
+			$subfield_data{marc_value}="<input onblur=\"this.className='addbiblioInput';\" onfocus=\"this.className='addbiblioInputFocus'; \" tabindex=\"1\" type=\"text\" name=\"field_value\" value=\"$value\" size=\"70\" \/>"; #"
 		}
 	}
 	return \%subfield_data;
@@ -407,7 +407,7 @@
 	    	$subfield_data{marc_lib}=$tagslib->{$tag}->{$subfield}->{lib};
 	    	$subfield_data{marc_mandatory}=$tagslib->{$tag}->{$subfield}->{mandatory};
 	    	$subfield_data{marc_repeatable}=$tagslib->{$tag}->{$subfield}->{repeatable};
-	    	$subfield_data{marc_value}="<input type=\"hidden\" name=\"field_value[]\">";
+	    	$subfield_data{marc_value}="<input type=\"hidden\" name=\"field_value[]\" \/>";
 	    	push(@loop_data, \%subfield_data);
 	    	$i++
 		}





More information about the Koha-cvs mailing list