[Koha-patches] [PATCH] Fix for Bug 4136, Invalid XHTML in spinelabel-print view

Owen Leonard oleonard at myacpl.org
Mon Feb 8 16:18:16 CET 2010


---
 .../prog/en/modules/labels/spinelabel-print.tmpl   |   31 ++++++++++++-------
 1 files changed, 19 insertions(+), 12 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tmpl
index 1530f43..d7c1da5 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tmpl
@@ -1,26 +1,33 @@
-<html>
-	<head>
-		<title>Koha &rsaquo; Tools &rsaquo; Spine Labels</title>
-		<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/css/spinelabel.css" />
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html lang="<!-- TMPL_VAR NAME="lang" -->" xml:lang="<!-- TMPL_VAR NAME="lang" -->" <!-- TMPL_IF NAME="bidi" -->dir="<!-- TMPL_VAR NAME="bidi" -->"<!-- /TMPL_IF --> xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<title>Koha &rsaquo; Tools &rsaquo; Spine Labels</title>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/css/spinelabel.css" />
 
- 		<style type="text/css">
-			@media print {
-				.noprint { display: none; }
-			}
-		</style>
-	</head>
+		<style type="text/css">
+		@media print {
+			.noprint { display: none; }
+		}
+	</style>
+</head>
 	<!-- TMPL_IF NAME="BarcodeNotFound" -->
 		<body>
 			<p>The barcode <!-- TMPL_VAR NAME="Barcode" --> was not found.</p>
 			<p><a href="spinelabel-home.pl">Return To Spine Label Printer</a></p>
 		</body>
 	<!-- TMPL_ELSE -->
-		<body <!-- TMPL_IF NAME="autoprint">onLoad="window.print()"<!-- /TMPL_IF> >
+		<!-- TMPL_IF NAME="autoprint" -->
+			<body onLoad="window.print()">
+		<!-- TMPL_ELSE -->	
+			<body>
+		<!-- /TMPL_IF --> 
 			<span id="spinelabel" class="label">
 				<!-- TMPL_VAR NAME="content" -->
 			</span>
 			<span id="print_button" class="noprint">
-				<form><input type="button" value="Print This Label" onClick="window.print()" /></form>
+				<button onclick="window.print()">Print This Label</button>
 			</span>
 		</body>
 	<!-- /TMPL_IF -->
-- 
1.6.3.3




More information about the Koha-patches mailing list