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:
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
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.
# dump formatted output in <html>
if ($html) {
- $xml .= xmlify("html",$html);
+ #$xml .= xmlify("html",$html);
+ $xml .= "<html><![CDATA[ $html ]]></html>";
}
if ($xml) {
=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
-# 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
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
#
# -S prog
-#IndexDir ./isis2xml.pl
+#IndexDir ./all2xml.pl
IndexDir /bin/cat
#SwishProgParameters foo.xml
# 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"