/[webpac2]/Webpacus/config.yml
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /Webpacus/config.yml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 271 - (hide annotations)
Sat Dec 17 03:19:58 2005 UTC (18 years, 4 months ago) by dpavlin
File size: 3490 byte(s)
 r11749@llin:  dpavlin | 2005-12-17 07:22:09 +0100
 VERY broken state: Moved databases to own model (with iconv conversion using
 new config_encoding and moved catalyst_encoding), and a try to add database
 list (which will become checkboxes) to search form.

1 dpavlin 95 --- #YAML:1.0
2     # DO NOT USE TABS FOR INDENTATION OR label/value SEPARATION!!!
3    
4 dpavlin 271 # encoding of this configuration file
5     config_encoding: 'ISO-8859-2'
6     # encoding in Catalyst.
7     catalyst_encoding: 'UTF-8'
8    
9 dpavlin 95 # configuration for hyper estraier full text search engine
10     hyperestraier:
11 dpavlin 222 #url: 'http://localhost:1978/node/webpac2'
12     masterurl: 'http://localhost:1978'
13 dpavlin 257 defaultnode: 'webpac2'
14     # defaultnode: 'ps'
15 dpavlin 222 defaultdepth: 1
16 dpavlin 95 user: 'admin'
17     passwd: 'admin'
18 dpavlin 142 #
19 dpavlin 143 # number of results on each page
20     hits_on_page: 30
21     # number of results to fetch for suggestion (it will fold multiple sameones)
22     hits_for_suggest: 20
23     #
24 dpavlin 142 # options used while indexing
25     #
26     # which tag type to use for search engine (used while indexing)
27     type: 'search'
28     #
29 dpavlin 95
30     webpac:
31 dpavlin 97 # default template to use
32     template: 'html_ffzg_results_short.tt'
33     # path to database files
34 dpavlin 95 db_path: '/data/webpac2/db'
35 dpavlin 97 # path to templates used by WebPAC::Output
36 dpavlin 95 template_path: '/data/webpac2/conf/output/tt'
37 dpavlin 135 # default template for results
38     default_template: 'html_ffzg.tt'
39     # default user editable css file
40     default_css: 'user.css'
41 dpavlin 139 css_path: 'root/css'
42 dpavlin 96 # encoding comming from webpac
43     webpac_encoding: 'iso-8859-2'
44     # encoding expected by Catalyst
45 dpavlin 97 out_encoding: 'utf-8'
46    
47 dpavlin 244 editor:
48     # open this record when opening editor
49     # (it will also be used to deduce default database and input)
50     default_record_uri: 'ps/libri/1'
51    
52 dpavlin 142 # directives after this are used when indexing using core WebPAC modules
53    
54 dpavlin 222 databases:
55 dpavlin 257 # This is empty database created only in Hyper Estraier to merge
56     # all three databases
57     'webpac2':
58     name: 'Search all'
59     links:
60     - to: ps
61     credit: 10000
62     - to: kk
63     credit: 10000
64     - to: jzav
65     credit: 10000
66    
67    
68 dpavlin 222 # Psihologija
69     'ps':
70     # all variables here will be available as config variables in template
71     name: 'Knji¾nica psihologije'
72     code: 'ps'
73    
74     # define input source
75     input:
76 dpavlin 237 # this will create unique name with name of database and mfn
77 dpavlin 232 - name: libri
78     # isis
79     type: isis
80    
81     # full path to database
82     path: '/data/isis_data/ffps-libri/LIBRI'
83    
84     # encoding of character set in isis data
85     encoding: '852'
86    
87     # lookup
88     lookup: 'conf/lookup/isis.pm'
89    
90     # limit number of records to read from database
91 dpavlin 270 limit: 100
92 dpavlin 232
93     # define normalisation for that source
94     normalize:
95     # which tag to use in normalize xml for data?
96     tag: 'isis'
97     # path to normalization xml
98 dpavlin 270 #path: 'conf/normalize/isis_ffzg.xml'
99     path: 'conf/normalize/isis_ffzg.yml'
100 dpavlin 222
101 dpavlin 232 # another input database
102     - name: peri
103     type: isis
104     path: '/data/isis_data/ffps-peri/PERI'
105     encoding: '852'
106     lookup: 'conf/lookup/isis.pm'
107 dpavlin 270 limit: 100
108 dpavlin 232 normalize:
109     tag: 'isis'
110     path: 'conf/normalize/isis_ffzg.xml'
111 dpavlin 142
112 dpavlin 237 # Komparativna
113 dpavlin 222 kk:
114 dpavlin 237 name: 'Komparativna'
115 dpavlin 222
116     input:
117     name: libri
118     type: isis
119     path: '/data/isis_data/ffkk/LIBRI'
120     encoding: '852'
121     lookup: 'conf/lookup/isis.pm'
122 dpavlin 270 limit: 100
123 dpavlin 222 normalize:
124     tag: 'isis'
125     path: 'conf/normalize/isis_ffzg.xml'
126    
127 dpavlin 237 jzav:
128     name: 'Jadranski zavod'
129     input:
130     name: knjige
131     type: isis
132     path: '/data/isis_data/jzav/BIB'
133     encoding: '852'
134     lookup: 'conf/lookup/jzav.yml'
135 dpavlin 270 limit: 1
136 dpavlin 237 normalize:
137     tag: 'isis'
138     path: 'conf/normalize/isis_ffzg.xml'

  ViewVC Help
Powered by ViewVC 1.1.26