[open-ils-commits] r12773 - trunk/Open-ILS/xul/staff_client/server/cat (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Apr 3 02:00:54 EDT 2009


Author: dbs
Date: 2009-04-03 02:00:50 -0400 (Fri, 03 Apr 2009)
New Revision: 12773

Modified:
   trunk/Open-ILS/xul/staff_client/server/cat/marc_view.html
Log:
Fix broken Z39.50 import due to XMLENT manipulating <script> elements

Thanks to Jeff Godin <jeff at tcnet.org> for the patch!

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
   have the right to submit it under the open source license
   indicated in the file; or

(b) The contribution is based upon previous work that, to the best
   of my knowledge, is covered under an appropriate open source
   license and I have the right under that license to submit that
   work with modifications, whether created in whole or in part
   by me, under the same open source license (unless I am
   permitted to submit under a different license), as indicated
   in the file; or

(c) The contribution was provided directly to me by some other
   person who certified (a), (b) or (c) and I have not modified
   it.

(d) I understand and agree that this project and the contribution
   are public and that a record of the contribution (including all
   personal information I submit with it, including my sign-off) is
   maintained indefinitely and may be redistributed consistent with
   this project or the open source license(s) involved.

Signed-off-by: Jeff Godin <jeff at tcnet.org>


Modified: trunk/Open-ILS/xul/staff_client/server/cat/marc_view.html
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/marc_view.html	2009-04-03 05:53:53 UTC (rev 12772)
+++ trunk/Open-ILS/xul/staff_client/server/cat/marc_view.html	2009-04-03 06:00:50 UTC (rev 12773)
@@ -1,11 +1,11 @@
 <html>
 <head>
-<style>
+<style type='text/css'>
 .marc_subfield_code { color: blue; padding-left: 5px; padding-right: 5px }
 </style>
-<script src="/xul/server/main/constants.js"></script>
-<script>
-<!--
+<script type='text/javascript' src='/xul/server/main/constants.js'></script>
+<script type='text/javascript'>
+<![CDATA[
 
 	var xsltProcessor;
 
@@ -45,12 +45,12 @@
 
 	function my_init() {
 		if (!xsl_marc2html_init()) return;
-		document.body.innerHTML = "<button onclick='window.print()'>Print Page</button>";
+		document.body.innerHTML = "<button onclick='window.print()'>Print Page<\/button>";
 		if (typeof xulG != 'undefined' && xulG.marcxml) apply_xsl_marc2html(xulG.marcxml);
 		document.body.firstChild.focus();
 	}
 
--->
+]]>
 </script>
 </head>
 <body onload="try { my_init(); } catch(E) { alert(E); }">



More information about the open-ils-commits mailing list