Testing against DBC
[pazpar2-moved-to-github.git] / heikki / dbc-os / dbc-opensearch-gw.cfg
1 # Config file for dbc-opensearch
2 #
3 # The program first tries to load /etc/dbc-opensearch-gw.cfg
4 # If that fails, tries to load dbc-opensearch-gw.cfg in current dir
5 # If that fails, outputs a warning and runs with defaults.
6
7 # Defining the back end
8
9 # These three are concatenated to get the URL to the opensearch server.
10 # Later more stuff is appended, like the query, start and number of records,
11 # etc. Any URL parameter can be overridden in the database name, see below
12
13 database: Default
14 baseurl: http://openbibdk.addi.dk/0.8/
15 objectformat: dkabm
16 #constantparams: action=search&facets.numberOfTerms=10&facets.facetName=facet.creator&facets.facetName=facet.type&facets.facetName=facet.subject&agency=100200&profile=test&collectionType=work
17 constantparams: action=search&agency=100200&profile=test&collectionType=work&rank=rank_general
18 fields: bibliotek.dk.fields.txt
19
20 database: bibliotek.work
21 baseurl: http://openbibdk.addi.dk/0.8/
22 objectformat: marcxchange
23 constantparams: action=search&facets.numberOfTerms=10&facets.facetName=facet.creator&facets.facetName=facet.type&facets.facetName=facet.subject&agency=100200&profile=test&collectionType=work
24 fields: bibliotek.dk.fields.txt
25
26
27 database: bibliotek.manifestation
28 baseurl: http://openbibdk.addi.dk/0.8/
29 objectformat: marcxchange
30 constantparams: action=search&facets.numberOfTerms=10&facets.facetName=facet.creator&facets.facetName=facet.type&facets.facetName=facet.subject&agency=100200&profile=test&collectionType=manifestation
31 fields: bibliotek.dk.fields.txt
32
33 # Looks like the collectionType can be one of
34 #  'manifestation'  for single records
35 #  'work'           for some kind of clustered records
36 #  'work-1'         looks like manifestation to me, but can be something else
37
38 # agency=400151 gets (only) music stuff, and that has no marc stuff
39 # agency=100200 returns books and articles, that can handle marc stuff
40 #
41 # includeMarcXchange=true asks for MarcXchange record (in some versions).
42 # OR objectFormat=marcxchange (other versions)
43
44 #chunksize: 10; # initial number of records to get, grows to max present req.
45
46 # Set to 1 to get much more debug log
47 debug: 0
48 #debug: 1
49
50 # Instead of talking to opensearch, it is possible to load test data from
51 # a file. The start position and number of records is appended to the file
52 # name given below, so that you can test with different files.
53 #test_data: /tmp/test_data_file # f.ex. /tmp/test_data_file_1_10.xml
54
55 # Formatting of the results
56 #  0 - do not format
57 #  1 - do format
58 #  (passed directly to LibXML's toString)
59 #prettyxml: 0
60 prettyxml: 1
61
62 # Operators
63 #op_and: AND
64 #op_or: OR
65 #op_not: NOT
66
67