From 76077f783df49173e4660ab14af81bea7d2e4eb6 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Tue, 8 Jul 2003 22:13:56 +0000 Subject: [PATCH] the great rename: isis2xml.* -> all2xml.* git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@81 13eb9ef6-21d5-0310-b721-a9d68796d827 --- INSTALL | 2 +- README | 4 ++-- TODO | 2 +- all2xml.pl | 21 ++++++++++++++------- global.conf | 2 +- run.sh | 2 +- swish_isis.conf | 8 ++++---- 7 files changed, 24 insertions(+), 17 deletions(-) diff --git a/INSTALL b/INSTALL index 874bb99..ca75764 100644 --- 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 --- 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 --- 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. diff --git a/all2xml.pl b/all2xml.pl index b0e4dac..ca67d72 100755 --- a/all2xml.pl +++ b/all2xml.pl @@ -231,7 +231,8 @@ sub data2xml { # dump formatted output in if ($html) { - $xml .= xmlify("html",$html); + #$xml .= xmlify("html",$html); + $xml .= ""; } 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 -indexer. Dispite it's name, this script B -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 indexer. Dispite it's name, +this script B 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 diff --git a/global.conf b/global.conf index fc27076..5ebb8c7 100644 --- a/global.conf +++ b/global.conf @@ -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 --- 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 diff --git a/swish_isis.conf b/swish_isis.conf index 7f282d2..08d884f 100644 --- a/swish_isis.conf +++ b/swish_isis.conf @@ -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" -- 2.20.1