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