some more dbs fixes ported to rel_1_2
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 29 Aug 2007 14:49:12 +0000 (14:49 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 29 Aug 2007 14:49:12 +0000 (14:49 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@7732 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/external/dtd2js.pl
Open-ILS/xul/staff_client/external/dtd2js.sh

index 8f98925..d7ee4e4 100755 (executable)
@@ -5,11 +5,12 @@
 #<!ENTITY common.series "Series">
 #<!ENTITY common.keyword "Keyword">
 #<!ENTITY common.type "Type">
+#<!ENTITY tricksy.entity 'Some text with "quoted" content'>
 
 print "var entities = {};";
 while( $line = <> ) {
 
-       if ($line =~ /<!ENTITY\s+(\S+)\s+(["'].*["'])\s*>/) {
+       if ($line =~ /<!ENTITY\s+(\S+)\s+((["']).*\3)\s*>\s*$/) {
                print "entities['$1'] = $2;\n"; 
        } else {
                chomp $line;
index 2945989..12d8a5c 100755 (executable)
@@ -1,2 +1,2 @@
 #!/bin/bash
-./dtd2js.pl ~/ILS/Open-ILS/web/opac/locale/en-US/lang.dtd > ../chrome/content/main/lang.js
+./dtd2js.pl ../../../web/opac/locale/en-US/lang.dtd > ../chrome/content/main/lang.js