the great rename: isis2xml.* -> all2xml.*
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 8 Jul 2003 22:13:56 +0000 (22:13 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 8 Jul 2003 22:13:56 +0000 (22:13 +0000)
git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@81 13eb9ef6-21d5-0310-b721-a9d68796d827

INSTALL
README
TODO
all2xml.pl
global.conf
run.sh
swish_isis.conf

diff --git a/INSTALL b/INSTALL
index 874bb99..ca75764 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -6,7 +6,7 @@ don't work for you.
 1. You will need PostgreSQL (for now)
 
    Using any other database is quite easy, and involves editing of
-   dbi_* parameters in isis2xml.conf [global] section (which you want
+   dbi_* parameters in all2xml.conf [global] section (which you want
    to do anyway to specify user and password to connect to database).
 
    Then, create database:
diff --git a/README b/README
index 5d2c3d9..35c2bbd 100644 (file)
--- a/README
+++ b/README
@@ -15,13 +15,13 @@ But we are working on it.
 
 All commands have documentation embeded in them: you can try
 
-$ perldoc isis2xml.pl
+$ perldoc all2xml.pl
 
 to see it's usage.
 
 ### Working notes for documentation:
 
-isis2xml.conf:
+all2xml.conf:
 
 Type must be defined by one of files in import_xml/. However, those
 files can be in form type_something so that you can have multiple
diff --git a/TODO b/TODO
index 15a9097..edbf113 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,7 +1,7 @@
 This that has to be done (or fixed)
 
 - allmost everything
-* isis2xml.pl
+* all2xml.pl
        - create swish configuration file "on the fly"
 
 - implement Makefile.PL and install modules in "proper" places.
index b0e4dac..ca67d72 100755 (executable)
@@ -231,7 +231,8 @@ sub data2xml {
 
        # dump formatted output in <html>
        if ($html) {
-               $xml .= xmlify("html",$html);
+               #$xml .= xmlify("html",$html);
+               $xml .= "<html><![CDATA[ $html ]]></html>";
        }
        
        if ($xml) {
@@ -472,15 +473,21 @@ __END__
 
 =head1 NAME
 
-isis2xml.pl - read isis file and dump XML
+all2xml.pl - read various file formats and dump XML for SWISH-E
 
 =head1 DESCRIPTION
 
-This command will read ISIS data file using OpenIsis perl module and
-create XML file for usage with I<SWISH-E>
-indexer. Dispite it's name, this script B<isn't general xml generator>
-from isis files (isis allready has something like that). Output of this
-script is tailor-made for SWISH-E.
+This command will read ISIS data file using OpenIsis perl module, MARC
+records using MARC module and optionally Micro$oft Excel files to
+create one XML file for usage with I<SWISH-E> indexer. Dispite it's name,
+this script B<isn't general xml generator> from isis files (isis allready
+has something like that). Output of this script is tailor-made for SWISH-E.
+
+=head1 BUGS
+
+Documentation is really lacking. However, in true Open Source spirit, source
+is best documentation. I even made considerable effort to comment parts
+which are not intuitively clear, so...
 
 =head1 AUTHOR
 
index fc27076..5ebb8c7 100644 (file)
@@ -1,4 +1,4 @@
-# global configuration file (used by isis2xml.pl and webpac.cgi)
+# global configuration file (used by all2xml.pl and webpac.cgi)
 
 [global]
        # define database to use for indexes
diff --git a/run.sh b/run.sh
index 7ce7930..a971372 100755 (executable)
--- a/run.sh
+++ b/run.sh
@@ -5,5 +5,5 @@
 
 cd /data/webpac
 
-./isis2xml.pl | swish-e -S prog -c swish_isis.conf
+( ./all2xml.pl | swish-e -S prog -c swish_isis.conf ) 2>&1 | tee log
 
index 7f282d2..08d884f 100644 (file)
@@ -5,7 +5,7 @@
 #
 
 # -S prog
-#IndexDir ./isis2xml.pl
+#IndexDir ./all2xml.pl
 
 IndexDir /bin/cat
 #SwishProgParameters foo.xml
@@ -45,10 +45,10 @@ UndefinedXMLAttributes auto
 # index description
 #
 
-IndexFile ./index/isis.index
+IndexFile ./index/webpac.index
 
-IndexName "isis"
-IndexDescription "data imported from isis"
+IndexName "webpac"
+IndexDescription "data imported to webpac"
 IndexPointer "http://webpac.sf.net/"
 IndexAdmin "dpavlin@rot13.org"