| 1 |
1 |
dpavlin |
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 |
3 |
dpavlin |
|
| 9 |
235 |
dpavlin |
Status as of 2004-03-08: |
| 10 |
1 |
dpavlin |
|
| 11 |
235 |
dpavlin |
This code is ready for production use. We have 7 live production |
| 12 |
|
|
installations. |
| 13 |
3 |
dpavlin |
|
| 14 |
|
|
|
| 15 |
|
|
All commands have documentation embeded in them: you can try |
| 16 |
|
|
|
| 17 |
81 |
dpavlin |
$ perldoc all2xml.pl |
| 18 |
3 |
dpavlin |
|
| 19 |
|
|
to see it's usage. |
| 20 |
68 |
dpavlin |
|
| 21 |
|
|
### Working notes for documentation: |
| 22 |
|
|
|
| 23 |
81 |
dpavlin |
all2xml.conf: |
| 24 |
68 |
dpavlin |
|
| 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 |
75 |
dpavlin |
### 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 |
235 |
dpavlin |
|
| 47 |
|
|
### For more documentation, please examine doc/ directory! |