| Revision 679 (by dpavlin, 2005/02/28 10:01:34) |
added import_xml_file and import_xml_tag into configuration file,
documentation for .dbf import
|
=head1 Import DBF files into WebPAC
dBase file format C<.dbf> is supported using C<XBase> perl module.
Configuration in C<all2xml.conf> for this type looks like this:
[hda]
dbf_file=/data/drustvene/hda/ISO.DBF
type=dbf
import_xml_file=isis
import_xml_tag=isis
dbf_codepage=cp852
dbf_mapping=<<_END_OF_MAP_
ID_BROJ mfn
ISBN_BROJ 010
SKUPINA1 200
SKUPINA2 205
SKUPINA4 210
SKUPINA5 215
SKUPINA6 225
SKUPINA7 300
ANOTACIJA 330
PREDMET1 610
PREDMET2 610
PREDMET3 510
UDK 675
REDALICA 700
SIGNATURA 990
_END_OF_MAP_
Options are following:
=over 4
=item dbf_file
Full path to C<.dbf> file that you want to import.
=item type
It should be C<dbf> for dBase files.
=item import_xml_file
If you want to re-use exising import_xml file, you can use this option
to specify C<import_xml/B<import_xml_file>.xml> file.
If not used, you will have to create C<import_xml/dbf.xml> file.
=item import_xml_tag
If using C<import_xml_file> you will like to specify which tag to use
for C<dbf> data using this option.
=item dbf_codepage
Override codepage in C<import_xml_file> for this C<.dbf> database.
=item dbf_mapping
Specify mapping from C<.dbf> fields to ISO fields. Each field is assumed to
have MARC/ISO subfields in form C<^a> or C<$a> and so on.
Mapping must be specified using text here notation in config file, and must
have two fields: original name of column from C<.dbf> file and new field name
which is used in C<import_xml>.
=back
=cut