/[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

Diff of /Webpacus/config.yml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 153 by dpavlin, Sat Nov 26 01:54:31 2005 UTC revision 358 by dpavlin, Sun Jan 8 13:58:19 2006 UTC
# Line 1  Line 1 
1  --- #YAML:1.0  --- #YAML:1.0
2  # DO NOT USE TABS FOR INDENTATION OR label/value SEPARATION!!!  # DO NOT USE TABS FOR INDENTATION OR label/value SEPARATION!!!
3    
4    # encoding of this configuration file
5    config_encoding: 'ISO-8859-2'
6    # encoding in Catalyst.
7    catalyst_encoding: 'UTF-8'
8    # relative path to sites templates under Catalyst root
9    sites_root: 'sites'
10    
11  # configuration for hyper estraier full text search engine  # configuration for hyper estraier full text search engine
12  hyperestraier:  hyperestraier:
13    url: 'http://localhost:1978/node/webpac2'    #url: 'http://localhost:1978/node/webpac2'
14      masterurl: 'http://localhost:1978'
15      defaultnode: 'webpac2'
16    #  defaultnode: 'ps'
17      defaultdepth: 1
18    user: 'admin'    user: 'admin'
19    passwd: 'admin'    passwd: 'admin'
20      # don't turn this on! it will spit huge amounts of output
21      #debug: 1
22    #    #
23    # number of results on each page    # number of results on each page
24    hits_on_page: 30    hits_on_page: 30
# Line 14  hyperestraier: Line 27  hyperestraier:
27    #    #
28    # options used while indexing    # options used while indexing
29    #    #
   # name of database (not used yet, but required)  
   database: 'test'  
30    # which tag type to use for search engine (used while indexing)    # which tag type to use for search engine (used while indexing)
31    type: 'search'    type: 'search'
32    #    #
   # options used for Catalyst only  
   #  
   # FIXME encoding comming from Catalyst.  
   catalyst_encoding: 'UTF-8'  
33    
34  webpac:  webpac:
35    # default template to use    # default template to use
# Line 40  webpac: Line 47  webpac:
47    webpac_encoding: 'iso-8859-2'    webpac_encoding: 'iso-8859-2'
48    # encoding expected by Catalyst    # encoding expected by Catalyst
49    out_encoding: 'utf-8'    out_encoding: 'utf-8'
50      # define different input formats (types) and perl modules to handle them
51      inputs:
52        isis: 'WebPAC::Input::ISIS'
53        marc: 'WebPAC::Input::MARC'
54    
55    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  # directives after this are used when indexing using core WebPAC modules  # directives after this are used when indexing using core WebPAC modules
61    
62  input:  databases:
63    # isis    # This is empty database created only in Hyper Estraier to merge
64    type: isis    # all three databases
65    # full path to database    'webpac2':
66  #  path: '/data/isis_data/ps/LIBRI/LIBRI'      name: 'Search all'
67    path: '/data/isis_data/ffkk/LIBRI'      links:
68    # encoding of character set in isis data        - to: ps
69    encoding: '852'          credit: 10000
70    # lookup        - to: kk
71    lookup: 'conf/lookup/isis.pm'          credit: 10000
72    # limit number of records to read from database        - to: jzav
73  #  limit: 100          credit: 10000
74    
75  normalize:  
76    # which tag to use in normalize xml for data?    # Psihologija
77    tag: 'isis'    'ps':
78    # path to normalization xml      # all variables here will be available as config variables in template
79    path: 'conf/normalize/isis_ffzg.xml'      name: 'Knjižnica psihologije'
80        code: 'ps'
81      
82        # define input source
83        input:
84          # this will create unique name with name of database and mfn
85          - name: libri
86            # isis
87            type: isis
88        
89            # full path to database
90            path: '/data/isis_data/ffps-libri/LIBRI'
91        
92            # encoding of character set in isis data
93            encoding: '852'
94        
95            # lookup
96            lookup: 'conf/lookup/isis.pm'
97        
98            # limit number of records to read from database
99            #limit: 100
100        
101            # define normalisation for that source
102            normalize:
103              # which tag to use in normalize xml for data?
104              tag: 'isis'
105              # path to normalization xml
106              path: 'conf/normalize/isis_ffzg.xml'
107              #path: 'conf/normalize/isis_ffzg.yml'
108      
109          # another input database
110          - name: peri
111            type: isis
112            path: '/data/isis_data/ffps-peri/PERI'
113            encoding: '852'
114            lookup: 'conf/lookup/isis.pm'
115            #limit: 100
116            normalize:
117              tag: 'isis'
118              path: 'conf/normalize/isis_ffzg.xml'
119    
120      # Komparativna
121      kk:
122        name: 'Komparativna'
123      
124        input:
125          name: libri
126          type: isis
127          path: '/data/isis_data/ffkk/LIBRI'
128          encoding: '852'
129          lookup: 'conf/lookup/isis.pm'
130          #limit: 100
131          normalize:
132            tag: 'isis'
133            path: 'conf/normalize/isis_ffzg.xml'
134      
135      jzav:
136        name: 'Jadranski zavod'
137        input:
138          name: knjige
139          type: isis
140          path: '/data/isis_data/jzav/BIB'
141          encoding: '852'
142          lookup: 'conf/lookup/jzav.yml'
143          #limit: 100
144          normalize:
145            tag: 'isis'
146            path: 'conf/normalize/isis_ffzg.xml'
147      
148      efzg:
149        name: 'Ekonomski fakutet u Zagrebu'
150        input:
151          name: knjige
152          type: marc
153          path: '/data/isis_data/efzg/unimarc.iso'
154          encoding: '852'
155          lookup: 'conf/lookup/isis.pm'
156          #limit: 100
157          normalize:
158            tag: 'isis'
159            path: 'conf/normalize/isis_ffzg.xml'
160      

Legend:
Removed from v.153  
changed lines
  Added in v.358

  ViewVC Help
Powered by ViewVC 1.1.26