1 |
this is a free re-implementation of our searcher described at |
2 |
|
3 |
http://webpac.sf.net/ |
4 |
|
5 |
|
6 |
This code is written by Dobrica Pavlinusic <dpavlin@rot13.org> and |
7 |
released under GPL v2 or later license. |
8 |
|
9 |
|
10 |
Status as of 2002-11-22: |
11 |
|
12 |
This code is *NOT* ready for production use. It's not even finished. |
13 |
But we are working on it. |
14 |
|
15 |
|
16 |
All commands have documentation embeded in them: you can try |
17 |
|
18 |
$ perldoc all2xml.pl |
19 |
|
20 |
to see it's usage. |
21 |
|
22 |
### Working notes for documentation: |
23 |
|
24 |
all2xml.conf: |
25 |
|
26 |
Type must be defined by one of files in import_xml/. However, those |
27 |
files can be in form type_something so that you can have multiple |
28 |
xml files for same data source (e.g. isis). |
29 |
|
30 |
|
31 |
### How to specify fields which have to be searched in html templates? |
32 |
|
33 |
Each query to swish database is consisted of *TWO* fields. Names |
34 |
of fields are f[nr] and v[nr] where [nr] is number between 1 and 30. |
35 |
|
36 |
Value for v field are names of tags in import_xml/*.xml file. |
37 |
Value for f field is query which will be sent to swish. |
38 |
|
39 |
If you need to show index for this field, your submit button should |
40 |
have name f[nr]_index. |
41 |
|
42 |
There are also other fields which are used specially. Best bet is |
43 |
to do grep param WebPac.pm. However, you shouldn't need to modify |
44 |
any other fields in html templates other than f[nr]* and v[nr]. |
45 |
If you do, it's a BUG. Please report it to us. |
46 |
|