LP#1350042 browser unit tests use repo fm_IDL2js.xsl
authorBill Erickson <berickxx@gmail.com>
Thu, 11 Sep 2014 17:56:32 +0000 (13:56 -0400)
committerJason Etheridge <jason@esilibrary.com>
Fri, 12 Sep 2014 17:30:30 +0000 (13:30 -0400)
Generate JS-friendly IDL2js for browser client unit tests from the .xsl
file within the repo instead of referencing the installed version, which
may not yet exist on the machine.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/web/js/ui/default/staff/test/data/idl2js.pl

index fbf998f..66fb2e1 100644 (file)
@@ -4,7 +4,7 @@ use XML::LibXML;
 use XML::LibXSLT;
 my $out_file = 'IDL2js.js';
 my $idl_file = '../../../../../../../examples/fm_IDL.xml';
-my $xsl_file = '/openils/var/xsl/fm_IDL2js.xsl'; # FIXME: hard-coded path
+my $xsl_file = '../../../../../../../xsl/fm_IDL2js.xsl'; 
 
 my $xslt = XML::LibXSLT->new();
 my $style_doc = XML::LibXML->load_xml(location => $xsl_file, no_cdata=>1);