/[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 399 - (hide annotations)
Sun Feb 19 12:37:27 2006 UTC (18 years, 2 months ago) by dpavlin
File size: 4266 byte(s)
 r461@llin:  dpavlin | 2006-02-19 13:46:03 +0100
 each site now uses default index which is named same as site, added site_url to view,
 refactor site handling

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 dpavlin 358 # relative path to sites templates under Catalyst root
9     sites_root: 'sites'
10 dpavlin 271
11 dpavlin 95 # configuration for hyper estraier full text search engine
12     hyperestraier:
13 dpavlin 222 #url: 'http://localhost:1978/node/webpac2'
14     masterurl: 'http://localhost:1978'
15 dpavlin 257 defaultnode: 'webpac2'
16     # defaultnode: 'ps'
17 dpavlin 222 defaultdepth: 1
18 dpavlin 95 user: 'admin'
19     passwd: 'admin'
20 dpavlin 348 # don't turn this on! it will spit huge amounts of output
21     #debug: 1
22 dpavlin 142 #
23 dpavlin 143 # number of results on each page
24     hits_on_page: 30
25     # number of results to fetch for suggestion (it will fold multiple sameones)
26     hits_for_suggest: 20
27     #
28 dpavlin 142 # options used while indexing
29     #
30     # which tag type to use for search engine (used while indexing)
31     type: 'search'
32     #
33 dpavlin 95
34     webpac:
35 dpavlin 97 # default template to use
36     template: 'html_ffzg_results_short.tt'
37     # path to database files
38 dpavlin 95 db_path: '/data/webpac2/db'
39 dpavlin 97 # path to templates used by WebPAC::Output
40 dpavlin 95 template_path: '/data/webpac2/conf/output/tt'
41 dpavlin 135 # default template for results
42     default_template: 'html_ffzg.tt'
43     # default user editable css file
44     default_css: 'user.css'
45 dpavlin 139 css_path: 'root/css'
46 dpavlin 96 # encoding comming from webpac
47     webpac_encoding: 'iso-8859-2'
48     # encoding expected by Catalyst
49 dpavlin 97 out_encoding: 'utf-8'
50 dpavlin 293 # define different input formats (types) and perl modules to handle them
51     inputs:
52     isis: 'WebPAC::Input::ISIS'
53     marc: 'WebPAC::Input::MARC'
54 dpavlin 97
55 dpavlin 244 editor:
56     # open this record when opening editor
57     # (it will also be used to deduce default database and input)
58     default_record_uri: 'ps/libri/1'
59    
60 dpavlin 142 # directives after this are used when indexing using core WebPAC modules
61    
62 dpavlin 222 databases:
63 dpavlin 257 # This is empty database created only in Hyper Estraier to merge
64     # all three databases
65     'webpac2':
66     name: 'Search all'
67     links:
68     - to: ps
69     credit: 10000
70     - to: kk
71     credit: 10000
72     - to: jzav
73     credit: 10000
74    
75 dpavlin 399 # site with alternative databases
76     'hr':
77     name: 'Primjer za hrvatsko suèelje'
78     links:
79     - to: ps
80     credit: 10000
81     - to: kk
82     credit: 5000
83 dpavlin 257
84 dpavlin 222 # Psihologija
85     'ps':
86     # all variables here will be available as config variables in template
87     name: 'Knji¾nica psihologije'
88     code: 'ps'
89    
90     # define input source
91     input:
92 dpavlin 237 # this will create unique name with name of database and mfn
93 dpavlin 232 - name: libri
94     # isis
95     type: isis
96    
97     # full path to database
98     path: '/data/isis_data/ffps-libri/LIBRI'
99    
100     # encoding of character set in isis data
101     encoding: '852'
102    
103     # lookup
104     lookup: 'conf/lookup/isis.pm'
105    
106     # limit number of records to read from database
107 dpavlin 277 #limit: 100
108 dpavlin 232
109     # define normalisation for that source
110     normalize:
111     # which tag to use in normalize xml for data?
112     tag: 'isis'
113     # path to normalization xml
114 dpavlin 329 path: 'conf/normalize/isis_ffzg.xml'
115     #path: 'conf/normalize/isis_ffzg.yml'
116 dpavlin 222
117 dpavlin 232 # another input database
118     - name: peri
119     type: isis
120     path: '/data/isis_data/ffps-peri/PERI'
121     encoding: '852'
122     lookup: 'conf/lookup/isis.pm'
123 dpavlin 277 #limit: 100
124 dpavlin 232 normalize:
125     tag: 'isis'
126     path: 'conf/normalize/isis_ffzg.xml'
127 dpavlin 142
128 dpavlin 237 # Komparativna
129 dpavlin 222 kk:
130 dpavlin 237 name: 'Komparativna'
131 dpavlin 222
132     input:
133     name: libri
134     type: isis
135     path: '/data/isis_data/ffkk/LIBRI'
136     encoding: '852'
137     lookup: 'conf/lookup/isis.pm'
138 dpavlin 277 #limit: 100
139 dpavlin 222 normalize:
140     tag: 'isis'
141     path: 'conf/normalize/isis_ffzg.xml'
142    
143 dpavlin 237 jzav:
144     name: 'Jadranski zavod'
145     input:
146     name: knjige
147     type: isis
148     path: '/data/isis_data/jzav/BIB'
149     encoding: '852'
150     lookup: 'conf/lookup/jzav.yml'
151 dpavlin 277 #limit: 100
152 dpavlin 237 normalize:
153     tag: 'isis'
154     path: 'conf/normalize/isis_ffzg.xml'
155 dpavlin 293
156     efzg:
157     name: 'Ekonomski fakutet u Zagrebu'
158     input:
159     name: knjige
160     type: marc
161     path: '/data/isis_data/efzg/unimarc.iso'
162     encoding: '852'
163     lookup: 'conf/lookup/isis.pm'
164     #limit: 100
165     normalize:
166     tag: 'isis'
167     path: 'conf/normalize/isis_ffzg.xml'
168    

  ViewVC Help
Powered by ViewVC 1.1.26